replaced use of old value total_profit
This commit is contained in:
parent
0302ad0a67
commit
323192faaf
@ -43,7 +43,7 @@ class SharpeHyperOptLossDaily(IHyperOptLoss):
|
|||||||
* 100.0
|
* 100.0
|
||||||
)
|
)
|
||||||
|
|
||||||
if np.std(total_profit) != 0.0:
|
if np.std(results.profit_percent) != 0.0:
|
||||||
sharp_ratio = (
|
sharp_ratio = (
|
||||||
sum_daily["profit_percent"].mean()
|
sum_daily["profit_percent"].mean()
|
||||||
/ sum_daily["profit_percent"].std()
|
/ sum_daily["profit_percent"].std()
|
||||||
|
Loading…
Reference in New Issue
Block a user