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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user