#!/bin/bash # v9 EXHAUSTIVE Parameter Sweep for AMD EPYC 7282 (16 cores) # Optimized with 24 workers for maximum throughput # Testing ALL 65,536 combinations in ~29 hours echo "🚀 Starting EXHAUSTIVE v9 parameter sweep with 24 workers on EPYC..." echo "📊 Testing ALL 65,536 parameter combinations (4×4×4×4×4×4×4×4 grid)" echo "⏱️ Estimated completion: ~29 hours" echo "" echo "Parameter ranges:" echo " flip_thresholds: 0.4, 0.5, 0.6, 0.7" echo " ma_gap: 0.20, 0.30, 0.40, 0.50" echo " momentum_adx: 18, 21, 24, 27" echo " long_pos: 60, 65, 70, 75" echo " short_pos: 20, 25, 30, 35" echo " cooldown_bars: 1, 2, 3, 4" echo " momentum_spacing: 2, 3, 4, 5" echo " momentum_cooldown: 1, 2, 3, 4" echo "" echo "🎯 EXHAUSTIVE SEARCH - Every possible combination will be tested!" # CRITICAL: Activate virtual environment before running Python source .venv/bin/activate nohup python3 scripts/run_backtest_sweep.py \ --csv data/solusdt_5m.csv \ --symbol SOL-PERP \ --timeframe 5 \ --position-size 8100 \ --flip-thresholds "0.4,0.5,0.6,0.7" \ --ma-gap-thresholds "0.20,0.30,0.40,0.50" \ --momentum-adx "18,21,24,27" \ --momentum-long-pos "60,65,70,75" \ --momentum-short-pos "20,25,30,35" \ --cooldown-bars "1,2,3,4" \ --momentum-spacing "2,3,4,5" \ --momentum-cooldown "1,2,3,4" \ --workers 24 \ --top 100 \ --output sweep_v9_exhaustive_epyc.csv \ > v9_sweep_epyc.log 2>&1 & echo "✅ Background sweep started (PID: $!)" echo "📋 Monitor progress: tail -f v9_sweep_epyc.log" echo "📊 Results will be in: sweep_v9_exhaustive_epyc.csv"