How to understand iBands() value returned

To add comments, please log in or register
Skowi
13
Skowi  

Hello,

I am tying to use iBands() in an EA but I dont understand what the value returned mean !


Please help me !

Marco vd Heijden
Moderator
8176
Marco vd Heijden  

iBands

The function returns the handle of the Bollinger Bands® indicator.

Return 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.

After getting the handle you have to specify the line mode or buffer number: Upper,Main or Lower and then pull the data from it by CopyBuffer Function.


See: https://www.mql5.com/en/docs/indicators/ibands

Documentation on MQL5: Technical Indicators / iBands
Documentation on MQL5: Technical Indicators / iBands
  • www.mql5.com
//|                                                  Demo_iBands.mq5 | //|                        Copyright 2011, MetaQuotes Software Corp. | //|                                             https://www.mql5.com | "The method of creation of the handle is set through the 'type' parameter (function type...
To add comments, please log in or register