• Get access

Obtain the opening and closing price of a day - page 2

To add comments, please log in or register
nicholi shen
2402
nicholi shen  
whroeder1:

I've now added you to my do not help list, have a nice life.


Great! All I ever get from you is rude "I'm smarter than you" copypastas anyway. 

Ricardo Lourenço
42
Ricardo Lourenço  

nicholi shen:

void OnStart()
{
   int day_shift = 1; // yesterday
   MqlRates rate[];
   CopyRates(Symbol(),PERIOD_D1,day_shift,1,rate);
   Print("Yesterday: O=",rate[0].open," C=",rate[0].close);
}



Only to say thanks @nicholi !

12
To add comments, please log in or register