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.
| Measure | Window | The question | «Trend» value | «Range» value |
|---|---|---|---|---|
| Efficiency ratio (ER) | 48 candles | How straight did the price go? | High (close to 1) | Low (close to 0) |
| Variance ratio (VR) | 96 candles, q = 4 | Do 4-candle moves vary more or less than 4 times one-candle moves? | Above 1 | Below 1 |
| Hurst exponent (H) | 240 candles | How does the size of moves grow with duration? | Above 0.5 | Below 0.5 |
| ADX | 14 periods | How 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.
- 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.
- 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:
| Measure | 10th percentile | Median | 90th percentile | Median in random series (5th-95th) |
|---|---|---|---|---|
| ER (48) | 0.03 | 0.14 | 0.34 | 0.15 (0.13-0.17) |
| VR(4) over 96 | 0.74 | 0.96 | 1.26 | 0.97 (0.94-1.00) |
| Hurst over 240 | 0.44 | 0.50 | 0.56 | 0.49 (0.48-0.50) |
| ADX (14) | 14.9 | 26.0 | 43.9 | 26.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.
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.
| Pair | Correlation on real data | On random series (5th-95th) |
|---|---|---|
| ER - ADX | 0.63 | 0.60 (0.53-0.66) |
| VR - Hurst | 0.39 | 0.37 (0.18-0.53) |
| ER - Hurst | 0.25 | 0.17 (0.08-0.29) |
| ER - VR | 0.26 | 0.16 (0.04-0.27) |
| Hurst - ADX | 0.26 | 0.13 (0.00-0.22) |
| VR - ADX | 0.23 | 0.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?
| Measure | In «trend» (threshold) | Random | In «range» (threshold) | Random |
|---|---|---|---|---|
| ER | 15% (above 0.3) | 15% | 37% (below 0.1) | 34% |
| VR | 26% (above 1.1) | 31% | 37% (below 0.9) | 38% |
| Hurst | 15% (above 0.55) | 22% | 15% (below 0.45) | 25% |
| ADX | 53% (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
- Write which measure you use, on which window and with which threshold: they are three parameters.
- Prefer the relative threshold to the fixed one, unless you have data that justify the latter.
- Compute the measure only on candles that have closed up to that moment.
- Compare the distribution with that of a random series before giving the thresholds a meaning.
- 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
- Choose the measure, the window and whether the threshold is fixed or relative.
- Compute the distribution on your candles and on random series.
- Write how often the measure says «trend» and «range».
- 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.