diff --git a/app/automation-v2/page.js b/app/automation-v2/page.js index 3667ca5..d7ec816 100644 --- a/app/automation-v2/page.js +++ b/app/automation-v2/page.js @@ -18,7 +18,7 @@ export default function AutomationPageV2() { mode: 'LIVE', dexProvider: 'DRIFT', symbol: 'SOLUSD', - selectedTimeframes: ['5', '15', '30'], // Default to scalping preset + selectedTimeframes: ['60', '240'], // Default to improved scalping preset (1h, 4h) tradingAmount: 100, balancePercentage: 100, // Default to 100% of available balance }) @@ -772,35 +772,35 @@ Based on comprehensive technical analysis across multiple timeframes:
diff --git a/lib/simple-automation.js b/lib/simple-automation.js index 0d382ee..4a0259f 100644 --- a/lib/simple-automation.js +++ b/lib/simple-automation.js @@ -606,17 +606,23 @@ class SimpleAutomation { console.warn('⚠️ Could not determine position status for confidence adjustment'); } - // 🎯 AGGRESSIVE SCALPING CONFIDENCE when NO POSITION - let minConfidence = 75; // Default confidence + // 🎯 IMPROVED CONFIDENCE THRESHOLDS - Higher standards to reduce losses + let minConfidence = 80; // Increased default confidence if (!hasActivePosition) { - // NO POSITION = Lower confidence threshold for faster re-entry - if (this.config.selectedTimeframes?.includes('5m')) { - minConfidence = 65; // Very aggressive for 5m scalping - console.log('🏃‍♂️ SCALPING MODE: Using aggressive 65% confidence (no position)'); + // NO POSITION = Still require high confidence for quality entries + if (this.config.selectedTimeframes?.includes('1h')) { + minConfidence = 75; // 1h timeframe - medium confidence + console.log('📊 1H TRADING: Using 75% confidence threshold (no position)'); + } else if (this.config.selectedTimeframes?.includes('4h')) { + minConfidence = 70; // 4h timeframe - lower confidence OK due to higher reliability + console.log('📈 4H TRADING: Using 70% confidence threshold (no position)'); + } else if (this.config.selectedTimeframes?.includes('5m')) { + minConfidence = 80; // 5m requires very high confidence due to noise + console.log('⚡ 5M SCALPING: Using high 80% confidence (noisy timeframe)'); } else if (this.config.selectedTimeframes?.includes('15m')) { - minConfidence = 70; // Aggressive for 15m scalping - console.log('⚡ SCALPING MODE: Using aggressive 70% confidence (no position)'); + minConfidence = 78; // 15m also requires high confidence + console.log('🏃‍♂️ 15M SCALPING: Using high 78% confidence (noisy timeframe)'); } else { minConfidence = 72; // Slightly lower for day trading console.log('📈 DAY TRADING: Using 72% confidence (no position)'); diff --git a/prisma/prisma/dev.db b/prisma/prisma/dev.db index 8dabb7a..8eb2371 100644 Binary files a/prisma/prisma/dev.db and b/prisma/prisma/dev.db differ