Example how to do it:
Always helpful: Alphabetic Index of MQL4 Functions (600+)
I don't mean to be rude, but what is the point in such post after the answer has been given?
I tried That ...but some thing Wrong Happens .... When i put the timeframe to be 30 an shift 1 it gives the candle before it
void getSignal(int period)
Alert("OPEN FOR TIME FRAME **_ ",period," _** IS ",iOpen(Symbol(),period,0)," Close FOR TIME FRAME ",period," IS "+iClose(Symbol(),period,0));
when i put the timeframe 30 shift 0 it get the value from the candle that just closed
but when i put the timeframe 15 shift1 it get the value from the candle that just closed ON chart 15
but when i put the timeframe 60 shift 1 it get the value from the candle no.14 ????
IS that what you are talking about???
To add comments, please log in or register