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! 🐇
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
// ( •.•)
// (")_(")
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
// ( •.•)
// (")_(")