Calculates the Bollinger Bands® indicator on data, stored in array, and returns its value.
[in] Array with data.
[in] The number of items to be counted. 0 means the whole array.
[in] Averaging period to calculate the main line.
[in] Number of standard deviations from the main line.
[in] The indicator shift relative to the chart.
[in] Indicator line index. It can be any of the Indicators line identifiers enumeration value (0 - MODE_MAIN, 1 - MODE_UPPER, 2 - MODE_LOWER).
[in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Numerical value of the Bollinger Bands® indicator, calculated on data, stored in array.
Unlike iBands(...), the iBandsOnArray() function does not take data by symbol name, timeframe, the applied price. The price data must be previously prepared. The indicator is calculated from left to right. To access to the array elements as to a series array (i.e., from right to left), one has to use the ArraySetAsSeries() function.