TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
double iBandsOnArray ( TMXArray< double >  array,
int  total,
int  period,
int  deviation,
int  bands_shift,
int  mode,
int  shift 
)

Calculates the Bollinger BandsĀ® indicator on data, stored in array, and returns its value

Parameters
arrayArray with data
totalThe number of items to be counted. 0 means the whole array
periodAveraging period for calculation
deviationNumber of standard deviations from the main line
bands_shiftThe indicator shift relative to the chart
modeIndicator line index. It can be any of the Indicators line identifiers values (MODE_MAIN, MODE_UPPER, MODE_LOWER)
shiftIndex of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago)
Returns
Numerical value of the Bollinger BandsĀ® indicator, calculated on data, stored in array