# Portfolio-aware Sizing

Also known as: correlation-adjusted, risk parity, Kelly-capped ensembles.
A Risk, Sizing & Exits concept (Position sizing) in the LuxAlgo Library, with 1 indicator implementation.

## What is Portfolio-aware Sizing?

Portfolio-aware sizing sets each position's size with reference to everything else the account already holds, rather than treating every trade as an island. Per-trade schemes like [fixed fractional](https://www.luxalgo.com/library/concept/fixed-fractional/) answer one question: how much to risk on this stop distance. Portfolio-aware schemes add the questions that follow: how correlated is the new trade to the open book, how much total risk is already deployed, and how concentrated the book is in one direction or factor.

Common implementations include correlation haircuts (shrink size when the new trade moves with existing positions, since correlated positions behave as one larger position), risk parity (allocate so each position contributes a similar share of portfolio volatility, extending [volatility-targeted sizing](https://www.luxalgo.com/library/concept/volatility-targeted-sizing/) to the book level), and capped ensembles, where several strategies each request size and an aggregate limiter scales the requests down so combined exposure stays inside a fixed budget. The shared premise is that risk lives at the portfolio level, and [correlation](https://www.luxalgo.com/library/concept/correlation/) is the thing per-trade math cannot see.

The machinery scales with ambition. Heat accounting is arithmetic: sum stop-distance-times-size across the book and compare against a ceiling. Correlation haircuts need a rolling estimate, commonly twenty to ninety days of returns, applied as a discount that grows with the new trade's correlation to the existing book. Risk parity in its simple form weights positions by inverse volatility, and in its full form solves for equal risk contributions using the whole covariance structure. Kelly-capped ensembles work top-down: sub-strategies request sizes, the requests sum to more than the account should carry, and a governor rescales everything so the aggregate risked fraction respects a hard cap.

The failure modes are as established as the methods. Correlation estimates are unstable and converge toward one in stress, precisely when the haircut mattered; covariance matrices estimated on short windows are noise wearing a suit, which is why practical implementations shrink estimates and keep caps conservative; and small books can over-engineer, since two or three blunt rules, a heat cap, a same-direction limit, a correlated-pair haircut, capture most of the benefit that full optimization promises. The portfolio layer also composes with the time dimension: [loss-control rules](https://www.luxalgo.com/library/concept/loss-control-rules/) brake losing sequences while portfolio sizing governs cross-sectional stacking, and complete plans run both.

## How to apply portfolio-aware sizing

Per-trade size first, then three book-level checks before the order goes out.

1. Compute the per-trade base size from your sizing rule, the island answer the portfolio layer will adjust.
2. Measure the candidate's relationship to the open book: rolling correlation to existing positions, and its direction and factor alignment.
3. Apply the adjustment: a correlation haircut, a parity weight, or an ensemble rescaling, whichever the plan specifies.
4. Check the aggregate: total heat against its ceiling, and concentration against direction or factor caps, refusing or shrinking the trade when either binds.
5. Log the book-level exposures with the trade, since the portfolio layer only works if its state is visible when the next candidate arrives.

## How it's calculated

Sizing rules that set each position from portfolio-level risk, using volatilities, correlations, and total open risk rather than the single trade alone.

```
sigma_p = sqrt( Σ (w_i × w_j × sigma_i × sigma_j × rho_{ij}) over all position pairs i, j )
Inverse-volatility (naive risk parity) weight: w_i = (1 / sigma_i) / (Σ (1 / sigma_j) over all positions j)
Kelly fraction: f_star = W - (1 - W) / R
Capped fractional allocation: f_i = min(c × f_star, f_max)
Portfolio heat limit: (Σ r_i over all open positions i) <= H_max

  sigma_p: portfolio return volatility
  w_i: portfolio weight of position i (w_j likewise)
  sigma_i: return volatility of position i (sigma_j likewise), measured on a common horizon
  rho_{ij}: correlation between the returns of positions i and j (rho_{ii} = 1)
  i, j: indices over the open or candidate positions
  f_star: full Kelly fraction of equity
  W: strategy win rate
  R: payoff ratio, average win / average loss
  c: fractional Kelly multiplier (commonly 0.25 to 0.5)
  f_max: hard cap on any single allocation
  f_i: final fraction of equity allocated to position i
  r_i: open risk of position i, entry-to-stop distance times size, as a fraction of equity
  H_max: maximum total open risk (commonly around 6% of equity)
```

These are complementary rules rather than one formula: weights feed the portfolio volatility check, and the Kelly output is capped before the heat limit is enforced.

Full risk parity equalizes each position's contribution to sigma_p and needs a numeric solver; the inverse-volatility form is the closed-form shortcut and matches it when all pairwise correlations are equal.

The Kelly formula assumes independent repeated bets, so correlated positions argue for a smaller c.

## How traders use it

- As total-heat caps: sum the open risk of all positions (distance to stop times size) and refuse or shrink new entries once the sum reaches a preset ceiling, regardless of how good the next signal looks.
- As correlation-adjusted allocation: before adding a position, measure its correlation to the current book over a recent window and scale size down as correlation rises, so five correlated trades cannot quietly become one five-times-size trade.
- As an ensemble governor in multi-strategy systems: each sub-strategy proposes a size, and a portfolio layer rescales the set (risk-parity weights, or a Kelly-style cap on the aggregate fraction) so the combined book, not any single signal, defines the account's risk.
- As concentration limits: separate caps on net directional exposure and on single-factor exposure, so a book can be under its heat ceiling and still get refused for being one bet wearing five tickers.
- As drawdown-responsive scaling: the whole book's risk budget contracts as account drawdown deepens and restores with recovery, applying the fixed-fractional instinct at portfolio scale.

## Portfolio-aware sizing vs related risk layers

- **Fixed Fractional** (https://www.luxalgo.com/library/concept/fixed-fractional/): The island rule: each trade risks a fraction of equity against its own stop, blind to what else is open. Portfolio-aware sizing is the layer above, adjusting the island answers for correlation, heat, and concentration. The two compose; neither replaces the other.
- **Volatility-targeted Sizing** (https://www.luxalgo.com/library/concept/volatility-targeted-sizing/): Volatility targeting equalizes each position's standalone risk contribution; the portfolio layer extends the same instinct to the book, where correlations decide whether ten equal contributions are ten bets or one. Risk parity is literally this extension formalized.
- **Loss-control Rules** (https://www.luxalgo.com/library/concept/loss-control-rules/): Loss-control brakes the time dimension, capping what a losing sequence may spend; portfolio sizing governs the cross-section, capping what simultaneous positions may stack. A book can fail either audit while passing the other, which is why mature plans run both.

## FAQ

### Why size positions based on correlation?

Because correlated positions tend to lose together. If three trades share one driver, the practical exposure is roughly a single position at triple size, and one adverse move hits all of them at once. Correlation-aware sizing haircuts each position so the aggregate behaves like the risk you intended. The estimate is imperfect, since correlations shift and tend to rise in stress, which is why sensible caps stay conservative.

### What is portfolio heat?

Heat is the total open risk of the book: for each position, the distance from entry (or current price) to its stop multiplied by size, summed across positions and usually expressed as a percentage of equity. A heat cap bounds the planned loss if every open stop is hit in the same session; gaps and slippage can still push the realized number past it. It is the simplest portfolio-aware rule and usually the first one added.

### What is risk parity in simple terms?

Sizing so every position contributes a similar share of the portfolio's volatility. The crude version weights by inverse volatility, wild instruments small and quiet ones large; the full version accounts for correlations too, solving for equal risk contributions across the covariance structure. The intent in trading books is balance: no single position or theme silently dominating the account's fate because it happened to be the loudest.

### How should correlation be estimated for sizing?

Rolling windows of returns, commonly twenty to ninety days, matched to the holding period, with the estimate treated as provisional rather than precise. Short windows track regime change and inhale noise; long ones smooth noise and lag reality. Practical schemes shrink extreme estimates toward moderate values and, above all, keep the resulting caps conservative, because the one reliable fact about correlations is that they strengthen in stress.

### Do small accounts need portfolio-aware sizing?

They need its blunt members, not its mathematics. A heat cap, a limit on simultaneous same-direction trades, and a haircut for obviously correlated pairs capture most of the protection at trivial cost; covariance optimization over a four-position book is precision applied to noise. The layer's value scales with book complexity, and the honest small-account version is three written rules, enforced.

### What is a Kelly-capped ensemble?

A multi-strategy governor: each sub-strategy computes its desired size as if alone, the requests are summed, and the total is rescaled so the aggregate fraction of equity at risk stays inside a hard cap inspired by fractional-Kelly logic. The cap binds exactly when many strategies agree, which is when correlation among them is highest and the naive sum most dangerous. It is the ensemble version of refusing to let confidence stack.

## Implementations in the Library

- Multi-Strategy Portfolio Optimizer (LuxAlgo): https://www.luxalgo.com/library/indicator/multi-strategy-portfolio-optimizer/

## Related concepts

- Fixed Fractional: https://www.luxalgo.com/library/concept/fixed-fractional/
- Fixed Ratio: https://www.luxalgo.com/library/concept/fixed-ratio/
- Volatility-targeted Sizing: https://www.luxalgo.com/library/concept/volatility-targeted-sizing/
- Sizing Bases: https://www.luxalgo.com/library/concept/sizing-bases/
- Pyramiding: https://www.luxalgo.com/library/concept/pyramiding/
- Averaging Down: https://www.luxalgo.com/library/concept/averaging-down/
- DCA: https://www.luxalgo.com/library/concept/dca/
- Martingale / Anti-martingale: https://www.luxalgo.com/library/concept/martingale-anti-martingale/
- Kelly Criterion: https://www.luxalgo.com/library/concept/kelly-criterion/
- Optimal F: https://www.luxalgo.com/library/concept/optimal-f/

---

Source: https://www.luxalgo.com/library/concept/portfolio-aware-sizing/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/