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

@@ -13,10 +13,10 @@ async function testAllPresets() {
const baseUrl = 'http://localhost:9001'
const presets = [
{ name: 'Scalp Trading', preset: 'scalp', description: '2 timeframes (5m, 15m)' },
{ name: 'Day Trading', preset: 'day-trading', description: '2 timeframes (1h, 4h)' },
{ name: 'Scalp Trading', preset: 'scalp', description: '3 timeframes (5m, 15m, 30m)' },
{ name: 'Day Trading', preset: 'day-trading', description: '2 timeframes (1h, 2h)' },
{ name: 'Swing Trading', preset: 'swing-trading', description: '2 timeframes (4h, 1D)' },
{ name: 'Extended Analysis', preset: 'extended', description: '8+ timeframes (1m-1D)' }
{ name: 'Extended Analysis', preset: 'extended', description: '9+ timeframes (1m-1D)' }
]
console.log('\n📋 Testing Strategy:')