feat: add backtesting support for ignore_buying_expired_candle_after

this is only relevant for detail candles - otherwise entries will never happen within a candle.
This commit is contained in:
Matthias
2025-01-17 06:36:32 +01:00
parent d02b4d4c3f
commit 419d5d9946
2 changed files with 10 additions and 0 deletions

View File

@@ -866,6 +866,7 @@ def test_backtest_one_detail(default_conf_usdt, mocker, testdatadir, use_detail)
backtesting = Backtesting(default_conf_usdt)
backtesting._set_strategy(backtesting.strategylist[0])
backtesting.strategy.populate_entry_trend = advise_entry
backtesting.strategy.ignore_buying_expired_candle_after = 59
backtesting.strategy.custom_entry_price = custom_entry_price
pair = "XRP/ETH"
# Pick a timerange adapted to the pair we use to test