added wins/draws/losses

This commit is contained in:
Yazeed Al Oyoun 2020-02-22 15:49:18 +01:00 committed by Matthias
parent 72b088d85f
commit 181b12b3a8

View File

@ -533,7 +533,7 @@ class Hyperopt:
'total_profit': total_profit,
}
def _calculate_results_metrics(self, backtesting_results: DataFrame) -> Dict:
def _calculate_results_metrics(self, backtesting_results: DataFrame) -> Dict:
return {
'trade_count': len(backtesting_results.index),
'wins': len(backtesting_results[backtesting_results.profit_percent > 0]),