ATR stop loss: how to size a stop to volatility

By Oalgo · Last reviewed

An ATR stop puts the stop a set number of ATRs away from the entry price, for example 2 × ATR. ATR measures how far price typically moves in one candle, so the stop is wider when price moves more and tighter when price is calm.

What are the rules of an ATR stop loss?

#
  • Pick an ATR period (14 is the usual setting) and a multiplier, for example 2.
  • Stop distance = multiplier × ATR. A test reads the ATR of the candle before the entry. For a long trade, stop price = entry price − stop distance.
  • The stop is set at the entry and stays there while the trade is open.
  • The distance changes from trade to trade, because ATR changes.

What does it look like in numbers?

#
Made-up exampleValue
Entry price100
ATR (14) at the entry2
Multiplier2
Stop distance2 × 2 = 4
Stop price100 − 4 = 96
The same stop as a percentage4 ÷ 100 = 4%

How do you write this strategy in Oalgo?

#

In Oalgo you can tell Oalgo AI your ATR stop rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read this part before you rely on it. In a test, the Exit block can set the stop in ATRs, and a Live Strategy can use that stop too. If you prefer a fixed distance, turn the ATR stop into a percentage, as in the table (4%), set that as the Stop Loss, and test again. The percentage stays fixed, so it does not widen when price becomes more active.

For example, you could tell Oalgo AI: "Use a 2 × ATR (14) stop." Or as a percentage: "Use a 4% Stop Loss and an 8% exit target." These numbers are examples to change.

How do you test this strategy honestly?

#
  • Run the same entry rule twice on the same dates, once with an ATR stop and once with a fixed percentage stop, and compare the two backtest reports.
  • Test more than one date range. ATR is small in quiet periods and large in active ones.
  • Try other multipliers, for example 1.5 and 3. A stop that is too tight is hit by normal moves. One that is too wide lets each loss grow.
  • Run a forward test on new prices, with the percentage stop you plan to use.

What can an ATR stop not tell you?

#

An ATR stop sizes the stop to normal movement. It does not say where price will turn, and price can move past a stop before the next candle. A wider stop loses more each time it is hit. The entry rule matters as much as the stop: the breakout strategy page is one entry rule to pair it with.

Read next