- Remember it's 4/5 except on JPY pairs (2/3)
What is a TICK? - MQL4 and MetaTrader 4 - MQL4 programming forum - There is also the predefined _Digits
whroeder1:
- Remember it's 4/5 except on JPY pairs (2/3)
What is a TICK? - MQL4 and MetaTrader 4 - MQL4 programming forum - There is also the predefined _Digits
Thanks for the response. (I was asking/looking for some kind of BrokerInfo or AccountInfo function).
To avoid headaches in calculations I'm thinking about implementing some control like this in all my programs:
int onInit() { int digits = (int) MarketInfo("EURUSD", MODE_DIGITS); if (digits == 4) { Alert("Program not prepared for 2/4 digit brokers. Try to migrate to a 3/5 broker!"); return -1; } //... normal program execution }
You should calibrate your expert per market, not per broker. 5 digit brokers can have 2 digit markets as well, Gold being the most common case.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Is there a better ‘formula’ in MQL4 to know if the EA is executing on a 4 digit broker or in a 5 digit broker?