diff --git a/config.py b/config.py index 8fb8e70..c8dc843 100755 --- a/config.py +++ b/config.py @@ -117,8 +117,12 @@ class SignalConfig: default_risk_pct: float = 1.0 default_rr_ratio: float = 2.0 atr_sl_multiplier: float = 1.5 - min_rr_ratio: float = 0.4 - tp_tightening_factor: float = 0.8 + min_rr_ratio: float = 0.5 + # TP tightening (May 2026) was tuned on the pre-spread backtester. + # Re-tested 2026-07-08 with $0.30 spread + gap fills: 0.8 nearly + # halves total R (+36.1R vs +66.8R, worse in both train/val halves) + # — smaller wins make the fixed spread a larger share of every TP. + tp_tightening_factor: float = 1.0 @dataclass diff --git a/test_all.py b/test_all.py index 48cfb62..96d8899 100644 --- a/test_all.py +++ b/test_all.py @@ -167,8 +167,8 @@ def _(): def _(): sc = SignalConfig() assert sc.min_confidence == 55.0 - assert sc.min_rr_ratio == 0.4 - assert sc.tp_tightening_factor == 0.8 + assert sc.min_rr_ratio == 0.5 + assert sc.tp_tightening_factor == 1.0 assert sc.atr_sl_multiplier == 1.5 assert sc.default_rr_ratio == 2.0 assert sc.cooldown_bars == 5