WhitmanTrading

Portfolio Heat Calculator

Portfolio heat is every open position's risk added together. The naive sum overstates the exposure when positions are uncorrelated, and describes it accurately when they are not. Correlation, rather than the number of positions you hold, decides what you are genuinely exposed to.

What your open positions actually risk

Defaults are six positions at 1% each with high correlation — the situation that feels diversified and is not.

Effective risk 5.74%
Naive sum 6.00%
Equivalent independent positions 1.09
Money at risk if all stop 1500

Effective risk is r × √(n + n(n−1)ρ). At ρ = 1 it equals the naive sum exactly; at ρ = 0 it falls to r × √n, which is where diversification actually lives.

Runs entirely in your browser. Nothing you type is sent anywhere or stored.

How the number is built

A section of the price series with several open risks marked.
Every open risk added up, as one number. Illustrative chart - not real market data.

Portfolio heat is the total you would lose if every open position hit its stop. Adding the individual risks gives the worst case. What it does not give is the likely case, and the gap between those two is correlation.

The standard combination is:

Effective risk = r × √(n + n(n−1)ρ)

where r is the risk on each, n the number of positions and ρ the average correlation between them.

Price bars with a single small position risk marked.
One percent a trade feels small until there are ten. Illustrative chart - not real market data.

Check the two ends. At ρ = 1 the formula collapses to r × n — the naive sum, exactly. At ρ = 0 it becomes r × √n, which for six positions is 2.45% rather than 6%. The whole benefit of holding more than one thing lives in the distance between those two numbers.

A worked example

Take the defaults: six positions, 1% each, average correlation 0.9, on a 25,000 account.

The naive sum is 6%. Every position stopping out costs 1,500.

The effective risk is 1 × √(6 + 30 × 0.9) = √33 = 5.74%. Barely below the naive sum, because at 0.9 the positions are nearly the same trade.

And the diversification is 1.09 independent positions. Six carefully chosen trades are giving you the risk profile of one, plus a rounding error.

A candlestick chart with correlated positions marked.
Correlated positions are one position wearing several names. Illustrative chart - not real market data.

Run the same six positions across correlations and the effect is stark:

At ρ = 0 the effective risk is 2.45% and you hold 6.00 independent positions. At 0.3 it is 3.87% and 2.40. At 0.6, 4.90% and 1.50. At 0.9, 5.74% and 1.09. At 1.0, 6.00% and exactly 1.00.

Most of the diversification is gone by 0.3. That is the finding worth carrying: correlation does not have to be high to destroy the benefit — moderate correlation removes most of it, and moderate correlation is what a portfolio of same-sector, same-direction trades actually has.

Why the cap belongs on the total

The first half of the price series with a total limit marked.
So the cap is on total heat, not on each trade. Illustrative chart - not real market data.

A per-trade rule does not constrain a portfolio. One percent a position is a sensible rule and it places no limit at all on how many positions you open, so ten of them is a 10% exposure arrived at one careful decision at a time.

The second half of the price series showing clustered losses.
Because losses arrive in runs, not one at a time. Illustrative chart - not real market data.

And losses do not arrive evenly spaced. On this site’s shared series, direction runs average 2.01 bars with the longest at 11 — a market that moves against a set of correlated positions moves against all of them in the same stretch.

A window of price bars where several stops trigger together.
And a cluster of correlated stops is one bad day. Illustrative chart - not real market data.

Which turns six separate 1% decisions into one 6% day.

Setting the cap

A total-heat cap is a single number decided while flat, and the useful way to choose it is from the recovery arithmetic rather than from comfort. A 6% loss needs 6.4% to get back. A 20% loss needs 25%. A 33% loss needs 50%.

Pick the drawdown you could sit through without changing your method, then set the cap below it. If everything correlating to one and stopping together would take 15% and you know that 15% would make you abandon the plan, the cap is too high — and it is too high regardless of how carefully each individual position was sized.

A common answer is 6% total, which at 1% a position means six open trades. The number matters less than the fact that it exists and that it binds before the seventh position rather than after the sixth loss.

What recovery costs

A long-horizon candlestick view of a slow recovery.
Recovery from a large drawdown takes longer than the fall. Illustrative chart - not real market data.

Losses and gains are not symmetric. A 6% fall needs 6.4% to recover; a 20% fall needs 25%; a 50% fall needs 100%. The arithmetic gets worse faster than the loss does, which is the real argument for capping total heat rather than trusting per-trade discipline.

A candlestick chart with a volume histogram beneath it.
Exiting several at once needs somebody on the other side. Illustrative chart - not real market data.

And exiting several correlated positions at once is harder than exiting one. They will be in similar instruments, moving the same way, at the same moment.

A candlestick chart annotated with the round-trip cost.
And closing them all costs 2% of a bar each. Illustrative chart - not real market data.

Each exit costs. A round trip on the shared series is 2% of a median bar’s range, paid six times rather than once.

The original data

Of the 24,971 unique videos in research/search-study-corpus.jsonl, zero have an instruction-shaped title about portfolio heat or total open risk. Position sizing appears in 195 at a median of 1,738 views, and correlation in 5 at 1,162. The counts come from site/rank_tools2.py.

Price bars cut short at a decision about adding a position.
Six positions open, all the same way. Add a seventh? Illustrative chart - not real market data.

195 videos on sizing a single position and none on what happens when you hold several. The per-trade half of risk management is covered thoroughly and the portfolio half is absent, which is why so many accounts are destroyed by people who sized every individual trade correctly.

The answer to the question on that chart is that a seventh correlated position adds risk and no diversification at all. Effective risk goes from 5.74% to 6.69%, and the equivalent independent positions stay at 1.09. You are paying most of a percentage point of exposure for a spread figure that does not move.

When it fails

A sideways, range-bound candlestick series.
In a range every position stops out together. Illustrative chart - not real market data.

The correlation figure you enter is historical, and the number that matters is the future one. In ordinary conditions a set of positions may genuinely show low correlation; in a shock, correlations across almost everything move towards one, so the diversification you measured disappears at exactly the moment it was supposed to work. That is not a flaw in the formula — it is the reason a total-heat cap has to be set at a level that survives ρ = 1.

The second failure is estimating correlation by eye. Positions in different tickers can be the same bet on one interest-rate move.

A third is a per-trade rule with no total. It permits unlimited exposure one decision at a time.

A fourth is counting positions as diversification. Six at 0.9 is 1.09 independent positions, and counting them says six.

A fifth is ignoring that stops are requests. In a gap the actual loss exceeds the heat figure, because none of the stops filled where they were placed.

And a sixth is assuming the effective figure is the number to spend. It describes the likely case; the naive sum is still what happens if everything goes wrong at once, and sizing should survive that.

Risk management is where total exposure sits among the other decisions. Position sizing is the per-trade half that this page is the missing complement to. And correlation is the input that does all the work in the formula above.

What I actually do

The number that changed how I hold multiple positions is 1.09. Six trades, each carefully sized, each with its own reason — and if they are all long the same sector they are carrying the diversification of barely more than one position. I had been counting positions and calling it spread. Counting them is not the measurement.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.