Skip to main content
Track Mean reversion
7 / 36
Library

1997issue C111-4

Regime-dependent long and short rules in mechanical systems

A mechanical-trading-system can hide two markets if long and short trades are scored as one book. Split the sides so trend-following and mean-reversion rules are judged under the regime that produces their signals.

  • A mechanical buy rule is testable only after every threshold, including an advance-decline-ratio of one, is read as a numeric condition that must hold for the full lookback-period.
  • Regime-dependence means long and short sides, or bullish and bearish stretches, need not share the same parameters or the same test results.
  • A long-short-split-test evaluates long trades and short trades as separate samples instead of one combined book.
  • Trend-following and mean-reversion logic can be judged only after the mechanical-trading-system is fully specified in executable form.
Entries in this reading3 entries

A combined book can hide two markets

A mechanical-trading-system is a fully specified set of entry, exit and abstention rules that can be tested as one procedure. That single procedure still has two sides. A reader asked whether mechanical tests should be run separately for long and short positions because up and down markets are often described as having distinct structure.

Editorial reading: one rulebook can hide two markets when long and short trades are scored together. A long-short-split-test treats each side as its own sample. Trend-following enters and holds with the prevailing directional move and should be judged where that move produces the entry. Mean-reversion fades an excursion toward a reference level once that excursion is defined by rules, and should be judged where the defined excursion produces the fade. Regime-dependence is the name for that split.

Read every threshold as a number

A published mechanical buy rule used an advance-decline-ratio that had to be greater than or equal to the numeric value one on every day of a stated lookback-period. Clarifying that rule required reading one as a threshold value, not as a label, so the condition is an advance-decline-ratio at or above 1 for the entire lookback.

Readers asked for implementations of published rules in more than one programming environment. That request shows a mechanical-trading-system is only testable after its logic is fully specified in executable form.

Equal oscillator bands do not imply equal sides

The same letter noted that most oscillators place overbought and oversold bands at equal distances and that many systems are tested with long and short rules applied together. That letter argued a market with a long-term upward bias would likely need different parameters for long positions than for short positions.

Editorial reading: symmetric oscillator bands and a combined long-short book assume the two sides share structure. The letter’s upward-bias point is a reason to drop that assumption and run a long-short-split-test.

A pattern is not a rule until it can be run

Encoding chart formations as a single software line was described as difficult because pattern identification, marking and projection resist reduction to one simple coded rule.

Editorial reading: until identification, marking and projection are written as executable conditions, a chart formation is not yet a mechanical-trading-system, and neither a trend-following nor a mean-reversion reading of it can be tested under a stated regime.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
7 of 36 in the Mean reversion track
20021-5 pp.Next on Mean reversionA same-session pair book with a morning-fixed volatility envelopePairs-trading is written here as a market-neutral book: a long in one stock and a short in a related stock opened together, so the wager is on relative displacement rather than market direction.
All readings on this track · 36 readings
  1. 1986A futures fade as one range, order, and secrecy procedure
  2. 1992Constructing the mass-index range-reversal procedure
  3. 1993Switch trend following and mean reversion with an equity-curve filter
  4. 1994Evaluating weekly trend-following and mean-reversion timing rules
  5. 1996Dual-horizon bands for a precious-metals cash switch
  6. 1997Constructing a moving regression oscillator
  7. 1997Regime-dependent long and short rules in mechanical systems
  8. 2002A same-session pair book with a morning-fixed volatility envelope
  9. 2004Combining noncorrelated trend and reversion systems
  10. 2004Failed-breakout overlays on trending markets
  11. 2004Rank rotation after a path split, then Robustness testing
  12. 2004Range-bound tape as a filter for trend and oscillator rules
  13. 2005A moving-average short pullback that is only in scope in a decline
  14. 2006Constructing an adaptive price zone from a double-smoothed range
  15. 2007Two-period relative strength index versus a one-week universe baseline
  16. 2008Building ETF mean-reversion entries with a two-bar washout
  17. 2008Rebuild a short-period stochastic as a premier stochastic oscillator
  18. 2008A three-market regime map for equity bounces and dollar cycles
  19. 2009Option trade adjustment as one testable procedure
  20. 2010Implied volatility as a May 2010 market-regime lab for the S&P 500
  21. 2011Treat a large one-day move as a classified event
  22. 2011Long-call exits, volatility regimes, and spread assignment
  23. 2011Pairing same-horizon oscillators with a walk filter
  24. 2012Two-bar band extreme entries with trailing stops
  25. 2012An eight-month average as a monthly gate for high-yield bonds
  26. 2014Complete the checklist before the trade
  27. 2014Coded rules should face one test, not a kinder sample
  28. 2015Build a mean-reversion basket from one correlation path
  29. 2015Index dip reversion is horizon and regime dependent
  30. 2016Treat the end of a trend as a handoff, not a broken system
  31. 2017A testable half-swing pullback for trend continuation
  32. 2017Evaluating four swing detection rules for mean reversion
  33. 2018Intraday breakout and mean reversion as one rule set
  34. 2018Evaluating rare consecutive-close mean-reversion entries
  35. 2020Moving-average baselines, price vetoes, and mean reversion
  36. 2020Two-dimensional FX scaling for trend and reversal systems
All 43 readings tagged Mean reversion
Also on Mean reversion5 readings