Fix presets to match frontend UI exactly

FRONTEND PRESET CORRECTIONS:
- Scalp Trading: 5m, 15m, 30m (was 5m, 15m) → 3 timeframes
- Day Trading: 1h, 2h (was 1h, 4h) → 2 timeframes
- Swing Trading: 4h, 1D (correct) → 2 timeframes

UPDATED FILES:
- lib/superior-screenshot-service.ts → Correct timeframe definitions
- lib/auto-trading-service.ts → TRADING_CONFIGS match frontend
- app/api/superior-screenshot/route.js → API presets corrected
- Verification and test scripts updated

PERFORMANCE ESTIMATES:
- Scalp (3 timeframes): ~90s → ~30-40s parallel
- Day Trading (2 timeframes): ~60s → ~20-30s parallel
- Swing Trading (2 timeframes): ~60s → ~20-30s parallel
- Extended (9 timeframes): ~270s → ~70-100s parallel

System now matches frontend UI exactly with superior parallel capture!
This commit is contained in:
mindesbunister
2025-07-26 12:30:51 +02:00
parent 873f1adc9c
commit 049ecb0265
5 changed files with 30 additions and 26 deletions

View File

@@ -3,15 +3,16 @@
* Uses the proven scalp preset parallel API technique for maximum efficiency
*/
// Trading strategy presets matching the main automation system
// Trading strategy presets matching the frontend UI
const SCALP_TIMEFRAMES = [
{ name: '5m', tv: '5', description: 'Standard scalping' },
{ name: '15m', tv: '15', description: 'Swing scalping' }
{ name: '15m', tv: '15', description: 'Swing scalping' },
{ name: '30m', tv: '30', description: 'Extended scalping' }
]
const DAY_TRADING_TIMEFRAMES = [
{ name: '1h', tv: '60', description: 'Hourly analysis' },
{ name: '4h', tv: '240', description: 'Four-hour trend' }
{ name: '2h', tv: '120', description: 'Two-hour trend' }
]
const SWING_TRADING_TIMEFRAMES = [