MQL4: Error 129 on OrderSend and OrderClose

Back to topics list  | 1 2 To post a new topic, please log in or register
rziki_redouane 2015.10.19 23:34 #

Thank you dema for sharing the solution you found :  RefreshRates() it helped me


WHRoeder 2015.10.20 03:30 #

I resolve my trouble simply use the function RefreshRates() before use Ask or Bid values.

I think they are initialized when my script start to run, so when I use it, if I don't refresh with RefreshRates(), are obsolete.=

They are valid at the start of OnTick/start. They are invalid after any server call and Sleep. RTFM Predefined Variables and RefreshRates Function - Variables - MQL4 Tutorial
Back to topics list   | 1 2  

To add comments, please log in or register