The Heiken Ashi indicator with smoothing. Depending on the parameters it can be plotted as bars or candles.
It can plot the HeikenAshi bars (Fig. 1), and the standard price bars (or candles), painted as Heiken Ashi bars (Fig. 2).

Figure 1. HeikenAshi bars

Figure 2. Price bars, painted as Heiken Ashi bars
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/142
An Expert Advisor, based on the "Puria method" Forex Strategy
An Expert Advisor, based on the "Puria method" Forex Strategy.
The Hodrick-Prescott Filter
The Hodrick-Prescott Filter.