don't reset index if not needed

This commit is contained in:
Janne Sinivirta 2018-02-06 11:33:38 +02:00
parent cf7c6d2e9c
commit 5cf2dd79f2

View File

@ -120,6 +120,7 @@ def backtest(args) -> DataFrame:
for pair, pair_data in processed.items(): for pair, pair_data in processed.items():
pair_data['buy'], pair_data['sell'] = 0, 0 pair_data['buy'], pair_data['sell'] = 0, 0
ticker = populate_sell_trend(populate_buy_trend(pair_data)) ticker = populate_sell_trend(populate_buy_trend(pair_data))
if 'date' in ticker:
ticker.set_index('date', inplace=True) ticker.set_index('date', inplace=True)
# for each buy point # for each buy point
lock_pair_until = None lock_pair_until = None