Refresh Prices

 

Hi

I ran the following code just now:

void OnStart()
  {
//---
   Print(Ask);
   Sleep(5000);
   Print(Ask);
  }


And the ASK price was the same. EURUSD H1, FXPro Demo5

Is this the same for OnTick()?

So, once the event handler is called Prices freeze?

 
Yes and the documentation freezes too.
Ask - Predefined Variables - MQL4 Reference
Ask - Predefined Variables - MQL4 Reference
  • docs.mql4.com
Ask - Predefined Variables - MQL4 Reference
Reason: