Better printing of asterisk

This commit is contained in:
hroff-1902 2020-04-24 21:57:29 +03:00
parent a19ea0f46f
commit 2d994f6feb

View File

@ -306,6 +306,7 @@ class Hyperopt:
trials['is_profit'] = False
trials.loc[trials['is_initial_point'], 'Best'] = '* '
trials.loc[trials['is_best'], 'Best'] = 'Best'
trials.loc[trials['is_initial_point'] & trials['is_best'], 'Best'] = '* Best'
trials.loc[trials['Total profit'] > 0, 'is_profit'] = True
trials['Trades'] = trials['Trades'].astype(str)