Fix post-cluster neutral strength ablation

This commit is contained in:
2026-07-12 23:51:28 +02:00
parent 8df76d3288
commit b891122936
4 changed files with 64 additions and 1 deletions
+9
View File
@@ -766,6 +766,15 @@ def test_sr_research_variant_is_explicit_and_validated(monkeypatch):
bt._sr_research_variant()
def test_geometry_neutral_strength_is_enforced_after_zone_clustering():
levels = [
SimpleNamespace(strength=100),
SimpleNamespace(strength=75),
]
result = bt._apply_zone_strength_variant(levels, "legacy_geometry_neutral")
assert [level.strength for level in result] == [50, 50]
def test_backtest_entry_bounds_validate_dates(monkeypatch):
monkeypatch.setenv("BACKTEST_ENTRY_START", "2024-07-01")
monkeypatch.setenv("BACKTEST_ENTRY_END", "2024-12-31")