Mod_ATR_Trailing_Stop - MetaTrader 5 Script - MT4/MT5 Resource

This indicator shows possible stop loss levels on the price chart. The levels of long and short positions are shown separately.
It has two parameters:
If Close[i] < TS[i-1] and Close[i-1] < TS[i-1]
Если Close[i] > TS[i-1]
If Close[i] < TS[i-1]
Loss = Coeff*WMA(Diff, period), WMA - Wilder Exponential Moving Average, Diff[i] = Max(HiLo, Href, Lref), HiLo[i] = Min(High[i] - Low[i], MVA(High-Low, Period))
if low[i]<=high[i-1]
if low[i]>high[i-1]
if high[i]>=low[i-1]
if high[i]<low[i-1]

Attachment download
📎 mod_atr_trailing_stop.mq5 (16.79 KB)
Source: MQL5 #20423
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •