formula for SL
-
I have a formula to define SL. Then I want it to limit it between to values. How is it possible?
Formula---> define SL , 20< SL<40
put SL that is minimum 20 or maximum 40 -
If you have both values in Variables, you can use the native MQL function MathMin() directly into the field where you would normally write the size of the SL - https://docs.mql4.com/math/mathmin