How to stress test your Interactive Brokers portfolio
A stress test asks what a bad market would do to the mix you hold today. After importing your IBKR positions you can replay past crises, measure the losses in the worst months and, in the Stress Lab, shock the markets you worry about.
Check the crises and the tail of a portfolio like an IBKR one
This is the free risk check, filled in with the demo portfolio used on this page: past crises, value at risk, expected shortfall, worst months and each holding’s share of the risk. Change funds and weights freely; once you import your positions, MEDGE runs the same analysis on your IBKR weights.
From Aug 2019 to Oct 2026 (87 months, rebalanced monthly), this portfolio swung 12.0% a year and fell at most 15.6% from a peak. In its worst 5% of months it lost 6.8% on average. SWDA carries 57.9% of the risk with 50% of the money. The longest time below a previous high was 24 months.
- Annual volatility
- 12.0%
- VWCE 13.1%
- Maximum drawdown
- −15.6%
- Dec 2021 → Dec 2022
- Worst month
- −7.9%
- Mar 2020
- Worst 12 months
- −15.6%
- to Dec 2022
- VaR 95%, 1 month
- −5.4%
- loss exceeded in 1 month in 20
- CVaR 95%, 1 month
- −6.8%
- average of the worst 4 months
- Sharpe · Sortino
- 0.87 · 1.46
- vs euro overnight rate
- Beta
- 0.89
- vs VWCE · corr. 0.97
Where the risk comes from
Share of the money vs share of the portfolio’s variance.
- SWDA50% money · 58% risk
- CSSPX20% money · 24% risk
- EQQQ10% money · 15% risk
- AGGH20% money · 3% risk
Past crises
Return over each episode, from the month-end before it starts.
| Episode | Portfolio | VWCE |
|---|---|---|
| Covid crash | −12.8% | −19.1% |
| 2022 inflation and rate rises | −13.1% | −12.8% |
How the funds move together
| SWDA | CSSPX | EQQQ | AGGH | |
|---|---|---|---|---|
| SWDA | — | 0.97 | 0.87 | 0.35 |
| CSSPX | 0.97 | — | 0.88 | 0.30 |
| EQQQ | 0.87 | 0.88 | — | 0.35 |
| AGGH | 0.35 | 0.30 | 0.35 | — |
Correlation of monthly returns: near 1 they move together, near 0 independently, below 0 in opposite directions.
Monthly total returns with dividends reinvested, in each fund’s trading currency, rebalanced to the weights every month. VaR and CVaR are historical: the 5% cut-off of the monthly returns and the average beyond it. Past results; not a forecast and not investment advice.
Three ways to stress a portfolio
| Test | What it tells you | In MEDGE |
|---|---|---|
| Crisis replay | What the current weights would have done in a real past crisis, with the moves that actually happened. | Backtesting, on the Free plan |
| Tail measures | How bad a bad month has been: value at risk, expected shortfall, worst month, worst 12 months. | Backtesting and the free risk check |
| Custom scenario | A shock you choose (for example US stocks −30% and rates up), spread to every holding through their historical relationships. | Stress Lab, from the Essential plan |
Worked example: the last crises
Demo portfolio, as the import produces it from a European IBKR account: 50% SWDA.MI, 20% CSSPX.MI, 10% EQQQ.MI, 20% AGGH.MI (iShares Core MSCI World; iShares Core S&P 500; Invesco EQQQ Nasdaq-100; iShares Core Global Aggregate Bond).
| Crisis | Months | Demo portfolio | 100% MSCI World |
|---|---|---|---|
| Covid crash | 2020-01 – 2020-03 | −12.8% | −17.9% |
| 2022 inflation and rate rises | 2022-01 – 2022-09 | −13.1% | −12.6% |
Total return from the first to the last month of each window, in euros, with the weights rebalanced monthly. Data Jul 2019 – Sep 2026; crises before the start of the common history are not shown. Past results do not predict future returns.
How bad a bad month was
| Measure | Demo portfolio | 100% MSCI World |
|---|---|---|
| Value at risk, 95%, one month | −5.4% | −6.4% |
| Expected shortfall (average of the worst 5% of months) | −6.8% | −8.4% |
| Worst month(Mar 2020) | −7.9% | −10.6% |
What the numbers say
- In the 2 crises covered, the portfolio lost less than MSCI World alone in 1.
- In 2022 the portfolio returned −13.1% against −12.6%: with inflation pushing rates up, stocks and bonds fell together and the bond sleeve protected little.
- In the Covid crash −12.8% against −17.9%. The same mix can hold up in one crisis and not in the next: that is why it pays to test the scenario you fear too.
How to do it in MEDGE
- 1Import the positions from Interactive Brokers on the Portfolio page, then open the analysis.
- 2Replay the crises. The benchmark comparison lists every large fall of the benchmark in the common history and how much of it the portfolio took; Period Analysis shows what each holding did.
- 3Read the tail. Value at risk, expected shortfall and the worst months come with the backtest results.
- 4Write your scenario. In the Stress Lab set the shocks you fear on any of the benchmarks, a holding or a ticker you are considering. Everything you do not set is estimated from its relationship with what you set, and MEDGE tells you how unusual the combination is and which past windows looked similar.
What research says about crises and tail risk
Correlations are not stable: they rise when markets fall. Longin and Solnik found that the correlation between international equity markets increases in bear markets but not in bull markets[1]; Ang and Chen found that US stocks’ correlations with the market are much higher for downside moves[2]. A portfolio that looks diversified on average can behave as one block in a crisis, which is why replaying crises and testing scenarios adds information that average statistics hide.
Value at risk tells you where a bad month begins, not how bad the months beyond that point are. Artzner, Delbaen, Eber and Heath showed that quantile-based measures such as value at risk can fail subadditivity: the value at risk of two portfolios combined can exceed the sum of the two[3]. Rockafellar and Uryasev showed how to compute and optimise conditional value at risk, the average loss beyond the threshold[4]. That is why the example reports expected shortfall next to value at risk.
What a stress test does not tell you
- It is not a forecast: relationships between assets are estimated from history and can break in exactly the crisis you are testing.
- It does not compute margin calls or option Greeks: the import covers stocks and ETFs, and leverage stays at your broker. For margin and options risk, use IBKR’s own risk tools.
- Crisis replays can only use the history every holding has; a fund launched recently hides older crises.
How the example is calculated
Each crisis window is a fixed range of months, shown in the table; its return is the compound return from the first to the last month. Value at risk at 95% is the 5th percentile of the monthly returns, taken from history without a model; expected shortfall is the average of the months at or below that threshold. Data and monthly rebalancing are the same as in the backtest guide.
Questions
Can I stress test my IBKR portfolio for free?
Crisis replays and tail measures come with the backtest on the Free plan. Custom scenarios in the Stress Lab need the Essential plan or above.
Does MEDGE simulate a margin call?
No. MEDGE analyses the stocks and ETFs you import, without leverage. Margin requirements and option risk stay with your broker’s tools.
How is a custom scenario computed?
MEDGE takes the shocks you set together and estimates the expected move of every other asset given all of them, from their historical relationships, so correlated shocks are not counted twice. Normal tails understate real extremes, and the page says so.
Which crises can I replay?
Those the common history of your holdings covers, such as the 2008 financial crisis, the 2011 euro crisis, late 2018, the Covid crash and 2022, when every fund has prices for the whole window.
Related
Sources
- [1] Longin, F., & Solnik, B. (2001). Extreme Correlation of International Equity Markets. The Journal of Finance, 56(2), 649–676. doi.org/10.1111/0022-1082.00340
- [2] Ang, A., & Chen, J. (2002). Asymmetric correlations of equity portfolios. Journal of Financial Economics, 63(3), 443–494. doi.org/10.1016/S0304-405X(02)00068-5
- [3] Artzner, P., Delbaen, F., Eber, J.-M., & Heath, D. (1999). Coherent Measures of Risk. Mathematical Finance, 9(3), 203–228. doi.org/10.1111/1467-9965.00068
- [4] Rockafellar, R. T., & Uryasev, S. (2000). Optimization of conditional value-at-risk. The Journal of Risk, 2(3), 21–41. doi.org/10.21314/JOR.2000.038
MEDGE Capital is not affiliated with Interactive Brokers. Interactive Brokers, IBKR, Client Portal and PortfolioAnalyst are trademarks of their owners. Educational content: not financial advice and not an investment recommendation. Risk disclaimer.