Document S/R findings and isolate legacy gate features
This commit is contained in:
@@ -141,6 +141,9 @@ SR_RESEARCH_VARIANTS = {
|
||||
"soft_zones_legacy_primary",
|
||||
"confirmed_rounds_legacy_primary",
|
||||
"gate_v2_legacy_primary",
|
||||
"legacy_geometry_neutral",
|
||||
"legacy_pivots_only",
|
||||
"legacy_traffic_grid_only",
|
||||
}
|
||||
|
||||
|
||||
@@ -273,7 +276,19 @@ def _window_setups(
|
||||
|
||||
sr_variant = _sr_research_variant()
|
||||
detector_variant = sr_variant.removesuffix("_legacy_primary")
|
||||
if detector_variant in {"production_control", "rr_aligned_control"}:
|
||||
if sr_variant == "legacy_geometry_neutral":
|
||||
detected_levels = detect_sr_levels_legacy(
|
||||
highs, lows, closes, volumes, neutral_strength=True
|
||||
)
|
||||
elif sr_variant == "legacy_pivots_only":
|
||||
detected_levels = detect_sr_levels_legacy(
|
||||
highs, lows, closes, volumes, include_volume_profile=False
|
||||
)
|
||||
elif sr_variant == "legacy_traffic_grid_only":
|
||||
detected_levels = detect_sr_levels_legacy(
|
||||
highs, lows, closes, volumes, include_pivots=False
|
||||
)
|
||||
elif detector_variant in {"production_control", "rr_aligned_control"}:
|
||||
detected_levels = detect_sr_levels_legacy(highs, lows, closes, volumes)
|
||||
else:
|
||||
detector_cap = 0 if detector_variant == "gate_v2" else MAX_LEVELS
|
||||
@@ -331,7 +346,9 @@ def _window_setups(
|
||||
targets = _prune_floor_pinned_targets(targets)
|
||||
primary_min_rr = (
|
||||
1.5
|
||||
if sr_variant == "production_control" or sr_variant.endswith("_legacy_primary")
|
||||
if sr_variant == "production_control"
|
||||
or sr_variant.endswith("_legacy_primary")
|
||||
or sr_variant.startswith("legacy_")
|
||||
else float(activation.get("min_rr", 0.0))
|
||||
)
|
||||
primary = _select_primary_target(
|
||||
|
||||
Reference in New Issue
Block a user