Random Mql results

Dec 22, 2012 at 9:24 AM

There's one thing I'm wondering about if you guys've got the same issue or not. My call for Bid(), Ask(), etc. sometimes returns random results. Like sometimes I'm getting a Symbol as a result for my Bid(), or the value of the Ask(). Sometimes even my accountnumber(!). I was thinking this was because of threading and the results got mixed up or something, but i'm not calling for my accountnumber anywhere in my code so I find this very strange.

Dec 26, 2012 at 10:20 AM

Yes got exactly the same result - looking at another solution for now although would like to come back to this solution. I believe it is a synchronisation issue whereby the core library is not syncing the multiple threads sending quotes through.

Here is a cool solution although needs to be modified for MT4. (I haven't tried it yet although will explore later and will post the MT4 version)

http://www.mql5.com/en/articles/27

Jan 2, 2013 at 7:23 PM

Thanks I appreciate

Jul 17, 2013 at 8:59 AM
Same here.

Nothing to aport after days of studing it and trying several ideas... Sorry.