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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?