fixed standard deviation line
This commit is contained in:
parent
8410e453ed
commit
a5911bae7f
@ -46,7 +46,7 @@ class SharpeHyperOptLossDaily(IHyperOptLoss):
|
|||||||
if (np.std(sum_daily.profit_percent) != 0.):
|
if (np.std(sum_daily.profit_percent) != 0.):
|
||||||
sharp_ratio = (
|
sharp_ratio = (
|
||||||
sum_daily["profit_percent"].mean()
|
sum_daily["profit_percent"].mean()
|
||||||
/ sum_daily["profit_percent"].std()
|
/ np.std(sum_daily["profit_percent"])
|
||||||
* np.sqrt(365)
|
* np.sqrt(365)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user