From 760c79c5e95bb3eeec23c366d986f97a8a78f08a Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 16 Jul 2018 20:19:32 +0200 Subject: [PATCH] Use `.center()` to output trades header line --- freqtrade/optimize/backtesting.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 391e05b83..73899f9a2 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -343,19 +343,17 @@ class Backtesting(object): # ) logger.info( - '\n' + '=' * 4 + - ' SELL READON STATS ' + - '=' * 4 + '\n' - '%s \n', + '\n' + + ' SELL READON STATS '.center(119, '=') + + '\n%s \n', self._generate_text_table_sell_reason(data, results) ) logger.info( - '\n' + '=' * 47 + - ' LEFT OPEN TRADES REPORT ' + - '=' * 47 + '\n' - '%s', + '\n' + + ' LEFT OPEN TRADES REPORT '.center(119, '=') + + '\n%s', self._generate_text_table( data, results.loc[results.open_at_end]