When Should a Portfolio Adapt? A $10,000 Market Stress Experiment

Two investors start with $10,000 in the same stock market. After a slide, a stress indicator flashes a warning. One investor stays fully invested. The other shifts part of the portfolio to cash. If the market keeps falling, cash can cushion the loss. If it rebounds while the warning is still on, sitting partly in cash can be expensive. At the moment of the decision, both futures are possible.

What the research tested

Haixiang Yao, Chunzhuo Wan, Ping Chen, and Lijun Li studied whether a model could learn to vary its stock exposure as conditions changed. They tested it in five markets represented by the CSI 300, Hang Seng, S&P 500, Euro Stoxx 50, and Nikkei 225. The authors reported that their model earned a higher Sharpe ratio than buy-and-hold in each market tested. The Sharpe ratio measures excess return relative to how much returns fluctuate. The authors attributed much of the improvement to cutting exposure during severe declines.

The model used attention to give different observations different weights, an LSTM to summarize information across time, and a reinforcement learning method called PPO to learn an exposure policy. In the authors’ analysis, market volatility and the intensity of online searches were among the most influential inputs across markets. Search activity shows that people are paying attention. A spike alone gives no direction for the next market move.

Would the same warning help in two different markets?

The lab below takes one idea from the paper and makes it visible. It compares buy-and-hold with a simple rule that reduces stock exposure when a hypothetical stress score reaches a threshold. In both scenarios the portfolios see the same first four weeks, including the same warning going into week five. After that, one market falls further and the other snaps back. The scores and returns are invented for the experiment. The lab uses a fixed rule in place of the paper’s trained model.

  1. Run Extended selloff. Start with the defaults. When the score meets the threshold, the adaptive portfolio shifts to 50% stocks and 50% cash. Compare the two portfolios’ largest losses from a prior peak.
  2. Switch to Fast rebound. Keep every other input fixed. Look at week five in the results table. The two scenarios enter that week with the same stress reading, but the adaptive portfolio participates in only part of the rebound.
  3. Raise the trading cost. Try moving from 10 to 100 basis points. A basis point is one hundredth of a percentage point, so 100 basis points is 1% of the stock value traded. Compare how much each strategy pays in the experiment.

Read the ending balance and the drawdown together

Suppose an account reaches $11,000 before dropping to $8,800. Its drawdown at that point is 20%, measured from $11,000. The lab’s maximum drawdown is the largest of those peak-to-later-trough losses at the displayed weekly checkpoints, including the starting balance. The ending balance answers a different question. It tells you how much remains at the end of the path, after modeled costs. A strategy can have the smaller drawdown and still finish with less money.

If you invest for income, reducing equity exposure can also change the cash distributions you receive. The lab isolates market exposure and trading costs, with zero cash interest and no separate dividend income or taxes. To extend the experiment to an income portfolio, start by tracking distributions separately from account value. Then ask how much income you would trade away for a shallower decline, and how often your rule would require selling.

Research source. Haixiang Yao, Chunzhuo Wan, Ping Chen, and Lijun Li. Adaptive equity investing strategies via attention-based deep reinforcement learning. Pacific-Basin Finance Journal, volume 99, article 103284 (2026). Read the paper.

Adaptive Equity Lab

Compare two $10,000 portfolios through 12 hypothetical weeks. Each starts fully invested in stocks.


Discover more from Equations Sinkala

Subscribe to get the latest posts sent to your email.