全職奶爸

Average True Range (ATR): TradingView Settings and Stop-Loss Examples

Average True Range: formula, settings and stop distance

Trading indicators · Volatility and risk · By Yang

A stop that is 20 points away can feel generous during a quiet Nasdaq session and very close after the market opens. Average True Range gives that distance some context. It measures recent price movement in the chart's own units, so you can compare the proposed stop with the volatility you are actually trading.

Average True Range (ATR) is a smoothed measure of true range, including gaps from the previous close. A higher reading means larger recent price swings. It gives no bullish or bearish direction. On an intraday chart, ATR 14 refers to bars of that chart's calculation timeframe, rather than fourteen calendar days.

The examples below use hypothetical prices and budgets. The useful outcome is a repeatable chain: identify the ATR settings, calculate a stop distance, round it to an executable price increment, then check the money exposed. No example is an entry signal or a record of trading performance.

What does Average True Range tell you?

ATR describes the size of recent bars after allowing for gaps. Suppose the reading on a five-minute Nasdaq futures chart rises from 10 to 20 points. Recent true ranges have become larger under the same calculation settings. That change can matter to a trade whose stop remains only ten points away. The Bollinger Bands comparison explains how dispersion around an average differs from true range, including a band contraction caused by an old observation leaving the window.

The indicator cannot distinguish a strong rally from a sharp selloff by its sign. Both can produce larger ranges and an increasing ATR. A falling reading says that recent ranges have become smaller; it does not mean that sellers have taken control. Read direction from the price action and use ATR to describe the movement's scale. The ADX and DMI guide explains directional strength as a separate measurement: ADX is normalized, while ATR retains the price units needed to evaluate a distance.

There is also no universal level at which an ATR becomes high. A reading of 20 points can mean different things on different instruments, timeframes and sessions. Compare a market with its own recent history under consistent settings. Comparing an opening session with a quiet overnight period answers a different question from comparing two opening sessions.

Low readings can accompany a narrow trading range, but they do not tell you when or in which direction price will leave it. High readings can persist while a market continues moving. Treating either extreme as a guaranteed reversal turns a description of past movement into a forecast it cannot provide.

Average True Range formula: calculate TR first

Ordinary range is the current high minus the current low. True Range also considers the previous bar's close. This captures movement that occurred between that close and the current bar, including a gap outside the current high-low range.

TR = max(high − low, |high − previous close|, |low − previous close|).

Calculate all three distances and take the largest. The absolute-value bars make a distance positive; they do not indicate the direction of the trade.

Consider three hypothetical bars. With a previous close of 100, a high of 112 and a low of 105, the three distances are 7, 12 and 5. True Range is 12. If the previous close is instead 110 while the next bar runs from 98 to 105, the distances are 7, 5 and 12, so TR is again 12. An upward gap and a downward gap can produce the same volatility reading.

When the previous close is inside the current bar, high minus low is already the largest distance. A previous close of 108 with a high of 112 and a low of 105 gives 7, 4 and 3. TR is 7. This is why adding a separate gap amount to high minus low is unnecessary: the maximum-distance formula already handles the relationship.

True Range captures the gap from the previous closeHypothetical prices: previous close 100, current low 105 and high 112. The high-low range is 7, but True Range is 12 because it includes the gap.True Range captures the gap from the previous closeHYPOTHETICAL · Price units100105112Previous closeLowHighHigh − low = 7High − previous close = 12 → TR = 12

For a Wilder-style calculation, an initial average can be formed from the first complete set of true ranges. Subsequent values use the previous ATR:

New ATR = [previous ATR × (n − 1) + current TR] ÷ n.

With n = 14, previous ATR = 18 and the new bar's TR = 32, the next ATR is (18 × 13 + 32) ÷ 14 = 19. The new range is 32, but the average rises only to 19 because the earlier smoothed value remains part of the calculation.

This recurrence is explained in Fidelity's ATR guide. Keep the initialization and subsequent update distinct when checking a spreadsheet against a chart. A rolling simple average of only the latest fourteen true ranges is a different smoothing choice.

ATR 14 means fourteen bars of the calculation timeframe

On a five-minute chart using the chart timeframe, the length parameter is fourteen five-minute bars. On a daily chart, it is fourteen daily bars. The number 14 does not specify minutes by itself, and it does not turn an intraday indicator into a two-week measurement.

With Wilder smoothing, older movement also continues to influence the average through the previous ATR. Calling it an exact average of only the last fourteen bars would hide that detail. A large range's influence decays over subsequent updates rather than disappearing completely after a fixed fourteenth replacement.

Fourteen five-minute bars represent seventy minutes of bar duration when the bars are consecutive. A session boundary, data gap or different trading-hours setting can change the wall-clock span represented by those bars. Record the instrument and session as well as the interval if you want another person to reproduce the observation.

How to add ATR in TradingView

Open a standard candlestick chart and choose Indicators, metrics, and strategies from the top toolbar. Search for Average True Range. Select the built-in Average true range under Technicals. The search can also display community scripts with trailing stops, channels or percentage calculations; those add their own rules.

TradingView search showing the built-in Average True Range under Technicals above community scripts
Choose the Technicals result for the standard ATR calculation.

After adding the indicator, open its settings from the indicator's legend. In Inputs, use Length 14, Smoothing RMA and Timeframe Chart to follow the examples here. RMA is the default smoothing documented in TradingView's ATR help; SMA, EMA and WMA are available alternatives.

ATR Inputs with Length 14, Smoothing RMA, Timeframe Chart and Wait for timeframe closes
Length, smoothing and calculation timeframe belong in the same trading record.

Changing the smoothing changes the series, even when the length stays at fourteen. A discrepancy between two ATR values does not establish that either platform is broken. Check the symbol, data feed, bar interval, session, smoothing and observation time before comparing the numbers.

If you select a calculation timeframe different from the chart, also review Wait for timeframe closes. A completed higher-timeframe value is different from a developing value. This setting should not be treated as a promise that a live bar on the chart timeframe stops updating. A strategy that evaluates completed bars should record the value after its specified bar has closed.

How to use ATR for a stop-loss distance

An ATR multiple expresses a proposed exit distance in volatility units. For a hypothetical initial stop measured from entry:

Distance = ATR × multiplier.
Long stop = entry − distance.
Short stop = entry + distance.

Suppose ATR is 18 points and the selected multiplier is 1.5. The distance is 27 points. A hypothetical long entry at 20,000 gives a calculated stop at 19,973; a short entry at the same price gives 20,027. Both examples describe the same adverse distance.

The multiple is a rule to test, not a certificate that the stop will survive normal movement. ATR does not know which swing, level or condition invalidates your setup. If the setup requires a particular price boundary, measure that boundary first and compare its distance with ATR. If your tested exit rule is specifically an ATR multiple, preserve that rule consistently when evaluating it.

Keep the ATR observation time explicit. A stop based on the last completed bar's ATR is different from one calculated several seconds later using a developing bar. Updating a stop after entry is another rule again. Choose the version in advance so a replay and a live trade can be compared meaningfully.

Round the calculated stop to a valid tick

ATR values can contain decimals that do not fall on an executable price grid. For an outright MNQ futures example, the minimum tick is 0.25 index points. ATR of 18.1 multiplied by 1.5 gives 27.15 points, which is not a multiple of that tick.

One explicit planning convention is to round the distance outward to the next tick. Under that convention, 27.15 becomes 27.25 points. From a valid entry at 20,000, the resulting long stop is 19,972.75 and the short stop is 20,027.25. Rounding changes both the order price and the money exposed.

Outward rounding is the convention used in these examples, rather than a universal platform instruction. A different tested strategy can specify a different rounding rule. What matters is that the risk calculation uses the actual rounded distance you intend to place, instead of the smaller unrounded number.

ATR distance → valid tick → money exposedHypothetical ATR of 18.1 times 1.5 gives 27.15 points, rounded outward to 27.25. One MNQ has $54.50 price risk. An assumed $4 fee and $2 reserve bring that to $60.50. Two contracts use $121 of a $150 budget.ATR distance → valid tick → money exposedHYPOTHETICAL · MNQ · USD18.1 ATR × 1.5 = 27.15 pointsRound outward to 0.25 tick → 27.25 points27.25 × $2 + $4 fee + $2 reserve = $60.50$150 ÷ $60.50 → 2 whole MNQEstimated loss $121 · Unused budget $29Fees and reserve are assumptions. A worse fill can cost more.

Convert the ATR distance into MNQ or NQ risk

ATR supplies a price distance. The contract multiplier converts that distance into money. CME's contract comparison lists MNQ at $2 per index point and NQ at $20. The same 27.25-point distance therefore represents $54.50 on one MNQ and $545 on one NQ, before costs.

For the following arithmetic, assume a $150 trade budget, a $4 round-trip fee per MNQ and a separate $2 execution reserve per MNQ. Those two cost inputs are hypothetical assumptions, not a firm's advertised commission schedule. The estimated loss per MNQ is 27.25 × $2 + $4 + $2 = $60.50.

Dividing $150 by $60.50 gives approximately 2.479 contracts. Whole-contract rounding reduces the quantity to two. The estimated total is $121, leaving $29 of the chosen budget unused. Three contracts would use $181.50 and exceed it. One NQ already exceeds the budget on price risk alone.

The position sizing calculator handles this next step. Enter 150 for the budget, 27.25 for distance, 2 for value per point, 4 for round-trip cost, 2 for reserve, and 1 for both step and minimum quantity. These inputs describe a planning estimate; the calculator sends no orders.

If ATR doubles to 36.2 while the multiplier remains 1.5, the raw stop distance becomes 54.3 points. Applying the same outward rounding gives 54.5. One MNQ then uses an estimated $115, so the unchanged $150 budget accommodates one contract. Keeping two contracts would approximately double the price exposure when volatility has already increased.

Hypothetical ATR1.5× distance after tick roundingEstimated risk per MNQWhole contracts within $150Estimated total
18.1 points27.25 points$60.502$121
36.2 points54.50 points$1151$115

Both rows include the assumed $4 fee and $2 reserve per contract. A worse exit can exceed the estimate. Contract size and cost efficiency are separate considerations; the MNQ vs NQ comparison explains the trade-off between smaller position increments and equivalent-exposure commissions.

Which ATR settings work on a five-minute chart?

Length 14 with RMA gives a clear baseline to reproduce. It does not establish the most profitable setting for a five-minute chart. A shorter length reacts more quickly to new ranges, while a longer one smooths changes over more observations. The appropriate response speed depends on the setup and when decisions are made.

Test length separately from the stop multiplier. Comparing length 7 with a 2× stop against length 21 with a 1× stop changes two variables at once. If the result differs, that experiment cannot isolate which change caused it. Hold the instrument, session and entry conditions constant while investigating one parameter.

A useful test record includes the ATR at the decision bar, the proposed stop, the largest adverse excursion after entry, the eventual exit and costs. Compare a reasonable fixed set of alternatives, such as lengths 7, 14 and 21 or multipliers 1, 1.5 and 2. These are experiment values, not recommended settings or claims about their win rates.

Then evaluate the chosen rule on a separate set of trades. Selecting the setting that best fits a small historical sample can reward chance. A wider stop can reduce some stop-outs while increasing average loss or making a target less practical. Check the resulting risk reward ratio and realised outcomes rather than judging a setting by how smooth the line looks.

ATR, ATR percentage and Average Daily Range

Standard ATR uses absolute price units. ATR percentage normalizes that value by the corresponding price: ATR% = ATR ÷ close × 100. With hypothetical ATR of 30 and a close of 20,000, the result is 0.15%. Keep the numerator and denominator tied to a consistent observation.

Percentage normalization can make relative-volatility comparisons more meaningful across differently priced instruments. It still does not make different sessions, timeframes or datasets interchangeable. A daily ATR percentage and an intraday ATR percentage summarize different bar sequences.

Average Daily Range, or ADR, measures the average daily high-low range. Its basic high-low calculation does not include a gap from the previous close in the same way True Range does. TradingView's ADR% and ATR% explanation shows this distinction.

Neither indicator provides a guaranteed remaining travel distance for the current day. If price has already moved one daily ATR, it can continue moving. Subtracting that movement from an average and treating the difference as a hard daily limit creates a restriction that the formula does not contain.

Initial ATR stops and trailing ATR stops need different rules

An initial stop can use an ATR snapshot at entry and remain fixed. A trailing rule recalculates a candidate exit as price and volatility change. Merely writing “two ATR trailing stop” leaves open when the calculation runs, which reference price it follows and whether an existing stop can move farther away. The trailing stop guide works through activation, long and short paths, and a ratchet that keeps an expanding ATR from loosening an existing stop.

For a hypothetical long-position ratchet, define the candidate as the highest price reached since entry minus two times the chosen ATR. Define the next stop as the greater of the previous stop and that candidate. This added maximum rule prevents the calculated stop from moving downward solely because ATR expands.

For example, a highest price of 100 and ATR of 2 give a candidate of 96. A later highest price of 103 and ATR of 3 give 97. If ATR then rises to 4 while the high remains 103, the candidate falls to 95, but the ratcheted stop remains 97. A short-position rule requires the opposite reference and minimum operation. Platform execution, valid ticks and whether the proposed stop is already crossed still need handling.

The Supertrend indicator guide uses bar-midpoint ATR bands and a directional state, then retains the active band under its own rules. Its worked example shows why that line differs from a highest-since-entry ATR trailing stop.

Using ATR with a prop firm loss limit

A volatility calculation cannot decide how much of an evaluation's remaining loss allowance is available for the next trade. Start from the current allowance and account rules, including any daily limit and further risk on positions already open. An account's advertised nominal size is not the amount you can lose.

A calculated stop can also fit an initial budget while later threshold changes reduce the remaining room. The EOD drawdown guide explains why the time a threshold updates and the time it is monitored are separate details. ATR does not override either condition.

Check quantity limits and margin independently after calculating trade risk. If one cost-inclusive contract exceeds the selected budget, a zero-contract result is meaningful. Moving the stop closer just to make a preferred quantity fit changes the strategy. When comparing programs, read the applicable account rules alongside any purchase offer.

Compare HDP discounts

Lucid 30% · Tradeify 30% · TPT 50%.

See current offers ↗

Eligible partner plans only.

Keep an ATR record you can reproduce

Save the symbol and dated contract where relevant, feed, chart interval, calculation timeframe, session, length, smoothing and bar-close condition. Record the ATR snapshot before entry, the multiplier or structural stop rule, rounded order price, quantity, expected costs and actual fills. This identifies what changed when a later calculation differs.

The prop firm trading journal can hold those observations alongside the trade result. Separate a planning error from execution: an incorrect point value, an extra contract and an unexpectedly poor fill are different problems, even when all three produce a larger loss.

ATR earns its place when it helps explain the distance and exposure of a trade you can actually reconstruct. It does not supply a direction, promise a safe exit or replace the account's rules. Use the same declared settings across the examples you compare, and let the recorded outcomes determine whether the rule deserves to stay.

Average True Range FAQ

What does ATR mean in trading?

ATR means Average True Range. It smooths a series of true ranges to describe recent price volatility, including movement across gaps from the previous close. It does not give a bullish or bearish direction.

What does ATR 14 mean on a five-minute chart?

With Timeframe set to Chart, the calculation uses a length of fourteen five-minute bars. Wilder smoothing retains a decaying influence from older observations through the previous ATR; it is not a rolling simple average of only the latest fourteen bars.

Does a rising ATR mean the price will rise?

No. A rally and a selloff can both increase true ranges. Rising ATR describes greater recent volatility. Direction has to be assessed from price or another independently defined condition.

What is the difference between True Range and ATR?

True Range is the largest of high minus low, the absolute high-to-previous-close distance, and the absolute low-to-previous-close distance for one bar. ATR smooths a sequence of those values.

What are TradingView's standard ATR settings?

The built-in indicator uses length 14 and RMA smoothing by default. For the examples here, select Timeframe Chart. Different smoothing, timeframe, session or data-feed choices can produce different values.

Is there a best ATR setting for day trading?

There is no setting established as best for every setup. Start with a reproducible baseline and compare alternatives under the same entry, session and cost assumptions. Evaluate the resulting trade outcomes on a separate sample.

How do you calculate a 1.5 ATR stop?

Multiply the chosen ATR snapshot by 1.5. ATR of 18 gives a 27-point distance. Subtract that distance from a long entry or add it to a short entry, then apply the instrument's valid tick increment.

Why round an ATR stop to a tick?

The calculated price may not lie on the instrument's order-price grid. Under the examples' outward-rounding convention, 27.15 MNQ points becomes 27.25. Use the resulting distance when calculating risk.

How does ATR affect position size?

A larger ATR-based stop increases estimated loss per unit. With a fixed money budget, the permitted quantity generally falls after costs and quantity increments are applied. ATR itself does not choose the budget.

Is ATR expressed in dollars or percent?

Standard ATR uses the chart's price units, such as Nasdaq index points. Dollar risk requires the contract multiplier and quantity. ATR percentage divides ATR by the corresponding close and multiplies by 100.

How is ATR different from ADR?

ADR averages daily high-low ranges. ATR averages true ranges, which also consider the previous close and can use intraday or other bar intervals. Neither sets a hard limit on the current day's possible movement.

Can an ATR value change before the bar closes?

Yes. A developing bar can extend its high or low and change its true range and ATR. Compare values at the decision time specified by the strategy. Historical data revisions or different chart settings can also affect comparisons.

Does a two ATR stop guarantee a maximum loss?

No. It defines a planned distance under specified settings. Gaps, liquidity, order handling and execution can produce a worse fill. Fees and an assumed reserve do not turn that estimate into a guarantee.

Should a trailing ATR stop be allowed to move backward?

That depends on the declared exit rule. A long-position ratchet uses the greater of the previous stop and the new candidate, so it does not move down when ATR expands. Specify the reference price, update time and rounding before testing.