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.

FamilyIndicatorsWhat it summarizes
TrendMoving averages (SMA, EMA)The average price of the last N periods
MomentumRSI, MACD, stochastic, CCIHow strong the recent move has been
VolatilityATR, Bollinger bandsHow much price moves
Trend strengthADXHow 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.

Figure 1. The delay of indicators on a real low: low at 4,370.58 on 28 May; the close above the EMA 20 comes after 2 candles (4,484.17), the RSI above 50 after 3 (4,499.72), the MACD after 4 (4,497.85), the average crossover after 15 (4,538.93).Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 26 May 2026 04:00 UTC to 4 Jun 2026 08:00 UTC.
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.

WhenWhatPrice
26 May 2026 04:00 UTCEMA 204,547.64 → 4,485.83
26 May 2026 04:00 UTCEMA 504,549.46 → 4,501.66
28 May 2026 04:00 UTClow4,370.58
28 May 2026 12:00 UTCcloses above EMA 204,487.33
28 May 2026 16:00 UTCRSI above 504,517.50
28 May 2026 20:00 UTCMACD crosses4,502.39
30 May 2026 16:00 UTCEMA 20 above EMA 504,543.13

Times in UTC.

Figure 2. The same low seen with the MACD (12, 26, 9): the upward crossover between the line and the signal comes four candles after the low, at 4,497.85.Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 26 May 2026 04:00 UTC to 4 Jun 2026 08:00 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.

WhenWhatPrice
28 May 2026 04:00 UTClow4,370.58
28 May 2026 20:00 UTCMACD crosses the signal4,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 pivotFires before the next pivotMedian delay (25th-75th)Move already made, ATR (25th-75th)
Close beyond the EMA 20188 out of 244 (77%)1 candle (1-4)1.83 (1.19-3.24)
RSI crosses 50108 (44%)3 candles (2-6)2.35 (1.44-3.66)
MACD crosses the signal89 (36%)5 candles (3-7)2.41 (1.57-3.88)
EMA 20 crosses the EMA 5020 (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

  1. Write the indicator's formula and parameters and what counts as a signal.
  2. Count all the signals in a history, not just the ones you remember.
  3. Measure what price does afterwards, with a control on any candle.
  4. 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?

Chart exercise. Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 26 May 2026 04:00 UTC to 4 Jun 2026 08:00 UTC.
Read the chart in words
WhenWhatPrice
28 May 2026 12:00 UTCPoint A4,487.33
28 May 2026 04:00 UTCPoint B4,370.58
28 May 2026 20:00 UTCPoint C4,502.39
28 May 2026 16:00 UTCPoint D4,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.