fixed downside_returns to read from profit_percent_after_slippage
This commit is contained in:
parent
728ab0ff21
commit
9bcc5d2eed
@ -50,7 +50,7 @@ class SortinoHyperOptLossDaily(IHyperOptLoss):
|
|||||||
expected_returns_mean = total_profit.mean()
|
expected_returns_mean = total_profit.mean()
|
||||||
|
|
||||||
results['downside_returns'] = 0
|
results['downside_returns'] = 0
|
||||||
results.loc[total_profit < 0, 'downside_returns'] = results['profit_percent']
|
results.loc[total_profit < 0, 'downside_returns'] = results['profit_percent_after_slippage']
|
||||||
down_stdev = results['downside_returns'].std()
|
down_stdev = results['downside_returns'].std()
|
||||||
|
|
||||||
if (down_stdev != 0.):
|
if (down_stdev != 0.):
|
||||||
|
Loading…
Reference in New Issue
Block a user