how to select previous bar to find high and low?

 

I spose id use Mqlrates so...

 

MqlRates rates[];
   int copied=CopyRates(NULL,0,1,1,rates);
   if(copied<=0)
      Print("Error copying price data ",GetLastError());
   else
   {
   Print("Copied ",ArraySize(rates)," bars");
   }

 Ive used this and it prints that its selected the previous bar.

How do I get the details of this previous bar? 

 
Reilly Fox:

I spose id use Mqlrates so...

 

MqlRates rates[];
   int copied=CopyRates(NULL,0,1,1,rates);
   if(copied<=0)
      Print("Error copying price data ",GetLastError());
   else
   {
   Print("Copied ",ArraySize(rates)," bars");
   }

 Ive used this and it prints that its selected the previous bar.

How do I get the details of this previous bar? 

Acess array    rates[0] this is your previouse bar
 
sweet as sussed it out now ccheers