fix: Allow manual Telegram trades through timeframe filter

**BUG:** Telegram 'short sol' blocked by multi-timeframe data collection filter
- Filter checked 'timeframe !== 5' which blocked 'manual' timeframe
- Manual trades from Telegram should execute, not be saved for analysis

**FIX:** Updated condition to 'timeframe !== 5 && timeframe !== manual'
- Allows both 5min TradingView signals AND manual Telegram trades
- Only blocks 15min/1H/4H/Daily for data collection

**FILES:** app/api/trading/execute/route.ts line 114
**DEPLOYED:** Nov 20, 2025 15:42 CET
This commit is contained in:
mindesbunister
2025-11-20 16:35:09 +01:00
parent 9d92428c63
commit b511211f59

View File

@@ -107,9 +107,10 @@ export async function POST(request: NextRequest): Promise<NextResponse<ExecuteTr
}
// 🔬 MULTI-TIMEFRAME DATA COLLECTION
// Only execute trades from 5min timeframe, save other timeframes for analysis
// Only execute trades from 5min timeframe OR manual Telegram trades
// Save other timeframes (15min, 1H, 4H, Daily) for analysis
const timeframe = body.timeframe || '5'
if (timeframe !== '5') {
if (timeframe !== '5' && timeframe !== 'manual') {
console.log(`📊 DATA COLLECTION: ${timeframe}min signal from ${driftSymbol}, saving for analysis (not executing)`)
// Get current price for entry tracking