replaced use of old value total_profit

This commit is contained in:
Yazeed Al Oyoun 2020-01-31 20:07:18 +01:00
parent 0302ad0a67
commit 323192faaf

View File

@ -43,7 +43,7 @@ class SharpeHyperOptLossDaily(IHyperOptLoss):
* 100.0
)
if np.std(total_profit) != 0.0:
if np.std(results.profit_percent) != 0.0:
sharp_ratio = (
sum_daily["profit_percent"].mean()
/ sum_daily["profit_percent"].std()