fixed indent
This commit is contained in:
parent
2fb3d94938
commit
6147498fd4
@ -533,7 +533,7 @@ class Hyperopt:
|
|||||||
'total_profit': total_profit,
|
'total_profit': total_profit,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _calculate_results_metrics(self, backtesting_results: DataFrame) -> Dict:
|
def _calculate_results_metrics(self, backtesting_results: DataFrame) -> Dict:
|
||||||
return {
|
return {
|
||||||
'trade_count': len(backtesting_results.index),
|
'trade_count': len(backtesting_results.index),
|
||||||
'wins': len(backtesting_results[backtesting_results.profit_percent > 0]),
|
'wins': len(backtesting_results[backtesting_results.profit_percent > 0]),
|
||||||
|
Loading…
Reference in New Issue
Block a user