valedownlo / Publications
Forum
Wrong atr calculation
so i was creating an EA. My EA using an ATR as a stoploss placement. Here is the code. double ATRPointsB= iATR ( NULL , 0 , 14 , 1 ); double slB= NormalizeDouble ((ATRPointsB)* 2 , _Digits ); //for SL calculation for TP iwas using 2 times SL, in that case calculated properly, for example , if sl was