mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
final colorization schema
colorization schema-2: red, green, bright/dim colorization schema-3: red, green, bright only green bests colorization schema-4: no red, green for profit, bright for bests
This commit is contained in:
parent
ae39f6fba5
commit
8f92912852
|
@ -163,11 +163,9 @@ class Hyperopt(Backtesting):
|
|||
# Colorize output
|
||||
if self.config.get('print_colorized', False):
|
||||
if results['total_profit'] > 0:
|
||||
log_str = Style.BRIGHT + log_str
|
||||
if results['loss'] >= MAX_LOSS:
|
||||
log_str = Fore.RED + log_str
|
||||
elif is_best_loss:
|
||||
log_str = Fore.GREEN + log_str
|
||||
if print_all and is_best_loss:
|
||||
log_str = Style.BRIGHT + log_str
|
||||
if print_all:
|
||||
print(log_str)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user