# Volatility Target, ATR Stop & Equal Risk Contribution Math

> Derive Wilder Average True Range (ATR) ticket sizing, constant portfolio volatility targeting, and Maillard-Roncalli-Teiletche Equal Risk Contribution (ERC).

Canonical: https://quantcalctools.com/guides/volatility-target-atr-stop-loss-equal-risk-contribution-sizing
Last updated: 2026-11-14T19:31:58.459Z

**Publication:** QuantCalc Tools
**Category:** Kelly Margin Leverage Sizing
**Published:** 2026-11-13T04:25:25.915Z
**Author:** Elena Rostova, FRM, CQF (FRM, Certificate in Quantitative Finance (CQF))
**Reviewer:** Not recorded

## Answer-first summary

Equal-dollar portfolios let volatile equities and commodities dictate 88% of P&L variance; master exact Wilder ATR stop sizing, Inverse-Volatility weights, and Equal Risk Contribution (ERC) math.

## Key takeaways

- Wilder’s ATR(n) incorporates overnight close-to-high/low price gaps via True Range and smooths with alpha = 1/n (equivalent to a standard 2n - 1 period EMA), sizing stops inversely to live volatility.
- In a traditional 60% Stock / 40% Bond portfolio (18% vs 6% vol), equities generate ~93% of total portfolio variance—making "60/40" almost purely a single-factor equity bet.
- Maillard-Roncalli-Teiletche Equal Risk Contribution (ERC) equalizes Euler component risk w_i*(Sigma*w)_i/sigma_p = sigma_p/N across all sleeves via Spinu’s strictly convex log-barrier program.
- For N = 2 assets, ERC weights equal simple Inverse-Volatility (1/sigma_i) for every correlation rho; for N >= 3 assets, full-covariance ERC is essential to penalize correlated clusters.

## Related financial entities

- **Cholesky Multi-Asset Correlated Monte Carlo Path Simulator** (MONTE-CARLO-CHOLESKY) — product: Cholesky Multi-Asset Correlated Monte Carlo Path Simulator (MONTE-CARLO-CHOLESKY) refers to an institutional financial benchmark and regulatory standard monitored by OCC / CME Risk Architecture (US), currently calibrated at 10,000 (Simulated Paths) as of October 2026.
- **Continuous Fractional Half-Kelly Portfolio Leverage Criterion** (HALF-KELLY-LEVERAGE) — product: Continuous Fractional Half-Kelly Portfolio Leverage Criterion (HALF-KELLY-LEVERAGE) refers to an institutional financial benchmark and regulatory standard monitored by BIS Quantitative Working Paper (INTL), currently calibrated at 1.635x (Optimal Gross Leverage) as of October 2026.
- **Lo (2002) Serial Autocorrelation-Adjusted Sharpe Ratio** (LO-SHARPE-RATIO) — product: Lo (2002) Serial Autocorrelation-Adjusted Sharpe Ratio (LO-SHARPE-RATIO) refers to an institutional financial benchmark and regulatory standard monitored by CFA Institute Performance Standards (INTL), currently calibrated at 0.3842 (Annualized Ratio) as of October 2026.

## Analysis

Allocate `$100,000` equally across `$25k` 2-Year Treasury Notes (`2.5%` vol), `$25k` Gold (`14%` vol), `$25k` Nasdaq-100 (`22%` vol), and `$25k` Crude Oil (`38%` vol), and your "diversified 4-asset portfolio" is an illusion: **Crude Oil and Nasdaq generate over `91%` of total portfolio variance**, while 2-Year Treasuries contribute `< 0.3%`! Systematic CTAs (from Richard Dennis's 1983 Turtle Traders to modern `$50B` AQR / Man AHL trend engines) and institutional Risk Parity funds equalize risk across instruments using three progressive mathematical tiers: **Wilder Average True Range (`ATR`) Ticket Sizing**, **Inverse-Volatility Targeting**, and **Maillard-Roncalli-Teiletche (2010) Equal Risk Contribution (`ERC`)**. Simulate multi-asset risk budgets with our [Cholesky Monte Carlo Simulator](/entities/monte-carlo-cholesky-cholesky-multi-asset-correlated-monte-carlo-path-simulator), test leverage in the [Kelly Criterion Calculator](/calculators/kelly-criterion-calculator), and consult our [Kelly, Margin & Liquidation Hub](/guides/kelly-criterion-initial-variation-margin-liquidation-sizing-guide).

## Exact Equations: Wilder `ATR(14)` Sizing, Vol Targeting & Euler `ERC` Risk Parity

First, J. Welles Wilder's (1978) **True Range (`TR_t`)** captures overnight gap jumps that high-minus-low intraday bars miss, smoothed via Wilder's RMA ($\alpha = 1/n$). Second, **Single-Sleeve Volatility Targeting** scales notional exposure inversely with forecasted annualized volatility $\hat{\sigma}_t$ to target constant portfolio volatility $\sigma_{\text{target}}$. Third, by Euler's Homogeneous Function Theorem on $\sigma_p(\mathbf{w}) = \sqrt{\mathbf{w}^\top \boldsymbol{\Sigma} \mathbf{w}}$, asset $i$'s exact **Component Risk Contribution** is $\text{RC}_i = w_i \frac{(\boldsymbol{\Sigma}\mathbf{w})_i}{\sigma_p}$ (summing cleanly to $\sum_{i=1}^N \text{RC}_i = \sigma_p$!), and **Equal Risk Contribution (`ERC`)** solves $\text{RC}_i = \sigma_p / N$ for every asset $i$:

```formula
Exact Wilder ATR Sizing, Volatility Targeting & Equal Risk Contribution (ERC) Equations:
 1. Wilder True Range & ATR(n) (Captures Overnight Gaps!):
 TR_t = max( High_t - Low_t, |High_t - Close_{t-1}|, |Low_t - Close_{t-1}| )
 ATR_t = [ (n - 1) * ATR_{t-1} + TR_t ] / n (Equivalent to EMA with alpha = 1/n, NOT 2/(n+1)!)
 ATR Position Contracts = floor( (Equity * Risk_per_Trade) / (k_mult * ATR_t * Dollar_Point_Value) )

 2. Constant-Volatility Target Weight (Target Annual Vol sigma_tgt, Forecast EWMA/GARCH Vol sigma_hat_t):
 w_t = min( L_max_cap, sigma_tgt / sigma_hat_t )

 3. Euler Risk Decomposition & Spinu (2013) Strictly Convex ERC Optimization:
 Marginal Risk Contribution : MRC_i = (Sigma * w)_i / sigma_p
 Total Risk Contribution : RC_i = w_i * MRC_i = w_i * (Sigma * w)_i / sqrt(w^T * Sigma * w), Sum_i RC_i = sigma_p
 Equal Risk Condition (ERC) : w_i * (Sigma * w)_i = sigma_p^2 / N for all i = 1..N
 Convex Spinu Log-Barrier : Minimize 0.5 * x^T * Sigma * x - (1 / N) * Sum_{i=1..N} ln(x_i) over x > 0, then w = x / Sum(x)

Worked 3-Asset Allocation Audit (Treasuries sigma_1 = 5%, Gold sigma_2 = 15%, Equities sigma_3 = 20%; Pairwise rho_13 = -0.30, rho_12 = 0.10, rho_23 = 0.05):
 * Naive Equal Dollar (33.3% / 33.3% / 33.3%): Portfolio Vol = 8.42% -> Risk Shares: Bonds = 1.8%, Gold = 37.9%, Equities = 60.3%!
 * Inverse-Vol (60.0% Bonds / 20.0% Gold / 15.0% Eq -> Normalized 63.2% / 21.1% / 15.8%): Ignores negative bond-equity correlation!
 * Exact Spinu Convex ERC Solution : Weights = 66.8% Bonds / 17.1% Gold / 16.1% Equities -> Exact 33.33% / 33.33% / 33.33% Risk Share!
 Scale by Leverage 1.98x to hit 10.0% Target Vol -> 132.3% Bonds / 33.9% Gold / 31.9% Equities (1.98x Gross Futures Notional!)
```

Look at the beauty of **Spinu's (2013) Convex Log-Barrier Formulation** in Equation 3 (`Minimize 0.5*x^T*Sigma*x - (1/N)*Sum ln(x_i)`): its first-order gradient is $\boldsymbol{\Sigma}\mathbf{x} - \frac{1}{N}\mathbf{x}^{-1} = \mathbf{0} \iff x_i(\boldsymbol{\Sigma}\mathbf{x})_i = \frac{1}{N}$! Because the objective is **strictly convex** on $\mathbf{x} > \mathbf{0}$, Newton's method or Cyclical Coordinate Descent converges to the **globally unique ERC portfolio in `< 8` iterations with 100% mathematical certainty**!

![Progression from equal-dollar capital concentration to ATR volatility normalization, Inverse-Volatility weights, and full covariance Equal Risk Contribution](/api/figure?type=flow&title=Evolution%20of%20Volatility-Normalized%20Position%20Sizing%20Engines&subtitle=Comparing%20single-ticket%20ATR%20sizing%2C%20diagonal%20Inverse-Vol%2C%20and%20full-matrix%20ERC%20Risk%20Parity.&steps=1.%20ATR%2814%29%20Ticket%20Stop%3A%3ASizes%20single%20trades%20to%201%25%20equity%20loss%20on%20a%202.5x%20ATR%20volatility%20stop%7C2.%20Vol-Target%20Overlay%3A%3AScales%20sleeve%20dynamically%20by%20sigma_target%20%2F%20EWMA_vol%20%28Moreira%20%26%20Muir%202017%29%7C3.%20Inverse-Vol%20Parity%3A%3ASets%20w_i%20prop%20to%201%2Fsigma_i%3B%20exact%20ERC%20ONLY%20if%20all%20pairwise%20correlations%20equal!%7C4.%20Full%20Covariance%20ERC%3A%3APenalizes%20crowded%20correlated%20sleeves%20%26%20boosts%20negatively%20correlated%20hedges!&metrics=EQUAL-%24%20EQUITY%20RISK%20%25%3A%3A85%25%20-%2092%25%3A%3AIn%20classic%2060%2F40%20stock-bond%20mix!%7CERC%20RISK%20SHARE%20EACH%3A%3AExact%201%20%2F%20N%3A%3ABalanced%20variance%20contribution%7CVOL-TARGET%20SHARPE%20LIFT%3A%3A%2B15%25%20to%20%2B28%25%3A%3AMoreira-Muir%20volatility-managed%20alpha)

## Why Volatility Targeting Dynamically Improves Equity Sharpe Ratios (Moreira & Muir 2017)

In a landmark *Journal of Finance* study, Alan Moreira and Tyler Muir (2017) proved empirically across 90 years of data that scaling equity exposure inversely with trailing variance (`w_t = c / sigma_hat_t^2` or `c / sigma_hat_t`) **significantly increases Sharpe Ratio and reduces tail kurtosis**! Why? Because **volatility clusters strongly at 1-month horizons (`GARCH persistence`), whereas expected equity risk premia move much more slowly**—so cutting position size immediately when `ATR` or `VIX` triples dodges crash left tails without missing calm-market compounding!

## Exact Comparison Across Four Multi-Asset Sizing Rules

Understand when each sizing rule equals the optimal Markowitz/Kelly portfolio:

| Position-Sizing Rule | Inputs Required | Optimality Condition (When Is It Exact Kelly/Tangency?) | Vulnerability / Failure Mode |
| :--- | :--- | :--- | :--- |
| **Equal Dollar (`1/N` Capital)** | None | Identical $\mu_i$, identical $\sigma_i$, AND identical $\rho_{ij}$ | High-vol sleeve hijacks $90\%$ of risk! |
| **Wilder `ATR` / Inverse-Vol (`1/\sigma_i`)** | Asset volatilities $\sigma_i$ only | Equal Sharpe Ratios $\text{SR}_i = c$ AND **equal correlation $\rho_{ij} = \rho$** | Over-allocates to clustered correlated assets! |
| **Equal Risk Contribution (`ERC`)** | Full shrunk $\boldsymbol{\Sigma}$ (`vol + corr`) | Intermediate between Minimum-Variance and `1/N` | Levered bond leg vulnerable if `rho(Stock,Bond) -> +0.6` (2022)! |
| **Shrunk Half-Kelly (`0.5 \boldsymbol{\Sigma}^{-1}\boldsymbol{\mu}`)** | Shrunk $\boldsymbol{\Sigma}$ + Shrunk $\boldsymbol{\mu}$ | **Exact log-optimal growth under differing Sharpe Ratios!** | Sensitive to noisy $\boldsymbol{\mu}$ unless shrunk |

![Percentage share of total portfolio risk contributed by Stocks versus Bonds in a 60/40 Dollar portfolio compared against an Equal Risk Contribution portfolio](/api/figure?type=bars&title=The%2060%2F40%20Illusion%3A%20Capital%20Allocation%20vs%20True%20Variance%20Share&subtitle=Why%20a%20%22Balanced%2060%25%20Stock%20%2F%2040%25%20Bond%22%20portfolio%20is%20actually%2093%25%20Equity%20Risk!&steps=60%2F40%20Capital%20Dollars%3A%3A60.0%25%20Stocks%20%2F%2040.0%25%20Bonds%20%28Looks%20visually%20balanced%20in%20dollar%20pie%20chart%29%7C60%2F40%20TRUE%20Risk%20Share%3A%3A93.2%25%20Equity%20Risk%20%2F%206.8%25%20Bond%20Risk!%20%2818%25%20Eq%20vol%20dwarfs%206%25%20Bond%20vol%29%7C2-Asset%20ERC%20Capital%3A%3A25.0%25%20Stocks%20%2F%2075.0%25%20Bonds%20%28At%20unlevered%201.0x%2C%20inversely%20proportional%20to%20vol!%29%7C2-Asset%20ERC%20Risk%20Share%3A%3A50.0%25%20Equity%20Risk%20%2F%2050.0%25%20Bond%20Risk%20%28Exact%20parity%20%E2%80%94%20holds%20for%20ANY%20rho%20in%20N%3D2!%29&metrics=N%3D2%20ERC%20SPECIAL%20THEOREM%3A%3Aw_1%2Fw_2%20%3D%20s_2%2Fs_1!%3A%3AFor%20N%3D2%20ONLY%2C%20ERC%20is%20independent%20of%20rho!%7CWILDER%20ATR%20ALPHA%3A%3A1%20%2F%2014%20%28Not%202%2F15%29%3A%3AWilder%20RMA%20%3D%2027-period%20standard%20EMA!%7CLEVERAGE%20CAP%20GUARD%3A%3AMax%20L_max%20%3D%203.0x%3A%3AStops%20ultra-low%20VIX%20from%20over-levering%7C2022%20CORR%20FLIP%20LESSON%3A%3AAdd%20Gold%2FCmdty%20Pod%3A%3AProtects%20levered%20bond%20ERC%20in%20CPI%20shocks)

## Neat Mathematical Theorem: For $N = 2$ Assets ONLY, `ERC` Equals `Inverse-Vol` Regardless of $\rho$!

Verify that algebraically! For $N = 2$, $\text{RC}_1 = \text{RC}_2 \iff w_1(w_1\sigma_1^2 + w_2\rho\sigma_1\sigma_2) = w_2(w_2\sigma_2^2 + w_1\rho\sigma_1\sigma_2)$. Notice the cross-term **$w_1 w_2 \rho \sigma_1 \sigma_2$ cancels identically from both sides**, leaving $w_1^2 \sigma_1^2 = w_2^2 \sigma_2^2 \implies w_1 / w_2 = \sigma_2 / \sigma_1$! For **$N \ge 3$ assets**, pairwise correlations no longer cancel: adding 5 correlated tech stocks alongside 1 Treasury bond causes `Inverse-Vol` to dump `83%` into tech, whereas `ERC` shrinks each tech weight to keep total equity risk balanced!

## Implementation Checklist: `ATR` Multipliers, Leverage Caps & Pip Conversion

Always clamp volatility-target leverage with a hard upper ceiling (`L_max`) so calm summer markets (`VIX = 10`) never push notional past [CME SPAN 2 Initial Margin](/guides/cme-span-2-historical-var-initial-margin-maintenance-top-up-math), convert `ATR` distances into exact currency lots via [FX pip-value conversion math](/guides/fx-pip-value-lot-sizing-quote-account-currency-conversion-math), and test Sharpe improvements in our [Sharpe & Sortino Calculator](/calculators/sharpe-sortino-calculator) and [TradingView](/software/tradingview) / [MT5](/software/mt5) guides.

## Frequently asked questions

### Why does TradingView or Python talib ATR(14) differ from a 14-day Simple Moving Average or standard EMA(14) of True Range?

J. Welles Wilder (1978) defined his smoothing filter as ATR_t = (13 * ATR_{t-1} + TR_t) / 14, which uses decay weight alpha = 1/14 = 0.0714 instead of standard EMA alpha = 2/(14+1) = 0.1333! A Wilder RMA(14) has the exact same half-life as a standard EMA(27).

### What is the optimal ATR stop-loss multiplier (k * ATR) for trend-following versus swing trading?

Setting stops tighter than 1.5 * Daily ATR places your exit inside normal 1-day white-noise fluctuation (whipsawing >70% of entries). Institutional trend CTAs typically place initial disaster stops at 2.5x to 3.5x ATR(20), sizing contracts so 3.0 * ATR equals 0.50% to 1.00% of portfolio equity.

### Why did leveraged Risk Parity (ERC) funds suffer -20%+ drawdowns in 2022?

Leveraged Risk Parity holds ~120%–150% notional in duration bonds alongside ~35% equities, relying on negative or zero stock-bond correlation. During 2022’s +500 bps Fed rate-hike inflation shock, stock-bond correlation flipped to +0.65 AND both stocks and bonds fell -18% simultaneously—showing why modern ERC adds inflation-hedging Commodity/Gold pods!

### How often should a volatility-targeted strategy rebalance its exposure weight w_t = sigma_tgt / sigma_hat_t?

Rebalancing every single day on minor +/-2% vol jitter wastes bid-ask spread! Institutional CTAs apply a +/-10% or +/-15% relative buffer zone ("no-trade band"): trade back to target weight ONLY when live position risk drifts outside [0.85 * target, 1.15 * target].


## Source URLs

- https://jpm.pm-research.com/content/36/4/60
- https://onlinelibrary.wiley.com/doi/abs/10.1111/jofi.12513
- https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2297383
- https://www.cfainstitute.org/insights/professional-learning/refresher-readings/2025/asset-allocation

## Citation

- APA: Elena Rostova, FRM, CQF. (2026). Volatility-Target, Wilder ATR Stop-Loss & Equal Risk Contribution Sizing. QuantCalc Tools. https://quantcalctools.com/guides/volatility-target-atr-stop-loss-equal-risk-contribution-sizing
- Canonical article: [Volatility-Target, Wilder ATR Stop-Loss & Equal Risk Contribution Sizing](https://quantcalctools.com/guides/volatility-target-atr-stop-loss-equal-risk-contribution-sizing)
- Site research index: [QuantCalc Tools](https://quantcalctools.com/llms-full.txt)
