How to get currency number of decimals
-
Hello!
When a strategy use formulas is important the number of decimal.
EURUSD: 5 decimal > 1.20000
CHFJPY: 3 decimal > 100.200Is there an automatic mode to get from the currency the number of decimal?
Thanks!

-
Try this - http://prntscr.com/brpse2
"Original" is the real number of digits. "Customized" is the changed number because of the "Point format rules" settings.As a MQL4 code, I think it was something like MarketInfo(Symbol(), MODE_DIGITS)