Download MetaTrader 5
To add comments, please log in or register
Do you have Mac OS? Find out how to install MetaTrader on it!
REDOUANE RZIKI 2015.10.19 21:34  

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

whroeder1 2015.10.20 01: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
/ /12
To add comments, please log in or register