Reilly Fox:
Acess array rates[0] this is your previouse bar
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");
}
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?
sweet as sussed it out now ccheers
I spose id use Mqlrates so...
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?