TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
double iEnvelopesOnArray ( TMXArray< double >  array,
int  total,
int  ma_period,
int  ma_method,
int  ma_shift,
double  deviation,
int  mode,
int  shift 
)

Calculates the Envelopes 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
ma_periodAveraging period for calculation of the main line
ma_methodMoving Average method. It can be any of following values:
MODE_SMASimple averaging
MODE_EMAExponential averaging
MODE_SMMASmoothed averaging
MODE_LWMALinear-weighted averaging
ma_shiftMA shift. Indicator line offset relate to the chart by timeframe
deviationPercent deviation from the main line
modeIndicator line index. It can be any of Indicators line identifiers value (0 - MODE_MAIN, 1 - MODE_UPPER, 2 - 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 Envelopes indicator, calculated on data, stored in array[]