iEnvelopes
The function returns the handle of the Envelopes indicator.
int iEnvelopes( |
Parameters
symbol
[in] The symbol name of the security, the data of which should be used to calculate the indicator. The NULL value means the current symbol.
period
[in] The value of the period can be one of the ENUM_TIMEFRAMES values, 0 means the current timeframe.
ma_period
[in] Averaging period for the main line.
ma_shift
[in] The shift of the indicator relative to the price chart. It should be remembered that the line shift is only visual, and values in the indicator buffer are stored without the shift. When obtaining buffer values using the CopyBuffer() function,the shift value will have no effect.
ma_method
[in] Smoothing type. Can be one of the values of ENUM_MA_METHOD.
applied_price
[in] The price used. Can be any of the price constants ENUM_APPLIED_PRICE or a handle of another indicator.
deviation
[in] The deviation from the main line (in percents).
Returned value
Returns the handle of a specified technical indicator, in case of failure returns INVALID_HANDLE. The computer memory can be freed from an indicator that is no more utilized, using the IndicatorRelease() function, to which the indicator handle is passed.
Note
The buffer numbers: 0 - UPPER_LINE, 1 - LOWER_LINE.
© 2000-2010, MetaQuotes Software Corp.