show more digits for profits

This commit is contained in:
Janne Sinivirta 2017-12-23 15:08:54 +02:00
parent 5309ea3820
commit 24bc3a8390

View File

@ -155,7 +155,7 @@ def optimizer(params):
def format_results(results: DataFrame): def format_results(results: DataFrame):
return ('Made {:6d} buys. Average profit {: 5.2f}%. ' return ('Made {:6d} buys. Average profit {: 5.2f}%. '
'Total profit was {: 7.3f}. Average duration {:5.1f} mins.').format( 'Total profit was {: 11.8f}. Average duration {:5.1f} mins.').format(
len(results.index), len(results.index),
results.profit_percent.mean() * 100.0, results.profit_percent.mean() * 100.0,
results.profit_BTC.sum(), results.profit_BTC.sum(),