Calculations using only integers will be cast as an integer.
double lotsplitpercent = 60.0 / 100;
will give you the result you expect

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
The terminal I'm using is MT4 build 1170 but this also compiles MT5.
double lotsplitpercent = 60 / 100; //returns 0 ???
I'm sure it used to return 0.6 for splitting 60% of open lots.
My workaround for today is..
double lotsplitpercent = 60 * .01;