@trader-philipps said in stop loss based on ATR:
@akulus Actually "*MathPow(10,_Digits-1)" should give you the Pip multiplocator for price sections. Keep in mind that for a 5 digits broker 1 Pip is 10 points!
However, if you create a constant of type double named cdSLAtrMultiplicator, in the adjust field you would put ...
cdSLAtrMultiplicatorMathPow(10,_Digits-1)
The good thing about the Mathpow approach is that it works on 2 or 3 digits instruments such as gold or jpy pairs as well!
Somehow the editor changed my formular.
*cdSLAtrMultiplicator * MathPow(10,_Digits-1)