All posts
Education2026/03/29Updated: By Iven W.

ATR Stop Loss: Calculation, Position Sizing and Trailing Examples

Calculate long and short ATR stop losses, allow for sizing costs, and test a trailing stop that never loosens. Worked examples with clear execution limits.

ATR can be useful as a volatility input for stop distance, position sizing, and trailing rules, but it does not provide a universal stop multiplier or predict price direction. The practical job is to define a rule, freeze its inputs, and test whether it improves the strategy you are studying.

This page owns ATR applications: stop-distance experiments, ATR-based position-size examples, trailing-rule design, and volatility-filter testing. For True Range, Wilder smoothing, warm-up history, ATR Percentage, and cross-platform calculation differences, use the ATR Formula and Data Controls guide. General position-sizing methods remain with the Position Sizing guide.

Educational note: ATR is historical and directionless. It does not identify a correct entry, stop, target, position size, breakout, or future volatility path by itself.

Quick Answer: How Can ATR Be Used?

ApplicationTestable ruleWhat must be defined
Stop distanceDistance = ATR × multiplierATR length, chart interval, multiplier, session/data source
Position sizingUnits = risk budget ÷ stop distanceRisk budget, stop rule, unit/contract value, rounding
Trailing stopReference price −/+ ATR × multiplierLong/short rule, reference price, multiplier, whether ATR updates
Volatility filterCompare ATR with its own historyLookback, percentile/ratio rule, chart interval, regime definition

None of these rows supplies a default trading rule. A multiplier that behaves reasonably on one market and interval can be too tight or too loose on another.

Before Using ATR in a Rule

The same label can produce different ATR values if the inputs differ. Before comparing results, record:

  • chart interval;
  • ATR length;
  • smoothing implementation;
  • warm-up history;
  • regular-session versus extended-hours data;
  • timezone and session boundary;
  • adjusted versus unadjusted stock data;
  • futures roll construction when applicable; and
  • data provider.

The ATR formula guide covers these calculation controls in detail. TradingView's current Average True Range documentation also describes ATR as a volatility measure rather than a directional indicator.

Application 1: Testing an ATR-Based Stop Distance

A common research structure is:

stop_distance = ATR × k

where k is a multiplier chosen before the test.

For a long position:

candidate_stop = entry_price - stop_distance

For a short position:

candidate_stop = entry_price + stop_distance

Worked arithmetic example

Suppose a test uses:

  • entry price: $100;
  • frozen ATR value: $2.50; and
  • test multiplier: 1.8.

Then:

stop_distance = 2.50 × 1.8 = 4.50
long candidate stop = 100 - 4.50 = 95.50

For a short at the same $100 entry, the candidate stop is 100+4.50=$104.50. Long stops subtract the distance; short stops add it. This calculation supplies a price level, not the order type or a guarantee that it will execute there.

These are invented arithmetic examples. They do not establish that 1.8 ATR is appropriate for an instrument or strategy. Fidelity describes ATR as a directionless volatility input; an ATR multiple is a research parameter, not a universal loss limit.

Questions the rule must answer

Before backtesting, specify:

  1. Is ATR sampled at the signal bar, entry bar, or previous completed bar?
  2. Is the initial ATR frozen after entry or recalculated?
  3. Does the stop move if ATR contracts?
  4. Can the stop widen after entry?
  5. How are gaps through the stop handled?
  6. Are commissions, slippage, and spread included?
  7. Is the multiplier fixed across instruments or selected by a documented rule?

Without those controls, "use a 2 ATR stop" is not a reproducible strategy.

Application 2: ATR and Position Sizing

ATR can enter position sizing through a defined stop distance. If the strategy has a fixed risk budget for the trade, a simplified stock-unit calculation is:

units = floor(risk_budget / stop_distance)

If the stop distance itself is defined as ATR × k, then:

units = floor(risk_budget / (ATR × k))

Example

Suppose:

  • risk budget: $120;
  • ATR: $1.50;
  • test multiplier: 2.0;
  • stop distance: $3.00.

Then:

units = floor(120 / 3.00) = 40

That calculation does not mean ATR chooses the correct risk budget. Account-level risk limits, portfolio concentration, leverage, contract multipliers, minimum lots, and gap risk remain separate decisions.

The 40-unit result assumes each $1 price move changes P&L by $1 per unit, with no extra costs. If an invented stock-unit model instead reserves $0.10 per unit for round-trip costs and $0.25 for adverse execution beyond the stop, its modeled loss per unit is 3.00+0.10+0.25=$3.35. With a $120 budget:

units = floor(120 / 3.35) = 35
modeled loss = 35 × 3.35 = $117.25
36 units would imply $120.60, above the budget

The execution allowance is an assumption, not a maximum: a larger gap can exceed the budget. Do not count a cost twice if it is already included in simulated entry/exit prices. Futures and FX require the actual contract or lot value, account-currency conversion and quantity increment; the stock-unit formula cannot be copied unchanged.

For those broader controls, use the Position Sizing guide.

Application 3: Designing an ATR Trailing Rule

ATR can also be used as the distance component of a trailing rule. One possible long-position research rule is:

candidate_trail = highest_high_since_entry - (ATR × k)

A short-position version can use the lowest low since entry plus an ATR distance.

The important design choice is not the formula alone. Decide whether:

  • ATR is frozen at entry or recalculated each bar;
  • the reference is the highest high, highest close, or another price;
  • the trail can only tighten, never loosen;
  • the rule activates immediately or after another condition;
  • gaps are filled at the stop price or at the next available price in the test.

Different choices produce materially different results. Do not compare them as if they were one "ATR trailing stop."

Worked long and short trailing updates: never loosen

Here is an invented completed-bar research sequence using a 2×ATR distance, a highest-high-since-entry reference, and a rule that only tightens. ATR updates at each completed bar; each new stop applies from the next bar, not retrospectively within the bar just closed.

For a long starting at 100 with initial ATR 1.50, the initial modeled stop is 97. The update is:

candidate = highest_high_since_entry - 2 × completed_bar_ATR
next_stop = max(previous_stop, candidate)
Completed-bar stateCandidateStop effective next bar
Highest high 102; ATR 1.50102−3.00=99Tighten 97→99
Highest high 103; ATR 2.50103−5.00=98Keep 99; increasing ATR must not loosen this declared rule
Highest high 104; ATR 1.50104−3.00=101Tighten 99→101

The second row is the critical case. Replacing 99 with 98 would silently increase the allowed adverse move and turn this into a different rule.

For a short, reverse the reference and ratchet direction:

candidate = lowest_low_since_entry + 2 × completed_bar_ATR
next_stop = min(previous_stop, candidate)

A short at 100 with initial stop 103 might record successive lowest lows 98/97/96 and completed ATR 1.50/2.50/1.50. The candidate stops are 101/102/99; the ratcheted stops are 101/101/99. A rising ATR does not authorize moving the short stop back up to 102.

Before each update, check whether the previously active stop was already hit. If it was, the position is exited under the declared model; a later close cannot revive it. If a single candle crosses both an entry and an exit level, OHLC alone does not establish their order. Flag that result as ambiguous or use finer data rather than choosing the favorable sequence. Decide separately how gaps, stop-market slippage or unfilled stop-limit orders are handled; the stop-loss vs stop-limit guide owns those order mechanics.

This is a prospective rule example, not a reproduction of every ATR indicator. StockCharts documents its own ATR trailing implementation; defaults and reference rules must be checked on the platform used for a test.

Application 4: Using ATR as a Volatility Filter

ATR can describe whether recent range is relatively high or low, but low ATR does not guarantee a breakout and high ATR does not prove a trend is ending.

A reproducible volatility filter might compare current ATR with:

  • its rolling median;
  • a rolling percentile;
  • a longer ATR baseline; or
  • ATR Percentage when comparing differently priced instruments.

For example, a study could label a bar "low-volatility" when ATR is below the 20th percentile of the previous 100 completed observations. Another study could use an ATR-to-baseline ratio. The threshold is part of the hypothesis and must be chosen before reviewing the outcome.

For broader volatility-regime work involving VIX, standard deviation, and cross-market context, use the Market Volatility guide.

Choosing an ATR Length

There is no universally correct ATR length for day trading, swing trading, stops, or position sizing.

A shorter length reacts more quickly to recent True Range values. A longer length changes more slowly. ATR(14) is common because of Wilder's original convention and platform defaults, not because 14 is optimal for every strategy.

When comparing lengths:

  1. keep the chart interval and data source fixed;
  2. test a small predeclared set of lengths;
  3. keep the stop or sizing logic otherwise unchanged;
  4. evaluate enough independent periods to avoid fitting one market regime; and
  5. document whether the result survives reasonable parameter changes.

If a strategy only works at one exact length or multiplier, treat that sensitivity as a warning rather than proof of precision.

Common ATR Application Errors

Treating ATR as direction

A rising ATR means recent True Range is expanding under the selected calculation. It does not say whether the next move will be up or down.

Recommending one multiplier for every market

A fixed multiplier has different implications across instruments, timeframes, sessions, and execution conditions. Test it rather than labeling one number "best."

Changing ATR logic after seeing the outcome

If the rule freezes ATR at entry, keep it frozen throughout that test. If it updates each bar, define exactly how. Switching rules after a losing example creates hindsight bias.

Comparing raw ATR across differently priced instruments

Raw ATR is expressed in price units. When relative comparison is required, consider ATR Percentage and keep the denominator definition fixed. The formula guide explains that normalization boundary.

Ignoring execution constraints

A theoretical ATR stop does not guarantee a fill at the stop price. Spread, slippage, gaps, liquidity, broker rules, and contract specifications can dominate the result.

A Replay / Backtest Checklist

For each ATR application test, record:

  • instrument and market;
  • chart interval and session;
  • ATR length and smoothing implementation;
  • data provider and adjustment settings;
  • multiplier or volatility threshold;
  • whether ATR is frozen or updated;
  • stop-reference and trailing-reference rules;
  • risk budget and unit rounding when sizing;
  • commission, spread, slippage, and gap assumptions;
  • entry and exit logic independent of ATR;
  • test period and out-of-sample period; and
  • failure cases, not only successful examples.

Chart replay can help inspect how a rule behaves bar by bar where the required historical interval is available. For strategy-level testing, use the Backtesting guide and keep the ATR rule fixed before revealing later data.

Frequently Asked Questions

What ATR multiplier should I use for a stop loss?

There is no universal multiplier. Treat the multiplier as a strategy parameter and test it on the instrument, interval, session, and execution assumptions you actually plan to study.

Is ATR a buy or sell signal?

No. ATR measures recent range volatility. Direction requires separate information or rules.

Can ATR be used for forex, stocks, futures, and crypto?

The formula can be applied to OHLC price series across markets, but units, sessions, data construction, contract values, liquidity, and execution differ. Those differences must be handled explicitly.

Is ATR better than a percentage stop?

Neither is universally better. An ATR stop changes with measured range; a percentage stop scales with price. Compare both under the same strategy and execution assumptions rather than assuming one must outperform.

Does low ATR mean a breakout is coming?

No. Low ATR describes compressed recent range under the chosen lookback. Compression can persist, expand, or resolve in either direction.