Skip to content
72lab

ATR EA: no-code builder for MT4 / MT5

Volatility and trend strengthATR (Average True Range) measures roughly how far the market moves in one candle. EAs often trade only when ATR is above a set value to skip quiet periods. That avoids times when the spread eats up too much of the move.

Rules you can build with it

Works as an entry rule or an exit rule. Short rules are mirrored automatically.

  • Long & shortATR rises
  • Long & shortATR falls
  • Long & shortATR is above 100 points(adjustable level)
  • Long & shortATR is below 100 points(adjustable level)
  • Long & shortATR crosses above 100 points(adjustable level)
  • Long & shortATR crosses below 100 points(adjustable level)

Settings

SettingsDefaultRange
Period142 – 50
Level (points)1000 – 5000

How the backtest and the EA calculate it

MT5's ATR is a simple average of the true range (not Wilder smoothing), and the backtest uses the same method; levels are in points.

Signals use only closed candles and are filled at the next candle's open. The exported EA checks conditions in the same order, so you get similar results in the MT5 Strategy Tester.

Example strategies

Example 1
  • Entry · ATR (14): ATR rises
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop
Example 2
  • Entry · ATR (14): ATR rises
  • Entry · Moving Average (50, EMA, Close): MA rises
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop

Examples are just a starting point: open one to change settings or add filters, then check it with backtests and robustness tests. Backtest results don't indicate future returns.