Mod ATR Trailing Stop MT5 Indicator


The indicator displays possible StopLoss levels on the price chart. Levels are shown separately for Long and Short positions.

It has two parameters:

  • Period – calculation period;
  • Coefficient – distance from the price.


  • If Close[i] < TS[i-1] and Close[i-1] < TS[i-1]
    TS[i] = Min(TS[i-1], Close[i] + loss)
  • Если Close[i] > TS[i-1]
    TS[i] = Close[i] – loss
  • If Close[i] < TS[i-1]
    TS[i] = Close[i] + loss


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]
    Href[i] = High[i] – Close[i-1]
  • If Low[i]>High[i-1]
    Href[i] = (High[i] + High[i-1] – Low[i] – Close[i-1])/2
  • If High[i]>=Low[i-1]
    Lref[i] = Close[i-1] – Low[i]
  • If High[i]<Low[i-1]
    Lref[i] = (Close[i-1] + High[i] – Low[i-1] – Low[i])/2

Recommended MT5 Brokers

XM Broker

  • Free $50 To Start Trading Instantly! (Withdraw-able Profit)
  • Deposit Bonus up to $5,000
  • Unlimited Loyalty Program
  • Award Winning Forex Broker
  • Additional Exclusive Bonuses Throughout The Year

XM broker

>> Sign Up for XM Broker Account here <<

FBS Broker

  • Trade 100 Bonus: Free $100 to kickstart your trading journey!
  • 100% Deposit Bonus: Double your deposit up to $10,000 and trade with enhanced capital.
  • Leverage up to 1:3000: Maximizing potential profits with one of the highest leverage options available.
  • ‘Best Customer Service Broker Asia’ Award: Recognized excellence in customer support and service.
  • Seasonal Promotions: Enjoy a variety of exclusive bonuses and promotional offers all year round.

fbs broker

>> Sign Up for FBS Broker Account here <<


(Free MT5 Indicators Download)

Click here below to download:

Mod ATR Trailing Stop MT5 Indicator


Get Smarter About Forex Trading Using Indicators

Join 100,000+ subscribers and get our 5 min daily newsletter on what matters in forex.

We do not sell or share your information with anyone.


Please enter your comment!
Please enter your name here