Avoid having error cannot set a frame with no defined index and a scalar
This commit is contained in:
parent
ef4d1c24d7
commit
082fb11bbe
@ -191,8 +191,8 @@ class Backtesting:
|
||||
data: Dict = {}
|
||||
# Create dict with data
|
||||
for pair, pair_data in processed.items():
|
||||
pair_data.loc[:, 'buy'] = 0 # cleanup from previous run
|
||||
pair_data.loc[:, 'sell'] = 0 # cleanup from previous run
|
||||
pair_data['buy'] = 0 # cleanup from previous run
|
||||
pair_data['sell'] = 0 # cleanup from previous run
|
||||
|
||||
df_analyzed = self.strategy.advise_sell(
|
||||
self.strategy.advise_buy(pair_data, {'pair': pair}), {'pair': pair})[headers].copy()
|
||||
|
Loading…
Reference in New Issue
Block a user