IncBandsOnArray – library MetaTrader 5

An example of using the CBandsOnArray class
The CBandsOnArray is intended for calculation of Bollinger Bands ® (BB) on an indicator buffer. Usage: The Init() method with the following parameters is called in the OnInit() function of the indicator: int aPeriod is indicator period; ENUM_MA_METHOD aMethod is a method of averaging for calculation of the standard deviation; double aDeviation is a width … Read more