Export sell_reason from backtest

This commit is contained in:
Matthias
2018-07-11 20:32:56 +02:00
parent 8c0b19f80c
commit 2a61629014
2 changed files with 6 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ class Backtesting(object):
records = [(t.pair, t.profit_percent, t.open_time.timestamp(),
t.close_time.timestamp(), t.open_index - 1, t.trade_duration,
t.open_rate, t.close_rate, t.open_at_end)
t.open_rate, t.close_rate, t.open_at_end, t.sell_reason.value)
for index, t in results.iterrows()]
if records: