Forex ATR Exit MT4 Indicator

Forex ATR Exit MT4 Indicator:

About the Forex ATR Exit MT4 Indicator

The ATR Exit indicator uses the candle close + ATR value to draw trailing stop lines (orange under buys, magenta over sells) that advance with the trend until the trend changes direction. It uses a multiple of the Average True Range (ATR), subtracting it’s value from the close on buy, adding its value to the close on sell. Moreover, the trailing stop lines are generated to support the order’s trend direction (long or short):
  • In an upward trend, the long trailing stop line (orange line under buy) appears and advances upward until the close crosses under the line.
  • In a downward trend, the short trailing stop line (magenta over sell) appears and declines until the close crosses over the line.

The ATR Exit is one of 12 indicator-based trailing stops comprising our Universal Trailing Stop EA. You don’t need to download this indicator to make it work in the UTS EA, as the indicator is already built into it, but if you want to see the how your trailing stops auto-adjust to the indicator lines on the chart of UTS-EA when you set Apply indicator template=true, you need to download this indicator.

While we use the ATR Exit as a trailing stop, it can be used in a volatility breakout strategy. The trader or EA can buy whenever the close crosses above the upper trail line and sell whenever the close crosses below the lower trail line.

This ATR exit trail is superior to using a fixed percentage because its change is based on the volatility characteristics of the underlying instrument and time frame. As Investopedia makes clear, “as the trading range expands or contracts, the distance between the stop and the closing price automatically adjusts and moves to an appropriate level, balancing the trader’s desire to protect profits with the necessity of allowing the [instrument] to move within its normal range.”


  • AtrPer (14) – Indicator Period;
  • Factor (3) – This is the factor for multiplying the ATR. You may use fractions – this does not need to be an integer;
  • Shift (1) – Indicator shift;

Test results:

Copy and paste the file into the MQL4 Indicators folder of the Metatrader 4 trading platform.

You can access this folder from the top menu as follows:

File > Open Data Folder > MQL4 > Indicators (paste here)

Other forex trading Expert Advisors

Leave a Comment