tickSize=1.0/pow(10,digit);
See MathPow().
Documentation on MQL5: Math Functions / MathPow
- www.mql5.com
MathPow - Math Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
This is incorrect way to process tick size which can be different from a power of 10.
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
int a = 3 (input) digits
how can i get double b = 0.001 (output) ticksize using int a =3
it means add 3 decimals in format 0.001 which is used for ticksize
I am using
but i am looking for mathematical solution,
thanks