Risk Management5 min read

ATR Indicator Guide: Using ATR for Risk‑Based Position Sizing

The Average True Range (ATR) is the go‑to volatility metric for risk‑aware traders. It tells you how much a market typically moves in a period, which you can translate into stop‑loss levels, take‑profit targets, and position size. This article walks through the math, shows how to implement ATR‑based rules in a backtester, and explains why a fixed‑pip stop can be deadly.

Calculating ATR

ATR is a moving average of the True Range (TR). TR for a bar is:

  • High – Low – the basic range.
  • |High – Previous Close| – captures gaps.
  • |Low – Previous Close| – captures gaps.

The maximum of those three values is TR. ATR is the exponential or simple average of TR over a set period (commonly 14). The formula in most platforms is:

ATR = (Previous ATR × (N-1) + Current TR) / N

Higher ATR means more volatility, lower ATR means tighter price action.

ATR‑Based Position Sizing

A common rule is to risk a fixed % of equity per trade. The stop distance in pips equals a multiple of ATR, typically 1.5× or 2×. The position size is:

Size = (Risk per trade ÷ (Stop distance in ticks × Tick size))

For example, 2% of €10 000 equity, stop 2×ATR (≈30 pips) on EUR/USD with a 0.01 tick size gives: Size = 200 ÷ (30 × 0.01) = 66 contracts.

ATR‑Based Stop‑Loss and Take‑Profit

Using ATR to set stops adapts to market volatility. A stop 1×ATR above entry on an up‑trend is tighter than 3×ATR in a low‑vol market. Similarly, a take‑profit at 2×ATR can give a 1:1.5 risk‑reward ratio on a 1×ATR stop.

Backtesting shows that ATR stops often outperform fixed‑pip stops in trending markets because they stay in place when volatility spikes and retreat when it shrinks.

ATR Trailing Stops

A trailing stop moves with the price once a trade is in profit. A common ATR trailing rule is: trail at 1×ATR from the high (long) or low (short) since entry. This locks in gains while allowing for extended moves.

For example, a long trade that moves 40 pips gains a trailing stop at 20 pips (1×ATR) from the new high, protecting profits without freezing the trade too early.

Why Fixed‑Pip Stops Fail in CFD Markets

CFD brokers offer tight spreads and leverage, so a 10‑pip stop can be hit on a single whiplash, especially in news periods. ATR stops widen when volatility rises, giving the trade breathing room. In low‑vol periods they tighten, preventing over‑exposure.

Studies show a 2×ATR stop improves Sharpe ratios by 20–30 % on major currency pairs compared to a 10‑pip fixed stop.

Backtesting ATR‑Based Rules

1. Define ATR period and multiple.

2. Compute risk per trade.

3. Calculate position size.

4. Run Monte‑Carlo shuffles to test robustness.

5. Compare drawdowns and win rates to a baseline fixed‑stop strategy.

Related Articles

→ Position Sizing in CFD Trading→ Stop-Loss Strategies Explained→ Trailing Stops Guide

← Back to Blog · Open Backtester → · Strategy Lab →