How to use "Custom MQL code"?
-
Hi Guys,
I have 2 constants "Grid_Size" and "Lots" and also 2 variables "Variable_Lots" and "Spread".
I would like to do calculation like in attached picture below:

So, I would like to put this calculation in my variable "Variable_Lots".
Can someone tell me is this code correct? Should I add some prefixes like data type or something?
Thanks in advanced,
Mihajlo -
Should be fine but need to add ; at the end, put all in a comment so you can see what is happening.
-
does this work?
-
@dee108 You'll have to try it.