Stratégie Scalp HA SMA9 & SMA30 (Oracle))

This scalp strategy combines two simple moving averages (SMA9 and SMA30) applied to Heikin Ashi candles with the rapid reversal pattern detection:
Doji on the previous candle
First no-wick candle immediately afterward
Bullish or bearish confirmation against the SMA9
It aims to capture small intraday moves with very precise entries.
🔧 Inputs
Parameter Description Default
Fast SMA Period (lenFast) Length of the fast SMA on Heikin Ashi close 9
Slow SMA Period (lenSlow) Length of the slow SMA on Heikin Ashi close 30
Doji Threshold (dojiThresh) Maximum body size to qualify as a doji (% of candle range) 0.30
Wick Threshold (wickThresh) Maximum wick size to qualify as “no-wick” (% of range) 0.30
⚙️ How It Works
Heikin Ashi Series
Fetches HA open/high/low/close for your chart’s timeframe.
Moving Averages
Plots SMA9 (“Fast”) and SMA30 (“Slow”) on the HA close to gauge short-term momentum.
Doji Detection
Marks the previous candle as a doji if its body ≤ dojiThresh × (range).
No-Wick Candle
The next HA candle qualifies if both its upper and lower wicks ≤ wickThresh × (range).
Entry Conditions:
Long: previous doji + no-wick bullish candle + HA close > SMA9
Short: previous doji + no-wick bearish candle + HA close < SMA9
Order Execution:
Closes any opposing position before entering the new trade.
Draws green/red arrows for visual confirmation of each signal.
📈 Usage Tips:
Recommended Timeframes: M1, M5 or M15 depending on asset volatility.
Suitable Markets: Forex pairs (EURUSD, GBPUSD), crypto (BTCUSDT, ETHUSDT), indices (NAS100), etc.
Optimization:
Tweak dojiThresh/wickThresh for sensitivity (e.g. 0.10–0.50).
Add fixed or dynamic stops/take-profits (ATR, pivots).
Thoroughly backtest and forward-test to confirm robustness.
⚠️ Disclaimers
Backtest Only: Always validate live performance in paper trading before using real capital.
Fees & Slippage: Can significantly affect scalp results.
Risk Management: Adjust position sizing to your risk tolerance and market conditions.
Configure your stops/TPs to match your personal trading style. Happy scalping! 🐇
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
// ( •.•)
// (")_(")
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
// ( •.•)
// (")_(")