Smoothed Heikin-Ashi with Closed-Bar Confirmation
This indicator applies an additional smoothing layer (WMA or EMA) on top of standard Heikin-Ashi candles. The smoothing dramatically reduces noise while preserving trend direction. Color changes signal trend shifts, while Doji-like candles (small body relative to ATR) flag indecision zones where no trades should be taken. Confirmation requires 2+ consecutive same-color candles.
How It Works
Standard HA: HA_Close = (O+H+L+C)/4, HA_Open = (prev_HA_Open + prev_HA_Close)/2. Smoothing: Smoothed_HA_Close = WMA(HA_Close, Smooth_Period), Smoothed_HA_Open = WMA(HA_Open, Smooth_Period). Bull when Smoothed_HA_Close > Smoothed_HA_Open (green). Bear when < (red). Doji when abs(Close - Open) < Doji_Threshold × ATR. Strong bull: 2+ consecutive green with rising closes. Reversal: color change after 2+ same-color.
Entry Signals
- BUY: 2+ consecutive green HA candles with rising closes after color change from red
- SELL: 2+ consecutive red HA candles with falling closes after color change from green
- No-Trade: Doji detected (small body) → indecision zone
- No-Trade: Less than Confirmation_Bars consecutive same-color candles
Exit Signals
- ✕TP: Price reaches entry ± (TP_ATR_Mult × ATR)
- ✕Reversal: Color change after 2+ same-color candles
- ✕Expiry: Signal_Expiry_Bars passed
Trade / No-Trade Filters
- Doji Filter: Body < Doji_Threshold × ATR → no signal
- ATR Regime: Extreme volatility → no signal
- Spread: Spread > Max_Spread_Points → no signal
- Cooldown: Last signal < Cooldown_Bars ago → no signal
Source Code Preview
Educational purposes only. Do NOT use with real money. Test on demo accounts only.
Key Features
Input Parameters
Installation Guide
Clear Warning: Educational Purposes Only
This indicator is for educational and testing purposes only. Do NOT use it with real money. Test only on demo accounts. Trading with real money involves substantial risk of capital loss. This tool does not constitute investment advice.
Community
Frequently Asked Questions
Educational Disclaimer
This content is for educational purposes only and does not constitute financial or investment advice. Trading involves significant risk and you may lose your capital. Always consult a licensed financial advisor before making investment decisions.
Sign In to Download
Downloads are available to registered members. Sign in or create a free account to access the full source code.
Specifications
Best For
Related
Supertrend ATR Trend Envelope
ATR-based dynamic trend envelope with auto-adapting bands that widen during volatility and tighten during calm periods.
KAMA (Kaufman Adaptive Moving Average)
Adaptive moving average that adjusts smoothing based on Market Efficiency Ratio — fast in trends, slow in choppy markets.
Price Action Pattern Detector at Key Levels
Detects candlestick patterns (pin bars, engulfing, inside bars) only at key levels. Patterns in the middle of nowhere are ignored.