**Problem:** - Signal flips (SHORT→LONG or LONG→SHORT) were auto-approved - Bypassed signal quality scoring, cooldown, drawdown checks - User wanted flips ONLY if new signal has strong quality (score ≥60) **Solution:** - Removed early return for opposite-direction signals in check-risk - Flips now go through FULL validation: quality score, cooldown, limits - Execute endpoint still handles flip logic (close opposite + open new) **New Flow:** 1. n8n sends flip signal → check-risk endpoint 2. Detects potential flip, logs 'checking quality score' 3. Continues to quality checks (not early return) 4. If score ≥60 AND all checks pass → execute handles flip 5. If score <60 → BLOCKS flip with 'Signal quality too low' **Result:** Flips now require signal strength, not just direction change
11 KiB
11 KiB