Merge pull request #10782 from freqtrade/feat/bt_reverse

Enable future positions to reverse their position
This commit is contained in:
Matthias
2024-11-01 09:29:35 +01:00
committed by GitHub
6 changed files with 107 additions and 7 deletions

View File

@@ -1899,7 +1899,7 @@ def test_backtest_multi_pair_long_short_switch(
if use_detail:
# Backtest loop is called once per candle per pair
assert bl_spy.call_count == 1071
assert bl_spy.call_count == 1523
else:
assert bl_spy.call_count == 479
@@ -1909,7 +1909,7 @@ def test_backtest_multi_pair_long_short_switch(
assert len(evaluate_result_multi(results["results"], "5m", 1)) == 0
# Expect 26 results initially
assert len(results["results"]) == 30
assert len(results["results"]) == 53
def test_backtest_start_timerange(default_conf, mocker, caplog, testdatadir):