
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
Hi there,
Can someone give me a clear view on the folllowing ?.
MqlRates mrate[];
///--- copying data of the last 3 bars
if(CopyRates(_Symbol,_Period,0,3,mrate)<0)
{
Alert("Historical quote copy error - error: ",GetLastError(),"!!");
return;
}
Bar_time[0]=mrate[0].time;
//--- if both time values are equal, there is no new bar
if(Prev_time==Bar_time[0]) return;
//--- new bar
Prev_time=Bar_time[0];
//--- do something here then with mrate[0].close
At this stage of the code execution what is in mrate[0].close ? (I mean the current bar is never closed, no ?)
Thank you for your comments !