Trader OS
Phase 4 · Strategy thinking

Chapter 23 · Market Regime

Why does the same strategy profit last year but keep losing this year?

Reading mode
Phase 4 · Strategy thinkingTRD-STRAT-005 · v1.0
Skills to practice
Research EdgeRecognize failure
3D simulation
Macro control room · Macro knobs(planned)

Market scene

Your current reading mode collapses this section.

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

Your current reading mode collapses this section.

How will you use environmental information without leaking future labels into the past?

Observe the result

Your current reading mode collapses this section.

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

Bull marketBull Market
A broadly rising environment under a research definition, with explicit horizon and classification.
Bear marketBear Market
A broadly falling environment under a research definition. Hindsight charts cannot decide past trades.
TrendTrend
Persistent direction within a specified window, not guaranteed continuation.
RangeRange
Repeated back-and-forth movement over a window; boundaries may change.
High volatilityHigh Volatility
Large changes under an explicit scale, potentially with higher costs.
Low volatilityLow Volatility
Small observed changes now, without excluding future jumps or liquidity breaks.

Real markets

Trend strategies in back-and-forth marketsStrategy research

Chapter 19 distinguishes momentum from reversion mechanisms; do not assume identical favorable regimes.

Execution under stressOrder books

Chapter 14 shows depth changes. Price labels do not replace liquidity checks.

Forced exits during declinesDerivatives

Chapter 18's feedback shows regimes involve participant constraints too.

Hands-on

LabBuild a regime applicability table25 minutesPage experiment and local text
  1. Keep defaults and record four segments' returns, drawdowns, and costs.
  2. Enable the available-funding condition and compare; generator labels are not strategy switches.
  3. 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 PnL1,320.78
Fees / slippage / impact183.33 / 91.66 / 0
Net funding paid (negative means net received)108.23
Net PnL = gross − all costs937.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 segmentIndex rangeNet return on independently reset capitalDrawdownTotal 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

IfChange strategy type only
One environment can produce different performance, still requiring mechanisms to explain it.
IfEnable only the funding condition
Opportunities and costs change; filtered profit does not establish causality.
IfIncrease regime-identification delay only
Switching may execute worse. Ideal labels cannot be applied directly.

Three depths

One knowledge nodeTRD-STRAT-005: one question at each of three depths
  1. FoundationWhy does the same strategy profit last year and keep losing this year?Chapter 23
  2. AdvancedHow can a Regime Model adjust or pause strategies in different conditions?Advanced C · Systematic and quantitative trading
  3. InstitutionalHow should a portfolio adjust strategy capital and risk budgets by regime?Institutional
  4. 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.

Questions to take away

3
What would show that I am wrong?
Predict regimes where the mechanism should appear.
7
Is there enough liquidity, and what will execution cost?
Estimate misclassification losses rather than keeping only correct labels.
10
After the outcome, how do I distinguish luck from decisions?
Record regime changes causing pause and review.

Chapter self-test

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.

Select attachments individually (at most 10; none selected by default)

No loaded records. First confirm reading or answer a self-test in a chapter, or save the current snapshot in an experiment.

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.

Manage local records and Tutor questions

On this page