Use .center() to output trades header line

This commit is contained in:
Matthias 2018-07-16 20:19:32 +02:00
parent a452864b41
commit 760c79c5e9

View File

@ -343,19 +343,17 @@ class Backtesting(object):
# ) # )
logger.info( logger.info(
'\n' + '=' * 4 + '\n' +
' SELL READON STATS ' + ' SELL READON STATS '.center(119, '=') +
'=' * 4 + '\n' '\n%s \n',
'%s \n',
self._generate_text_table_sell_reason(data, results) self._generate_text_table_sell_reason(data, results)
) )
logger.info( logger.info(
'\n' + '=' * 47 + '\n' +
' LEFT OPEN TRADES REPORT ' + ' LEFT OPEN TRADES REPORT '.center(119, '=') +
'=' * 47 + '\n' '\n%s',
'%s',
self._generate_text_table( self._generate_text_table(
data, data,
results.loc[results.open_at_end] results.loc[results.open_at_end]