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:
@@ -17,15 +17,16 @@ export async function POST(request) {
|
||||
|
||||
console.log('📋 Superior Config:', config)
|
||||
|
||||
// Define trading presets matching the main automation system
|
||||
// Define trading presets matching the frontend UI
|
||||
const TRADING_PRESETS = {
|
||||
'scalp': [
|
||||
{ name: '5m', tv: '5' },
|
||||
{ name: '15m', tv: '15' }
|
||||
{ name: '15m', tv: '15' },
|
||||
{ name: '30m', tv: '30' }
|
||||
],
|
||||
'day-trading': [
|
||||
{ name: '1h', tv: '60' },
|
||||
{ name: '4h', tv: '240' }
|
||||
{ name: '2h', tv: '120' }
|
||||
],
|
||||
'swing-trading': [
|
||||
{ name: '4h', tv: '240' },
|
||||
@@ -38,6 +39,7 @@ export async function POST(request) {
|
||||
{ name: '15m', tv: '15' },
|
||||
{ name: '30m', tv: '30' },
|
||||
{ name: '1h', tv: '60' },
|
||||
{ name: '2h', tv: '120' },
|
||||
{ name: '4h', tv: '240' },
|
||||
{ name: '1D', tv: '1D' }
|
||||
]
|
||||
@@ -181,10 +183,10 @@ export async function GET() {
|
||||
POST: '/api/superior-screenshot - Superior parallel analysis'
|
||||
},
|
||||
presets: {
|
||||
'scalp': '2 timeframes (5m, 15m) - Scalping strategy',
|
||||
'day-trading': '2 timeframes (1h, 4h) - Day trading strategy',
|
||||
'scalp': '3 timeframes (5m, 15m, 30m) - Scalping strategy',
|
||||
'day-trading': '2 timeframes (1h, 2h) - Day trading strategy',
|
||||
'swing-trading': '2 timeframes (4h, 1D) - Swing trading strategy',
|
||||
'extended': '8 timeframes (1m-1D) - Comprehensive analysis'
|
||||
'extended': '9 timeframes (1m-1D) - Comprehensive analysis'
|
||||
},
|
||||
features: [
|
||||
'Parallel multi-timeframe capture',
|
||||
|
||||
Reference in New Issue
Block a user