BTC Contract Scanner
Execution
- Fetch 1H+4H OKX candles → DataFrame
- Market regime: trending_up/down/ranging/high_vol via EMA50 + volatility
- 5 strategies × 2 directions = 10 signals per timeframe
- Score: Σ(weight × signal × (0.3×1H + 0.7×4H))
- Threshold: 3.5 → emit LONG/SHORT, else HOLD
- Every 4h: walkforward grid search EMA params, update weights
Output
{"price":62500,"regime":"trending_down","long_score":1.15,"short_score":0.0,"decision":"hold"}
Evolution
- CAPTURED: Signal → ≥5% profit in 24h → capture market state
- FIX: 3 consecutive stop-loss → raise threshold +0.5, re-optimize
- DERIVED: ≥70% win-rate/20 trades → spawn SOL/ETH variants