cTrader

AlgoWay Blog

Guides, manuals and platform references.

Core
JSON & Alerts
MT5 / Expert Advisors
Errors
Integrations
Other Publications
AlgoWay Strategy Lab

ATR Stop Distance and Position Sizing: Keep Risk Fixed

Two volatility ranges paired with different position sizes and equal risk budgets

A wider stop gives a trade more room, but it also gives the same position more money to lose. If volatility doubles and an ATR-based stop doubles with it, keeping the old quantity doubles the planned price risk.

To hold planned cash risk steady, calculate stop distance first and position size second. For a linear instrument, divide the risk budget by the cash loss per unit at that stop. A larger distance then produces a smaller position, subject to the destination's quantity rules.

This matters in automated trading because a stop and a quantity belong to the same decision. If you use AlgoWay's TradingView indicator-to-MT5 workflow with dynamic stops, verify that the resulting size corresponds to the stop actually used. This article explains the sizing arithmetic; the linked guide covers that integration's setup.

ATR supplies a distance, not a direction

Average True Range measures volatility and includes price gaps. True range is the largest of the bar's high-low range, the absolute distance from its high to the previous close, and the absolute distance from its low to the previous close. ATR smooths that measurement over a chosen number of bars. Fidelity's ATR reference explains the calculation and use of ATR multiples for stops.

An ATR value is in price units. A reading of 4 with a multiplier of 2 gives an 8-point distance. It does not mean eight ticks unless the tick size is one point. Nor does rising ATR say whether to buy or sell.

Define the timeframe, lookback, smoothing and observation time before comparing results. Fourteen five-minute bars and fourteen daily bars describe different windows. There is no universally correct multiplier that makes the resulting trade safe or profitable.

Convert distance into money before choosing quantity

For an instrument with a constant tick value, use:

  • Initial distance in price units = ATR × chosen multiplier.
  • Stop distance in ticks = valid entry-to-stop price distance ÷ tick size.
  • Planned price risk per contract = stop distance in ticks × cash value per tick.
  • Raw quantity = cash risk budget ÷ planned price risk per contract.

CME's position-sizing explanation connects stop location, risk budget and tick value. Use values for the exact destination contract. For instruments with currency conversion or a non-linear payoff, this simple constant-value formula needs the appropriate profit/loss calculation.

One budget, two volatility conditions

Suppose a hypothetical contract moves in 0.25-point ticks worth $1.25 each. Assume whole contracts only, a $200 planned price-risk budget and a 2 × ATR initial stop. These numbers illustrate the arithmetic; they are not a recommendation or a measured trading result.

Input or resultATR = 4 pointsATR = 8 points
Stop distance8 points16 points
Distance in ticks3264
Price risk per contract$40$80
Raw quantity52.5
Whole-contract quantity rounded down52
Planned price risk$200$160

Rounding the second quantity up to three would produce $240 of price risk, above the budget. Keeping the original five contracts would produce $400. The unused $40 after rounding down is a consequence of contract granularity, not a sizing error.

Round the stop first, then recalculate the size

Imagine instead that 2 × ATR produces an 8.12-point distance. With an entry on the tick grid, an 8.12-point offset does not land on this contract's 0.25-point grid. If the rule rounds the distance outward to 8.25, the stop is 33 ticks away, worth $41.25 per contract. A $200 budget now permits four whole contracts, with $165 of planned price risk. Five would risk $206.25.

Write the rounding rule explicitly. Rounding inward produces a different stop, so it is not merely a formatting choice. For MT5 execution, a tick-aligned price must also satisfy the broker's stop-distance and Bid/Ask rules. If one minimum-sized position exceeds the budget, forcing the minimum size does not preserve that budget.

Decide whether ATR is frozen at entry

An initial ATR stop and an ATR trailing stop are different rules. A fixed initial-distance design captures ATR at a defined event and retains that distance. A dynamic design recalculates later. If a long trade's stop is repeatedly set to entry minus current ATR times a multiplier, rising ATR can move the stop farther away and increase the planned loss without any new entry.

That is why the automation specification should say when ATR is sampled, what price anchors the stop and whether later changes may widen it. Do not let those choices emerge accidentally from a script recalculating on every bar.

TradingView's fixed-risk sizing documentation also distinguishes risk amount from position value. A small stop can imply a large position and substantial margin needs. An acceptable stop-based loss calculation does not establish that the account can fund the trade.

Before sending automated entries, check the final stop price, accepted quantity, contract value and resulting planned loss together. Allow separately for fees and execution uncertainty: a stop order is not a guaranteed fill price, as the stop-loss and stop-limit gap example shows. ATR can scale a plan to recent volatility. It cannot promise the market will honor the plan's arithmetic.

Last updated: October 13, 2026