Part 1: How to test an indicator · Chapter 1 of 14 · 8 min
What an indicator is and how to test it
An indicator is a number computed on past prices: four families, the book's test method (signal, outcome over 10 candles, comparison with any candle, cost) and the delay measured on 244 real highs and lows: when the signal fires, price has already made 1.8 to 4.3 ATR of a median move of 3.4.
What an indicator is
An indicator is a number computed with a formula on past prices (open, high, low, close) and, when available, on volume. It does not see the future and it adds no information that is not already in the candles: it summarizes it in a different way. The book's indicators fall into four families.
| Family | Indicators | What it summarizes |
|---|---|---|
| Trend | Moving averages (SMA, EMA) | The average price of the last N periods |
| Momentum | RSI, MACD, stochastic, CCI | How strong the recent move has been |
| Volatility | ATR, Bollinger bands | How much price moves |
| Trend strength | ADX | How much the move goes in one direction |
The book's data are the H4 and daily prices of the gold perpetual future (XAUUSDT): 1,772 H4 candles and 295 daily ones, from mid-December 2025 to early October 2026. There is no volume, so indicators that use it (OBV, VWAP, volume profile) are not measured here.
The test method
The comparison with any H4 candle gives this: over 1,730 candles, price rises first by 1.5 ATR 36% of the time, falls first 40% and neither 24%. So an "up" signal that "carries on" 36% of the time has said nothing, and a "down" one that carries on 40% neither. Margin of error of 2 points on the benchmark. Signals close in time are not independent, and the real margin is wider.
The delay, on a real case
Figure 1 shows a real low on H4, from 26 May to 4 June 2026. The low is at $4,370.58 on 28 May at 04:00 (ATR of 38.5 dollars). The indicators flag it after:
- on 28 May at 12:00 the candle closes at 4,484.17, above the EMA 20: price has already recovered 2.95 ATR;
- at 16:00 the RSI rises above 50 with a close at 4,499.72 (3.35 ATR);
- at 20:00 the MACD crosses the signal line upward with a close at 4,497.85 (3.30 ATR);
- on 30 May at 16:00 the EMA 20 crosses above the EMA 50 with a close at 4,538.93 (4.37 ATR).
In the next 30 candles the high is 4,594.83. The indicator warns when a large part of the move has already happened.
Read the chart in words
H4 gold chart from 26 May to 4 June 2026 with the 20-period exponential moving average (blue line) and the 50-period one (dashed pink line) and, below, the 14-period RSI with the 30, 50 and 70 levels. Labels mark the low and the bullish signals, which fire after price has already risen.
| When | What | Price |
|---|---|---|
| 26 May 2026 04:00 UTC | EMA 20 | 4,547.64 → 4,485.83 |
| 26 May 2026 04:00 UTC | EMA 50 | 4,549.46 → 4,501.66 |
| 28 May 2026 04:00 UTC | low | 4,370.58 |
| 28 May 2026 12:00 UTC | closes above EMA 20 | 4,487.33 |
| 28 May 2026 16:00 UTC | RSI above 50 | 4,517.50 |
| 28 May 2026 20:00 UTC | MACD crosses | 4,502.39 |
| 30 May 2026 16:00 UTC | EMA 20 above EMA 50 | 4,543.13 |
Times in UTC.
Read the chart in words
H4 gold chart from 26 May to 4 June 2026. Below, the MACD with the line (black), the signal (dashed pink) and the histogram (grey). Labels mark the low and the upward crossover.
| When | What | Price |
|---|---|---|
| 28 May 2026 04:00 UTC | low | 4,370.58 |
| 28 May 2026 20:00 UTC | MACD crosses the signal | 4,502.39 |
Times in UTC.
How large the delay is in general
Over the 244 significant highs and lows in the history (swings at 1.5 ATR on H4, 122 and 122), we look for the first opposite signal after each pivot, before the next pivot. With hindsight, because the pivot is only known after the fact.
| Signal after a pivot | Fires before the next pivot | Median delay (25th-75th) | Move already made, ATR (25th-75th) |
|---|---|---|---|
| Close beyond the EMA 20 | 188 out of 244 (77%) | 1 candle (1-4) | 1.83 (1.19-3.24) |
| RSI crosses 50 | 108 (44%) | 3 candles (2-6) | 2.35 (1.44-3.66) |
| MACD crosses the signal | 89 (36%) | 5 candles (3-7) | 2.41 (1.57-3.88) |
| EMA 20 crosses the EMA 50 | 20 (8%) | 10 candles (5-13) | 4.34 (2.56-6.08) |
The median move from one pivot to the next is 3.4 ATR (25th-75th: 2.2-5.6), in 6 H4 candles. When the fastest signal fires, price has already made 1.8 ATR as the median, more than half of a median move. The others fire after 2.4-4.3 ATR, or do not fire before the move is over.
A four-step routine
- Write the indicator's formula and parameters and what counts as a signal.
- Count all the signals in a history, not just the ones you remember.
- Measure what price does afterwards, with a control on any candle.
- Measure how much of the move has already happened when the signal fires.
Exercises
Chapter exercises
1. On the chart the letters sit on four candles around a low. Which letter is the candle in which the MACD crosses the signal line upward?
Read the chart in words
| When | What | Price |
|---|---|---|
| 28 May 2026 12:00 UTC | Point A | 4,487.33 |
| 28 May 2026 04:00 UTC | Point B | 4,370.58 |
| 28 May 2026 20:00 UTC | Point C | 4,502.39 |
| 28 May 2026 16:00 UTC | Point D | 4,517.50 |
Times in UTC.
2. What is an indicator, in the book?
3. Over 1,730 candles price rises first by 1.5 ATR 36% of the time and falls first 40%. What does a "down" signal that carries on 40% of the time say?
4. The close above the EMA 20 fires after a median of 1 candle, but price has already made 1.8 ATR of a median move of 3.4. What do you take from it?
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.