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);
 
pks214:


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

 
pks214:


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

 
pks214: this code is giving me previous to prvious week high but i want just previous week low and high value
  1. iLow
  2. Weekly in the tester is not modeled