Skip to content
All library documents

Classifying Market Regimes with Efficiency, Direction, and Structure

Article MQL5 code base

Summary

The document describes an indicator that labels market conditions as upward trend, downward trend, range, or transition. It combines price efficiency, normalized direction, volatility, market structure, and agreement across multiple horizons. An efficiency ratio compares net price displacement with total movement over a period to help distinguish directional behavior from noise. Regime strength summarizes how well the measurements support the current classification.

The indicator is presented as an analytical filter for traders and strategy researchers, rather than a source of trade signals or price forecasts. Historical visualization and hysteresis are intended to make regime changes easier to inspect and reduce rapid label switching. The text states that calculations use information available at the evaluated bar and can be applied across symbols and timeframes. It provides no performance tests or empirical results, and emphasizes that regime strength is not a probability of future movement. Its practical value therefore depends on how well the classifications fit a particular strategy and market.

Key ideas

  • Market conditions are grouped into upward trend, downward trend, range, and transition states.
  • An efficiency ratio compares net displacement with total price travel to separate directional movement from noisy movement.
  • Direction, volatility, market structure, and multiple analysis horizons contribute to the classification.
  • Regime strength reflects support for the present label and does not forecast future returns.
  • Regime labels can help researchers assess how strategies behave in different market environments.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.