Fix post-cluster neutral strength ablation
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user