You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Print
It enters a message in the Expert Advisor log.Print - Common Functions - MQL4 Reference
Oh I'm sorry,
got what you mean, I assume you mean something special with "log".
anyway, thank you all my friends for your kind guidance.
I ran into this same problem this week and it looks like it may have to do with trading a pair with a base not previously used. I have a EURO account and have traded in EUR/USD in that terminal. MODE_TICKVALUE always works without a problem. I tried calculating the lot size for a USD/CAD and MODE_TICKVALUE returned a zero. So I used a simple EA that puts the MODE_TICKVALUE result in an Alert window and tested several pairs. All the pairs with a non USD base returned a zero. But only on the first attempt! Every time I use that same script now, MODE_TICKVALUE always returns a value above 0. Even if I have restarted the terminal. So there seems to be a buffer somewhere that holds price quotes, but not for every pair that hasn't been used yet. I knew that MODE_TICKVALUE doesn't hold historical figures but this is apparently something you have to take into account as well.