how can i get previous week low and high
this code is giving me previous to prvious week high but i want just previous week low and high value
double WeekHigh=iHigh(NULL,PERIOD_W1,1);
Print("weekhigh",WeekHigh);
iHigh iLow
one value for low one value for high
this code is giving me previous to prvious week high but i want just previous week low and high value
double WeekHigh=iHigh(NULL,PERIOD_W1,1);
Print("weekhigh",WeekHigh);
Maybe the weekly data is updating and giving you the wrong figures.
Run it a few times or flick to the weekly chart to make sure that the weekly data is updated
- iLow
- Weekly in the tester is not modeled
this code is giving me previous to prvious week high but i want just previous week low and high value
double WeekHigh=iHigh(NULL,PERIOD_W1,1);
Print("weekhigh",WeekHigh);