The COBVOnArray class is intended for calculation of OBV (On Balance Volume) on indicator buffers.
Usage:
The Init() method with an optional parameter is called in the OnInit() function:
The Solve() method with the following parameters is called in the OnCalculate() function:
Additional methods:
The Test_OBVOnArray.mq5 file is an indicator demonstrating how to use the COBVOnArray class. The IncOBVOnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created).
On Balance Volume Technical Indicator (OBV) is a momentum technical indicator that relates volume to price change. The indicator, which Joseph Granville came up with, is pretty simple. If the close price of the current bar is higher than that of the previous bar, the volume of the current bar is added to the previous OBV. If the current bar close price is lower than of the previous one, the current volume is subtracted from the previous OBV.

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/672
IncCHVOnArray
The CCHOOnArray class is intended for calculation of the Chaikin Volatility indicator (CHV) on indicator buffers.
IncFractalsOnArray
The CFractalsOnArray class is intended for calculation of Fractals on indicator buffers.
IncFramaOnArray
The CFramaOnArray class is intended for calulcation of Fractal Adaptive Moving Average (FRAMA) on indicator buffers.
Heiken_Ashi_Smoothed_HTF_Signal
Heiken_Ashi_Smoothed_HTF_Signal displays trend direction as a sequence of graphical objects, the trend is determined by Heiken_Ashi_Smoothed indicator.