Merge pull request #5398 from ipqhjjybj/develop
The list is changed during running!
This commit is contained in:
commit
4e83d5c4c6
@ -504,7 +504,7 @@ class Backtesting:
|
||||
open_trades[pair].append(trade)
|
||||
LocalTrade.add_bt_trade(trade)
|
||||
|
||||
for trade in open_trades[pair]:
|
||||
for trade in list(open_trades[pair]):
|
||||
# also check the buying candle for sell conditions.
|
||||
trade_entry = self._get_sell_trade_entry(trade, row)
|
||||
# Sell occurred
|
||||
|
Loading…
Reference in New Issue
Block a user