Part 1: What is measured · Chapter 2 of 14 · 8 min

How a regime is measured

Four measures to say whether the market is trending or ranging, computed at the close of every candle on the latest candles: the 48-candle efficiency ratio (median 0.14), the 4-over-96 variance ratio (0.96), the Hurst exponent over 240 (0.50) and the 14-period ADX (26). On random series they are 0.15, 0.97, 0.49 and 26: the distributions are almost equal. The four measures correlate little (0.23-0.63), and with fixed thresholds the shares of «trend» on the real data and on chance coincide (ER above 0.3: 15% and 15%; ADX above 25: 53% and 54%).

What is measured

A regime is not observed: it is estimated with a measure computed on the latest candles. The book's measures answer four different questions, all using only the data up to the current candle.

MeasureWindowThe question«Trend» value«Range» value
Efficiency ratio (ER)48 candlesHow straight did the price go?High (close to 1)Low (close to 0)
Variance ratio (VR)96 candles, q = 4Do 4-candle moves vary more or less than 4 times one-candle moves?Above 1Below 1
Hurst exponent (H)240 candlesHow does the size of moves grow with duration?Above 0.5Below 0.5
ADX14 periodsHow strong is the directional movement?High (above 25)Low (below 20)

We look at them one by one in the next four chapters. Here we compare them.

Relative regime

A measure alone does not say «trend» or «range»: it needs a threshold. There are two ways.

  1. Fixed threshold: ER above 0.3, VR above 1.1, H above 0.55, ADX above 25. Easy, but the thresholds come from convention, not from our data.
  2. Relative threshold (the book's): the measure is above or below its median over the last 500 candles. Half the candles are «trend», half «range», and it is known at the close.

The relative threshold answers a more useful question: «is the market now more or less efficient than usual?». The first 500 candles have no regime (data are needed), and every measure has its own start-up period.

The four distributions

On 4,625 candles where all four measures are defined, and on the 30 shuffled random series:

Measure10th percentileMedian90th percentileMedian in random series (5th-95th)
ER (48)0.030.140.340.15 (0.13-0.17)
VR(4) over 960.740.961.260.97 (0.94-1.00)
Hurst over 2400.440.500.560.49 (0.48-0.50)
ADX (14)14.926.043.926.1 (24.6-27.5)

The real median falls inside the chance interval in all four cases. Gold's market, seen through these measures, cannot be told apart from a series with no trend. That does not mean there are no phases: it means the measures do not tell them apart from the noise that produces similar ones.

Figure 1. The four measures at the end of each day, as a percentile of their own series: efficiency (pink), variance (blue), Hurst (dashed grey), ADX (black). They rise and fall in a similar way but not identically.Data: gold, XAUUSDT perpetual future (real candles) · daily (D1) · from 15 Dec 2025 to 5 Oct 2026.
Read the chart in words

Daily gold chart with, below, four lines between 0 and 1 that move similarly but do not coincide.

How alike they are

The four measures are not four ways of saying the same thing.

PairCorrelation on real dataOn random series (5th-95th)
ER - ADX0.630.60 (0.53-0.66)
VR - Hurst0.390.37 (0.18-0.53)
ER - Hurst0.250.17 (0.08-0.29)
ER - VR0.260.16 (0.04-0.27)
Hurst - ADX0.260.13 (0.00-0.22)
VR - ADX0.230.09 (0.00-0.26)

ER and ADX go together (both look at recent directionality), but the other pairs correlate little. And the real correlations almost always sit inside the chance band: they are the ones two measures drawn from the same prices have anyway.

With fixed thresholds

With the «classic» thresholds, how many candles are in trend and how many in range?

MeasureIn «trend» (threshold)RandomIn «range» (threshold)Random
ER15% (above 0.3)15%37% (below 0.1)34%
VR26% (above 1.1)31%37% (below 0.9)38%
Hurst15% (above 0.55)22%15% (below 0.45)25%
ADX53% (above 25)54%27% (below 20)26%

On gold the ADX sits above 25 more than half the time, and a random series has the same share. A threshold that gives «trend» one candle in two separates nothing: we come back to it in chapter 6.

What follows

  • A regime measure is a measure of recent shape: it says how the price has been, not how it will be.
  • The four measures answer different questions and agree only in part.
  • The real data cannot be told from chance by distribution: the challenge is whether the measure changes a rule's result (chapters 9-11).
  • The relative regime is used, known at the close, with a window written in advance.

What to do

  1. Write which measure you use, on which window and with which threshold: they are three parameters.
  2. Prefer the relative threshold to the fixed one, unless you have data that justify the latter.
  3. Compute the measure only on candles that have closed up to that moment.
  4. Compare the distribution with that of a random series before giving the thresholds a meaning.
  5. Do not look for the measure that gives the regime you expect: two are enough to get opposite answers in 31-46% of candles.

Procedure in four steps

  1. Choose the measure, the window and whether the threshold is fixed or relative.
  2. Compute the distribution on your candles and on random series.
  3. Write how often the measure says «trend» and «range».
  4. Check that the measure is computed with only the data known at the close.

Exercises

Chapter exercises

1. What is the «relative» regime used in the book?

2. On hourly gold the ADX is above 25 in 53% of candles and a random series in 54%. What do you conclude?

3. ER and ADX correlate at 0.63, VR and ADX at 0.23. What does this say?

4. The ER median on real data is 0.14 and on random series 0.15 (0.13-0.17). What does it say?

Have a question or want to share your exercise?

Post in the community, or join the free signals room on Telegram.

Educational content, not financial advice. Trading involves risk.