fix mypy and tests

This commit is contained in:
xmatthias
2018-06-26 07:08:09 +02:00
parent 1c8b29b848
commit 407d340b9c
4 changed files with 12 additions and 10 deletions

View File

@@ -162,7 +162,7 @@ class Backtesting(object):
pair_data['buy'], pair_data['sell'] = 0, 0 # cleanup from previous run
ticker_data = self.populate_sell_trend(
self.populate_buy_trend(pair_data))[headers].copy()
self.populate_buy_trend(pair_data, pair), pair)[headers].copy()
# to avoid using data from future, we buy/sell with signal from previous candle
ticker_data.loc[:, 'buy'] = ticker_data['buy'].shift(1)