Smoothed Heiken Ashi Trend Oscillator

It calculates the distance between the actual closing price and a reconstructed smoothed Heiken Ashi value to visualize trend direction and strength. Optional smoothing (SMA, EMA, HMA, VWMA, RMA) helps reduce noise.
Colored histogram bars indicate trend direction (bullish/bearish) and momentum (accelerating/decelerating). An optional info box shows live trend and momentum values.
Ideal for trend confirmation, reversal spotting, and gauging strength in combination with moving averages or price action setups.
It allows full customization of:
The smoothing method (SMA, EMA, WMA, etc.)
(I use a 100 EMA smoothing)
The smoothing length
Histogram bar colors for bullish and bearish conditions
The oscillator visually represents trend direction and strength:
Above zero: bullish zone
Below zero: bearish zone
Color change indicates momentum shift
Ideal for visualizing Heikin Ashi-based market structure without repainting (when live mode is off).
Works across all assets and timeframes.
© 2025 Ben Deharde
The oscillator is plotted as a histogram. Bar color reflects:
Whether price is above or below the anchor (bullish or bearish)
Whether the distance is expanding or contracting (momentum acceleration or deceleration)
The anchor is reverse-engineered from prior Heikin Ashi open and close values, adjusted by real price data (high, low, open). This structure allows for smoothed trend analysis while retaining responsiveness to price movement.
I use this oscillator in combination with smoothed Heikin Ashi candles to visually track momentum and detect subtle trend shifts early.
Built-in alert conditions allow for notification on zero-line crosses, with confirmation on candle close. These can optionally be used to signal potential trend shifts.
✅ Non-repainting (when live mode is off)
✅ Fully customizable smoothing, logic, and colors
✅ Works across all timeframes and asset classes
© 2025 Ben Deharde
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.