I wrote the code below.
So actually calculation is 0.02*1.83=0.0366 and i want only 2 digit without round the number like = 0.03 just leave "66"
but above coding mLots show 0.04 coding make it round. i don't want round. is anyone help me how i make code function return double value with 2 digit without round the number.
Thank in Advanced
Normalize your lot correctly :
Forum on trading, automated trading systems and testing trading strategies
Help with a recurring OrderClose function error
Alain Verleyen, 2016.11.30 14:57
You have either to use OrderLots() to close a full position or
to normalize your lot size this way :