Merge pull request #3913 from freqtrade/fix/dmmp

FIx bug with dmmp
This commit is contained in:
Matthias 2020-11-01 12:48:34 +01:00 committed by GitHub
commit 16572f90e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,7 +340,7 @@ class Backtesting:
# max_open_trades must be respected
# don't open on the last row
if ((position_stacking or len(open_trades[pair]) == 0)
and max_open_trades > 0 and open_trade_count_start < max_open_trades
and (max_open_trades <= 0 or open_trade_count_start < max_open_trades)
and tmp != end_date
and row[BUY_IDX] == 1 and row[SELL_IDX] != 1):
# Enter trade