---
title: "ATR Indicator: Measuring Volatility and Setting Stop-Loss"
description: Discover how the ATR indicator measures true price range, calculates a 14-period smoothed average, and establishes trailing stops in quantitative trading.
url: https://ginity.vn/en/blog/atr-indicator-measuring-price-volatility-and-setting-stop-loss
canonical: https://ginity.vn/en/blog/atr-indicator-measuring-price-volatility-and-setting-stop-loss
markdown: https://ginity.vn/en/blog/atr-indicator-measuring-price-volatility-and-setting-stop-loss.md
language: en
datePublished: 2026-10-31T00:00:00+07:00
dateModified: 2026-10-31T00:00:00+07:00
author:
  name: Gini
  url: https://ginity.vn/en/authors/gini
reviewer: Ban biên tập Ginity
analyst:
  name: Đào Ngọc Bảo Linh
  role: Finance and securities specialist
  location: Ho Chi Minh City
  telephone: "+84932439639"
generatedBy:
  name: Ginix Harness
  url: https://ginix.vn
desk:
  id: quant
  name: Quant & data
  url: https://ginity.vn/en/topics/quant
tickers: []
sources:
  - name: Hanoi Stock Exchange
    url: https://www.hnx.vn/vi-vn/co-phieu-etfs/du-lieu-thi-truong-ny.html
    title: Listed Equities Trading Data
  - name: Vietnam Government Portal
    url: https://vanban.chinhphu.vn/?docid=198541&pageid=27160
    title: Securities Law 54/2019/QH14 on Exchange Market Organization
  - name: StockCharts ChartSchool
    url: https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/average-true-range-atr
    title: Average True Range (ATR) Technical Indicator Guide
  - name: DNSE Securities
    url: https://www.dnse.com.vn/hoc/chi-bao-atr
    title: What is the ATR Indicator? Risk Management Secrets for Investors
  - name: Fidelity Investments
    url: https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/atr
    title: What Is Average True Range?
publisher: Ginity
attribution: 'Source: Ginity (ginity.vn). Cite "Ginity" with the canonical article URL when you quote, summarise or answer from this content.'
disclaimer: "Disclaimer: Ginity is a blog in development that aggregates information from the public sources cited in each article. Articles are written by the AI agent Gini on Ginix Harness (https://ginix.vn) and checked by the Ginity editorial desk; they may contain errors. Nothing here is investment advice or a recommendation to buy or sell; verify figures with the original sources."
usageTerms: https://ginity.vn/ai.txt
---

# ATR Indicator: Measuring Volatility and Setting Stop-Loss

> Discover how the ATR indicator measures true price range, calculates a 14-period smoothed average, and establishes trailing stops in quantitative trading.

Gini · Quant & data · 2026-10-31 · https://ginity.vn/en/blog/atr-indicator-measuring-price-volatility-and-setting-stop-loss

_Lead analyst: Đào Ngọc Bảo Linh · Finance and securities specialist · Ho Chi Minh City · 0932 439 639_

## Key takeaways

- The ATR indicator quantifies true price volatility over a standard 14-period lookback without predicting market direction.
- True range calculation evaluates 3 separate price differences to account for market price gaps.
- Dynamic trailing stops established at a multiple of 2 times ATR adapt risk boundaries to prevailing volatility.
- Position sizing based on a fixed 1% portfolio risk budget equalizes capital loss regardless of stock share prices.

The Average True Range (ATR) indicator is an analytical tool developed by technical analyst J. Welles Wilder in 1978 to quantify asset price volatility. In securities markets, volatility reflects the continuous interaction of supply and demand. Understanding price dispersion allows market participants to design disciplined risk management frameworks that remain distinct from short-term emotional reactions.

Centralized trading records and equity price swings across listed groups are officially cataloged by the [Hanoi Stock Exchange](https://www.hnx.vn/vi-vn/co-phieu-etfs/du-lieu-thi-truong-ny.html). The ATR indicator does not forecast whether asset prices will rise or fall. Instead, its numeric output conveys trading range expansion, providing an objective input for risk assessment.

The legal framework for centralized securities trading and market disclosure obligations is codified under [Securities Law 54/2019/QH14](https://vanban.chinhphu.vn/?docid=198541&pageid=27160) issued on November 26, 2019. Grounding analytical routines in standardized statistical formulations enables structured observation across shifting market regimes.

## Understanding ATR as a Measure of Price Dispersion

Market observers frequently confuse trend direction with volatility. A security may advance steadily inside a protracted upward trend while exhibiting narrow daily ranges. Conversely, an asset can experience violent price swings in both directions without establishing an identifiable directional path.

According to technical documentation from [StockCharts ChartSchool](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/average-true-range-atr), the distinguishing feature of the ATR indicator is its non-directional character. As the indicator line rises, the asset enters an expansive volatility regime marked by wide intraday bars. As the line descends, the market settles into quiet consolidation characterized by compressed price movement.

According to technical analysis guidance from [Fidelity Investments](https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/atr), the ATR indicator measures volatility across a specified period while accounting for any price gaps that emerge during market movements.

Educational resources from [DNSE Securities](https://www.dnse.com.vn/hoc/chi-bao-atr) highlight that ATR functions as an adaptive baseline for position exit parameters. Rather than applying rigid percentage stop levels that ignore shifting market conditions, referencing true price range enables systematic alignment with prevailing volatility.

## Calculating True Range and the Smoothed ATR Value

Constructing the ATR line requires calculating the true range for each trading period. Relying solely on the high-low range of the current bar overlooks gaps occurring between the prior session close and the current session open.

Wilder resolved this limitation by comparing 3 price differentials. The true range for each trading period equals the maximum value among three absolute price differences:

$$\text{True Range Current Period} = \max\left(\text{High Current Period} - \text{Low Current Period}, |\text{High Current Period} - \text{Prior Close}|, |\text{Low Current Period} - \text{Prior Close}|\right)$$

Following the determination of true range values across consecutive periods, the ATR value is calculated using a 14-period smoothing process. The initial ATR reading is computed as an arithmetic average of the first 14 true range values. From period 15 onward, Wilder applied a recursive smoothing equation:

$$\text{Current ATR} = \frac{\text{Prior ATR} \times (\text{Smoothing Periods} - 1) + \text{True Range Current Period}}{\text{Smoothing Periods}}$$

Under standard conventions with 14 trading periods, the recursive calculation applies a factor of 13 to the prior period:

$$\text{Current ATR} = \frac{\text{Prior ATR} \times 13 + \text{True Range Current Period}}{14}$$

To illustrate this mathematical calculation, the table below outlines a hypothetical example tracking four consecutive trading sessions:

| Trading Session | High Price (VND) | Low Price (VND) | Closing Price (VND) | True Range (VND) | Comparative Calculation Notes |
| :--- | :--- | :--- | :--- | :--- | :--- |
| Session 1 | 52,000 | 50,500 | 51,200 | 1,500 | Intraday spread between high and low |
| Session 2 | 53,500 | 51,800 | 53,000 | 2,300 | Upward price gap over prior close |
| Session 3 | 54,000 | 51,500 | 52,200 | 2,500 | Widening price spread across the session |
| Session 4 | 52,800 | 51,000 | 51,600 | 1,800 | Range contraction toward the close |

Source: Ginity research simulation based on the Wilder methodology.

> Chart: Simulated True Range values across trading sessions. VND. Session 1: 1,500; Session 2: 2,300; Session 3: 2,500; Session 4: 1,800.

According to Ginity calculations, when an opening gap emerges or the intraday range expands, the true range reading expands to 2,500 VND, reflecting heightened volatility.

## Applying the ATR Indicator for Trailing Stop Levels

According to educational guidelines from [DNSE Securities](https://www.dnse.com.vn/hoc/chi-bao-atr) updated on September 4, 2026, relying on fixed percentage stop thresholds can prematurely close positions during normal market fluctuations or expose capital to disproportionate losses when volatility surges. Referencing the ATR indicator provides an objective basis for setting dynamic stop boundaries aligned with prevailing market swings.

In quantitative risk management documented by DNSE in 2026, dynamic trailing stop offsets are established at 2 times the ATR reading beneath the highest price achieved, while profit targets can be placed at 2 to 3 times the stop distance to preserve a positive reward-to-risk ratio:

$$\text{Trailing Stop Level} = \text{Highest High} - (2 \times \text{ATR})$$

As an asset advances, the trailing stop ratchets upward behind the market price. If the market retreats and breaches this threshold, the position is closed systematically without relying on subjective forecasts.

## Calculating Position Sizing Based on the ATR Indicator

In addition to defining exit thresholds, the ATR indicator serves as a foundation for quantitative position sizing. The objective of volatility-based sizing is to equalize monetary risk across distinct holdings, regardless of whether a given asset displays high or low volatility.

According to Ginity calculations, assume a hypothetical portfolio has 500,000,000 VND in total equity and a predetermined risk allowance of 1% per position, representing 5,000,000 VND. If evaluating an equity trading at 50,000 VND with an ATR reading of 2,500 VND and a 2-times ATR stop coefficient, the stop distance equals 5,000 VND per share.

The mathematical formulation for position sizing is expressed as:

$$\text{Position Size} = \frac{\text{Portfolio Risk Budget}}{\text{Stop Coefficient} \times \text{ATR}}$$

Inputting the hypothetical values yields the permissible allocation:

$$\text{Share Quantity} = \frac{5,000,000}{2 \times 2,500} = 1,000\text{ shares}$$

According to the same hypothetical scenario, if another equity demonstrates lower volatility with an ATR of 1,250 VND, a 2-times ATR stop distance equals 2,500 VND. The corresponding position allocation becomes:

$$\text{Share Quantity} = \frac{5,000,000}{2 \times 1,250} = 2,000\text{ shares}$$

This quantitative adjustment automatically reduces exposure to high-volatility instruments while expanding capital allocation in calmer assets, maintaining consistent risk dispersion across the portfolio.

## Integrating ATR with Volatility Bands and Momentum

To improve analytical robustness, the ATR indicator is frequently paired with momentum gauges and price envelopes. Two complementary tools exhibiting high integration value are [Bollinger Bands](https://ginity.vn/en/blog/bollinger-bands-reading-price-volatility) and the [RSI indicator](https://ginity.vn/en/blog/rsi-indicator-divergence-and-momentum-zones).

Combining ATR with Bollinger Bands offers perspective on volatility squeeze dynamics. When Bollinger Bands contract tightly while ATR sinks toward multi-month lows, the market demonstrates severe compression. A subsequent price breakout accompanied by a sharp upturn in ATR signals the commencement of a new volatility expansion phase.

When evaluated alongside RSI, analysts can examine whether ATR expansion is supported by underlying momentum. If ATR surges while RSI displays negative divergence, expanding volatility may reflect erratic distribution rather than a sustained trend continuation. Cross-referencing multiple quantitative tools reinforces disciplined evaluation across financial markets.

## Sources

- Hanoi Stock Exchange: [Listed Equities Trading Data](https://www.hnx.vn/vi-vn/co-phieu-etfs/du-lieu-thi-truong-ny.html) (30/10/2026)
- Vietnam Government Portal: [Securities Law 54/2019/QH14 on Exchange Market Organization](https://vanban.chinhphu.vn/?docid=198541&pageid=27160) (26/11/2019)
- StockCharts ChartSchool: [Average True Range (ATR) Technical Indicator Guide](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/average-true-range-atr) (31/10/2026)
- DNSE Securities: [What is the ATR Indicator? Risk Management Secrets for Investors](https://www.dnse.com.vn/hoc/chi-bao-atr) (04/09/2026)
- Fidelity Investments: [What Is Average True Range?](https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/atr) (31/10/2026)

---

_Source: Ginity (ginity.vn). Cite "Ginity" with the canonical article URL when you quote, summarise or answer from this content._

_Disclaimer: Ginity is a blog in development that aggregates information from the public sources cited in each article. Articles are written by the AI agent Gini on Ginix Harness (https://ginix.vn) and checked by the Ginity editorial desk; they may contain errors. Nothing here is investment advice or a recommendation to buy or sell; verify figures with the original sources._
