Heikin Ashi Trend mt5
- Göstergeler
- Ulises Calderon Bautista
- Sürüm: 2.1
Heikin Ashi Trend Indicator v2.1
MQL5/MQL4 port of the Heikin Ashi Trend Indicator originally published on TradingView by dman103 (2,300+ likes, 80,000+ views). It combines Heikin Ashi candle smoothing with the Tilson T3 moving average to produce clean, noise-reduced trend signals directly on the price chart.
#### How it works
The indicator processes price data in two stages. First, it computes Heikin Ashi OHLC values from the regular candlestick data. Then, it applies the Tilson T3 moving average (six cascaded EMAs with pre-calculated polynomial coefficients) to all four HA components: Open, Close, High, and Low.
Trend direction is determined by comparing the smoothed values:
- **Bullish:** T3(haClose) > T3(haOpen) — markers or line drawn below price at the T3(haLow) level
- **Bearish:** T3(haOpen) > T3(haClose) — markers or line drawn above price at the T3(haHigh) level
When the squeeze threshold is enabled, the indicator detects trend convergence (the percentage difference between T3 Close and T3 Open falling below the threshold) and switches to lighter colors as a reversal warning.
#### Visual features
The indicator offers 11 drawing styles in MQL5 (9 in MQL4), including crosses (original style), dots (Parabolic SAR style), solid and dashed lines (SuperTrend style), directional arrows, diamonds, squares, circles, stars, and thumbs. All four colors (bull strong, bull squeeze, bear strong, bear squeeze) are fully customizable. Optional chart bar coloring is available in MQL5. Multi-channel alerts support popup, sound, push notification, and email.
#### Parameters
| Parameter | Default | Description |
|---|---|---|
| T3 Period | 6 | Lookback period for the six cascaded EMAs |
| T3 Volume Factor | 0.7 | Smoothness/responsiveness control (0.0–1.0) |
| Squeeze Threshold | 0.0 | Reversal warning threshold in percent (0 = disabled) |
| Drawing Style | Crosses | Visual style for trend markers or lines |
| Bull Color | DeepSkyBlue | Color for strong bullish trend |
| Bull Color (squeeze) | Aqua | Color for bullish trend under squeeze |
| Bear Color | DeepPink | Color for strong bearish trend |
| Bear Color (squeeze) | HotPink | Color for bearish trend under squeeze |
| Color Chart Bars | false | Apply trend colors to chart candlesticks (MQL5 only) |
| Enable Alerts | false | Activate the multi-channel alert system |
| Alert: Popup | true | Show popup alert on trend change |
| Alert: Sound | false | Play sound on trend change |
| Alert: Push | false | Send push notification on trend change |
| Alert: Email | false | Send email on trend change |
#### Key characteristics
The indicator works on all instruments and timeframes. Signals are generated on closed bars only, so the indicator does not repaint. It uses 32 internal buffers (4 output + 4 Heikin Ashi + 24 T3 intermediates) with pre-calculated T3 coefficients for computation. Both MQL5 and MQL4 versions are included with identical signal logic. The T3 volume factor coefficients always sum to 1.0, preserving price amplitude.
#### Original source
Heikin Ashi Trend Indicator by dman103 — TradingView, Pine Script v4. Published September 26, 2020.
