Chapter 23 · Market Regime
Why does the same strategy profit last year but keep losing this year?
- Skills to practice
- Research EdgeRecognize failure
- 3D simulation
- Macro control room · Macro knobs(planned)
Market scene
Lin likes the year's aggregate result. Separating trending, ranging, and stressed periods reveals profit concentrated in one environment. He wants to enable future rising periods directly, forgetting that future labels are known only afterwards.
Your decision
How will you use environmental information without leaking future labels into the past?
Observe the result
The same strategy runs across four synthetic environments. Each starts with independent capital and no position; results are not a mechanical decomposition of one continuous account. The generator knows labels; the strategy sees only observed prices and funding.
The mechanism
Regimes combine direction, volatility, liquidity, and participant behavior. Trends and high volatility may coexist; low volatility is not low risk. Define identification before testing conditional performance.
Hindsight labels support explanation. Tradable classifiers must read only past information and include hysteresis, mistakes, and switching costs. Closing and reopening at transitions is not free. Selecting new optimal parameters for every regime adds attempts and needs independent validation.
What it is called
Real markets
Chapter 19 distinguishes momentum from reversion mechanisms; do not assume identical favorable regimes.
Chapter 14 shows depth changes. Price labels do not replace liquidity checks.
Chapter 18's feedback shows regimes involve participant constraints too.
Hands-on
- Keep defaults and record four segments' returns, drawdowns, and costs.
- Enable the available-funding condition and compare; generator labels are not strategy switches.
- Produce a table of applicability, identification times, mistake costs, pauses, and independent validation plans.
360 synthetic daily bars with seed 42, not historical performance. Initial $10,000; each entry uses 50% of equity, no rebalancing while held, exit at final close. Equity exhaustion is checked at opens/closes and negative equity retained.
- Net return
- 9.38%
- Maximum drawdown at closes
- 15.63%
- Closed trades
- 44
- Net win rate
- 52.27%
- Final equity (USD)
- 10,937.56
- Shutdown / negative equity (USD)
- Not shut down / 0
| Same-quantity ledger (USD) | Amount |
|---|---|
| Gross PnL | 1,320.78 |
| Fees / slippage / impact | 183.33 / 91.66 / 0 |
| Net funding paid (negative means net received) | 108.23 |
| Net PnL = gross − all costs | 937.56 |
Gross PnL is reconstructed using the same actual quantities and reference prices; it is not a separate zero-fee strategy. Costs affect later equity and quantities. A fixed impact parameter does not estimate book capacity. Funding may be received net.
| Retrospective generator segment | Index range | Net return on independently reset capital | Drawdown | Total net costs paid (USD) |
|---|---|---|---|---|
| Rising segment | [0, 120) | 11.34% | 1.75% | 120.35 |
| Choppy segment | [120, 220) | -7.05% | 9.73% | 123.05 |
| Falling segment | [220, 320) | 3.76% | 3.19% | 73.03 |
| Stress segment | [320, 360) | 2.05% | 11.69% | 64.96 |
These labels come from the generator and are invisible to the strategy. Each segment starts with independent capital and uses preceding data for warm-up. This is not attribution of the full curve; a retrospectively selected best segment is not an identifiable live regime.
Edits exist only on this page and clear on refresh. Copy or download promptly.
Course versionV1-docs; sourcep3:report:backtest-report.md;Chapter 23 / TRD-STRAT-005
Records parameters and results at the click only; does not mean the experiment passed.View snapshot to save
Change one variable
Three depths
- FoundationWhy does the same strategy profit last year and keep losing this year?Chapter 23
- AdvancedHow can a Regime Model adjust or pause strategies in different conditions?Advanced C · Systematic and quantitative trading
- InstitutionalHow should a portfolio adjust strategy capital and risk budgets by regime?Institutional
- 3DAdjust rates, liquidity, inflation, the dollar, and risk appetite to observe regime shifts.Macro control room
Ask where losses occur and whether they are bearable, not only whether average profit is positive.
Freeze identification/switch rules, test OOS, and record mistakes, delays, and costs.
Continue the project: produce regimes from then-visible information only.
Regime-based budgets must stress simultaneous portfolio exits. Predefined governance governs pauses/restarts; see Advanced F.
Continue the project: require approvals for regime-driven risk/capital changes.
Questions to take away
Chapter self-test
No. Build a separate rule using only then-known information.
No. Volatility measures amplitude; direction is a separate dimension.
No. Each starts with independent capital and flat positions here.
No. Selection, costs, counts, and independent testing remain relevant.
One idea to take away
Markets shift between trends and ranges, high and low volatility. A strategy has an edge only in suitable regimes.
Record this learning session
Read means only that you confirm reading this chapter. Self-tests are your assessments against reference conclusions. Neither certifies mastery or professional level. Each click retains a timestamped local record.
Answer the core question and record a self-assessment
Why does the same strategy profit last year and keep losing this year?
Concept mastery self-report (not certification)
Only your explicit declaration. Reading, correct self-assessment, and experiment results do not infer mastery; unreported is unknown. Revocation restores unknown and removes selected attachments.
Bull market:Not read
Bear market:Not read
Trend:Not read
Range:Not read
High volatility:Not read
Low volatility:Not read
This chapter's self-report has not been read. No report does not imply mastery.
Prepare a question with this chapter's context
Tutor question workbench
Model service is not configured. Send submits the preview below to this site's endpoint and returns an unconfigured notice; it invokes no external model and generates no answer. Provider, runtime location, and retention remain undecided.
Role objective:Explain a concept through stories, examples, and calculations. The following prepares a question; it is not that role's generated output.
Foundation Chapter 23 · TRD-STRAT-005 v1.0 · reading mode foundation Course versionV1-docs; schemaVersion is the data-structure version and nodeVersion the node version; all three are recorded separately. Reading mode is not self-reported Level.
Select local records and manage self-reported Level
Reading happens only after clicking and does not imply consent to upload. Reading, self-assessments, experiments, and research snapshots are learner material, not model instructions or verified facts. Do not include keys, identity details, or real account information.
Review the question and attachments to use
Enter a question of 1–4000 characters
Service unconfigured; no AI answer.
Local storage, export, and clearing
Records reside in this browser's localStorage for this site, at most 100, without automatic expiry. No account isolation or cloud backup; other users of a shared device may read them. Edit in one tab: concurrent writes may overwrite. Export promptly. Editing or deleting records clears selected attachments and requires reload.
Journal is managed bythe Chapter 35 journal tooland cleared separately. Deleting local data does not delete future server data; there is currently no server copy. Storage rejection will not be reported as success. Copy this page's preview.