Does anyone have any advice on how to change the start time of an indicator so that one can have "Pips to Open" from a specific start time and "Hi to Lo" for a specific period?
I've seen it done with a few pivot indicators but found it confusing.
double low0 = iLow(NULL,PERIOD_D1,0);
double high0 = iHigh(NULL,PERIOD_D1,0);
double OPEN = iOpen(NULL,1440,0);
double CLOSE = iClose(NULL,1440,0);
PIPS = DoubleToStr(((CLOSE-OPEN)/xecn)/Point,0);
HILO = DoubleToStr(((High_Today-Low_Today)/xecn)/Point,0);
I've seen it done with a few pivot indicators but found it confusing.
double low0 = iLow(NULL,PERIOD_D1,0);
double high0 = iHigh(NULL,PERIOD_D1,0);
double OPEN = iOpen(NULL,1440,0);
double CLOSE = iClose(NULL,1440,0);
PIPS = DoubleToStr(((CLOSE-OPEN)/xecn)/Point,0);
HILO = DoubleToStr(((High_Today-Low_Today)/xecn)/Point,0);
Attached File(s)
Information[1].mq4
9 KB
|
245 downloads