WOI
Market
S&P 500
7,297.07 -1.47%
Nasdaq 100
26,895.39 -2.59%
Dow Jones
50,760.79 -0.77%
VIX
21.67 +17.39%
Dollar Index (DXY)
104.97 +0.07%
Gold
3,770.90 +2.48%
Oil (WTI)
84.36 -3.02%
BTC/USD
46,186.79 +7.36%

Market Structure & Price Action · Illustrated reference

Market regimes

Direction, path efficiency, volatility and the uncertainty of transitions.

Read, watch or explore. No exercises, scores or required progression.

Animated explanation · synthetic observations

Regimes: displacement is not travelled distance

Smooth trend: efficiency 1.000. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.
Preserve transitional states

Smooth trend: efficiency 1.000. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.

Synthetic paths isolate direction and path efficiency. Classification thresholds are educational conventions, not WOI scanner fields. The complete reference is shown when motion is unavailable. Playback is optional.

In this reference
  1. A regime is a model’s description of conditions
  2. Separate direction, path efficiency and dispersion
  3. Thresholds create boundaries that the market need not respect
  4. High volatility and direction are separate axes
  5. Regime atlas: avoid a single-axis story
  6. A real-time label differs from a hindsight partition
  7. Use regime information as a conditional question
  8. When the classification is least informative
  9. Method attribution

A regime is a model’s description of conditions

A market regime is a classification of behavior over a specified horizon. Trend, range, high volatility and low volatility are common descriptions, but they are not mutually exclusive universal states. A market can trend while volatility rises, trend while volatility falls, or fluctuate widely without making much net progress.

The classification belongs to a rule, an instrument and a clock. It is not an objective label that every analyst must agree on. A short window can describe a local range inside a larger advance. A classification can also be uncertain, transitional or unavailable because the required observations do not yet exist.

The original WOI guide correctly emphasized context. This upgraded reference removes the implication that a binary trend/range label determines a universally best tactic. Suitability is a separate hypothesis requiring a specified method and evidence.

Separate direction, path efficiency and dispersion

Direction measures net movement. Path efficiency compares the net displacement with the distance travelled along the observed closes. Dispersion measures variability of returns. They capture different aspects of a series.

Net displacement = Pₙ − P₀
Travelled close-path distance = Σ|Pᵢ − Pᵢ₋₁|
Efficiency ratio E = |Pₙ − P₀| / Σ|Pᵢ − Pᵢ₋₁|
when the denominator is positive; otherwise report undefined

For 100 → 102 → 104 → 106 → 108, net displacement and travelled distance are both 8, so E=1. For 100 → 108 → 100 → 108 → 108, displacement is still 8 but travelled distance is 24, so E=1/3. These paths finish at the same price while describing different journeys. The ratio is bounded between 0 and 1 by the triangle inequality; it says nothing directly about future returns.

Our educational classification uses path efficiency only to illustrate the consequences of a stated rule. It is not the definition of a production WOI regime field or a fitted investment model. Historical success rates are not inferred from these constructed paths.

Thresholds create boundaries that the market need not respect

Suppose an illustrative rule calls E≥0.65 directional, E≤0.35 choppy, and values between them transitional. A change from 0.64 to 0.66 crosses the model’s threshold, not a physical barrier. The thresholds are deliberately stated rather than presented as natural constants.

A hysteresis rule can reduce repeated switching. For example, enter the directional state above 0.65 but remain there until E falls below 0.50. This makes the label depend on its prior state. It can improve stability of presentation while delaying recognition of a change. Neither outcome is automatically better; measure the tradeoff against the intended use.

A flat path has zero travelled distance, so the efficiency ratio is undefined under our convention. Calling it zero would mix an absence of movement with a path that travels and returns to its start. It is reasonable to give flat or unavailable data its own explicit state.

High volatility and direction are separate axes

A smooth sequence of large positive returns can be strongly directional. A sequence of alternating positive and negative returns can have substantial dispersion with little net movement. A low-volatility range can also exist. “Trending” and “volatile” should therefore not be forced into opposite ends of one scale.

Specify whether volatility means close-return standard deviation, a true-range measure, or something else. A gap-sensitive measure and a close-only measure can disagree for a legitimate reason. A rolling percentile adds a reference distribution and lookback; its rank is relative to that distribution, not a universal level of risk.

See returns, volatility and drawdown for the calculations. A low recent value does not bound the next gap or the future maximum loss.

Regime atlas: avoid a single-axis story

Smooth trend

Smooth trend: efficiency 1.000. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.
Smooth trend: efficiency 1.000. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.

Noisy advance

Noisy advance: efficiency 0.333. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.
Noisy advance: efficiency 0.333. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.

Range

Range: efficiency 0.000. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.
Range: efficiency 0.000. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.

Transition

Transition: efficiency 0.231. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.
Transition: efficiency 0.231. This describes the selected window; it is neither a probability nor a forecast. Flat paths require an explicit undefined state.

The atlas contrasts smooth directional movement, a noisy advance, oscillation with little displacement and a transition. The last case is especially important: a window containing both an earlier advance and a later decline can yield an intermediate summary that describes neither segment particularly well.

A label should not erase the underlying chart. Show the measurement, its window and its uncertainty. When neighboring windows disagree, recording the disagreement is more honest than inventing a confidence percentage.

A real-time label differs from a hindsight partition

An analyst can look at an entire year and partition it into a rise, range and decline. The turning dates in that explanation may depend on observations that arrived later. A real-time classifier at a given close can use only the completed prefix available then.

Recalculating the entire past with today’s tuned thresholds is not a faithful record of past classifications. Store the original outputs or reconstruct them with the rule and data vintage that were available. Revised prices, adjusted history and changed universe membership can alter retrospective labels.

Overlapping windows also share observations. One hundred daily labels based on a long rolling window do not provide one hundred independent descriptions of unrelated market episodes. Statistical uncertainty should reflect the dependence relevant to the study rather than treating the label count as the effective sample size.

Use regime information as a conditional question

A research question might ask whether a breakout definition behaves differently across previously measured volatility states. Compare all eligible events under the same outcome, horizon, costs and universe. Do not define a favorable regime by selecting the periods in which the breakout strategy already performed well.

Adding a regime filter changes which opportunities are admitted. Report the resulting coverage as well as the outcomes of selected cases. A filter can make a conditional success rate look better while removing too many opportunities, increasing turnover or concentrating exposure.

A model trained to predict a regime label may accurately reproduce the label without creating investment value. If the label itself is a transformation of lagged price, predictive accuracy needs a comparison with simple persistence and a separate assessment of decision usefulness.

When the classification is least informative

Boundary values, short histories, mixed sessions, missing data and abrupt transitions deserve explicit caution. A detector can be mathematically correct yet unsuitable for a particular horizon. Slow rules tend to retain old context longer; fast rules react sooner but can switch repeatedly.

Common mistakes are tuning the regime after seeing strategy returns, reporting only the best regime, interpreting transitional as a data error, and assuming that all indicators agreeing means independent confirmation. Maintain an UNKNOWN state where inputs or definitions are unavailable.

Continue with fixed-zone interactions, line breaks versus structural change, or different observation horizons.

Method attribution

The path-efficiency construction is associated with Perry Kaufman’s efficiency ratio and adaptive moving-average work; see Smarter Trading (1995). The TA-Lib implementation reference, reviewed 3 December 2026, documents its convention for a flat window. This chapter deliberately reports the mathematical 0/0 case as undefined rather than adopting that implementation’s value of 1. The illustrative regime thresholds are WOI educational examples, not Kaufman’s recommended trading rules.