I want to get the result of the iBands() indicator function on the bar which I like, for example the third bar from the recent bars on the chart that my EA is attached.
How can I get that?
How can I accomplish that?
the following: just returns the latest number of the iBands for the latest price on the chart:
double iBands( stringsymbol, // symbol int timeframe, // timeframe int period, // averaging period double deviation, // standard deviations int bands_shift, // bands shift intapplied_price, // applied price intmode, // line index intshift// shift );
I want to get the result of the iBands() indicator function on the bar which I like, for example the third bar from the recent bars on the chart that my EA is attached.
How can I get that?
How can I accomplish that?
the following: just returns the latest number of the iBands for the latest price on the chart:
double myVar;
myVar=(iBands(NULL,0, 20, 2, 0, PRICE_CLOSE, MODE_MAIN, 0));
someone please help me!
double iBands(
string symbol, // symbol
int timeframe, // timeframe
int period, // averaging period
double deviation, // standard deviations
int bands_shift, // bands shift
int applied_price, // applied price
int mode, // line index
int shift // shift
);