feat: money printing machine - improved scalping with 1h/4h timeframes, trend filter, and better risk management

This commit is contained in:
mindesbunister
2025-07-29 19:03:11 +02:00
parent 035017faff
commit 7522baa0f1
3 changed files with 26 additions and 20 deletions

View File

@@ -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)');