MQL4 Reference Technical Indicators iBands
iBandsCalculates the Bollinger Bands® indicator and returns its value.
Parameters symbol [in] Symbol name on the data of which the indicator will be calculated. NULL means the current symbol. timeframe [in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe. period [in] Averaging period to calculate the main line. deviation [in] Number of standard deviations from the main line. bands_shift [in] The indicator shift relative to the chart. applied_price [in] Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values. mode [in] Indicator line index. It can be any of the Indicators line identifiers enumeration value (0 - MODE_MAIN, 1 - MODE_UPPER, 2 - MODE_LOWER). shift [in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Returned value Numerical value of the Bollinger Bands® indicator. Example:
|