Assign it to your own variable.
input double LotSize = 0.10; void OnStart() { double myLotSize = LotSize; if(myLotSize > maxvol) myLotSize = maxvol; if(myLotSize < minvol) myLotSize = minvol; }
Anthony Garot:
Assign it to your own variable.
I tried something similar, but ill try it this way
thanks worked
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
Hi,
In mql5 EA i have this problem when modifying LotSize, which is initially set as input. i want to use this code
But returns constant cannot be changed!
Thanks in advance