PROBLEM: - 1-minute data collection signals were getting blocked - Overtrading penalty: '30 signals in 30min (-20 pts)' - Flip-flop penalty: 'opposite direction 1min ago (-25 pts)' - These penalties don't make sense for data collection ROOT CAUSE: - Quality scoring runs for ALL timeframes (needed for analysis) - But frequency checks (overtrading/flip-flop) only apply to production (5min) - Data collection signals (1min, 15min, 1H, etc.) shouldn't be penalized SOLUTION: - Added skipFrequencyCheck parameter to scoreSignalQuality() - Set to true for all non-5min timeframes: skipFrequencyCheck: timeframe !== '5' - Moved timeframe variable declaration earlier for reuse - 1-minute signals now score purely on technical merit (ADX/ATR/RSI/etc.) IMPACT: - 1-minute data collection works correctly - No false 'overtrading' blocks every minute - Quality scores still calculated for cross-timeframe analysis - Production 5min signals still have full frequency validation FILES CHANGED: - app/api/trading/execute/route.ts (quality scoring call) DEPLOYED: Nov 27, 2025 (71.8s build time)
40 KiB
40 KiB