Part 1: Building the timeframes · Chapter 2 of 14 · 7 min

How H4 and D1 are built

An H4 bar summarises four hourly candles: the open of the first, the high and low of the whole block, the close of the last. From the 4,865 H1 candles with the market open you get 1,270 H4 bars (3.8 candles each) and 211 D1 days (22.7 candles). The median range is $16.9 on H1, $35.3 on H4 and $95.4 on D1 (ratios 2.1 and 5.6), the standard deviation of returns 0.369%, 0.740% and 1.935%: H4 is worth double H1, as the square root of time wants.

The construction rule

Every higher timeframe is built from the smaller candles, with four numbers taken like this:

Bar datumHow it is taken
Openthe open of the first candle of the block
Highthe highest of the highs of the block's candles
Lowthe lowest of the lows
Closethe close of the last candle of the block

An example with simple numbers: four consecutive hourly candles.

CandleOpenHighLowClose
110010499103
2103107102105
3105106101102
4102103100101

The H4 bar that summarises them has open 100, high 107, low 99, close 101: a range of 8 against the 5, 5, 5 and 3 of the single candles. The bar closes at 101, one point above the open (100).

The choices that change the charts

Two H4 charts of the same instrument can differ, because the «block» depends on where you cut:

  • The start time. Our H4 bars start at 00:00, 04:00, 08:00... UTC; a broker may start at 22:00 or 23:00. A D1 bar here goes from 00:00 to 24:00 UTC; many daily charts close at 17:00 New York.
  • The daily pause. In the market hours we use (book 9) trading stops for an hour a day (17:00 New York) and from Friday evening to Sunday evening: some blocks contain three candles instead of four. Here an H4 bar is kept if it has at least two candles (average 3.8) and a D1 day if it has at least 18 (average 22.7); days with few trades are discarded.
  • The reference price. A D1 bar of «mine» and one from your broker have almost the same highs and lows, but different opens and closes.

We have not tested what changes by shifting the cut time: the book's measurements hold for these cuts.

Only the closed bar is used

An H4 bar ends at the close of its last candle. Before that, it does not exist: its high and low change with every candle. That is why, in the calculations:

  • an H1 candle is paired with the last higher bar already closed, not the one that contains it;
  • the trend indicator on the higher timeframe (chapter 4) is calculated on the closes of complete bars;
  • a D1 bar «today» is not used until today closes.

If you look at the bar in progress, the «20-bar average» moves while you look at it and a signal can appear and disappear: it is the same trap as a candle that has not closed yet.

How the measurements change

On our data:

MeasureH1H4D1H4/H1 ratioD1/H1 ratio
Bars4,8651,270211––
H1 candles per bar (average)13.822.7––
Median range$16.9$35.3$95.42.085.64
Median 14-bar ATR$18.6$38.0$103.82.045.6
Standard deviation of returns0.369%0.740%1.935%2.005.2

The square root of time (book 14, chapter 7) makes you expect 2 for four hours and about 4.8 for 23 hours. H4 is on the value (2.0), D1 a little above (5.2-5.6): a day's range and ATR also include the overnight jumps and the agitated days.

Figure 1. Ratio between the 14-bar ATR of H4 (grey) and of D1 (pink) and the 14-candle ATR of H1, at the end of each day: the median of H4/H1 is 2.0 (mean 2.1), that of D1/H1 5.6 (mean 5.8).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, two lines: a grey one oscillating near 2 and a pink one near 5-6, with peaks in agitated periods.

What it is for

  • To translate a stop from one timeframe to another: a stop at 1.5 H1 ATR is worth about $28, at 1.5 H4 ATR about $58, at 1.5 D1 ATR about $156 (chapter 10).
  • To choose the size of a target: a day's typical movement is 5.6 times the hourly ATR.
  • To know that two charts are «not the same»: comparing with your broker, expect small differences in highs and lows and bigger ones in closes.

What to do

  1. Write how your timeframes are built (start time, market day, pauses).
  2. Use only closed bars in calculations and signals.
  3. Do not confuse the ATRs of different timeframes: H4 is worth about double H1, D1 about 5-6 times.
  4. Check the differences with your broker before replicating results.
  5. Declare that the results hold for your cut.

Procedure in four steps

  1. Choose the cut time and the minimum number of candles per bar.
  2. Build the bar: open of the first, high and low of the block, close of the last.
  3. Pair every small candle with the last closed higher bar.
  4. Check range and ATR against the base timeframe (ratios 2 and 5-6).

Exercises

Chapter exercises

1. Four hourly candles: (100, 104, 99, 103), (103, 107, 102, 105), (105, 106, 101, 102), (102, 103, 100, 101) in order open, high, low, close. What are the H4 bar's high and low?

2. With the same candles, what is the H4 bar's close?

3. The hourly ATR is $20. What do you expect, roughly, for the 14-bar ATR of D1 (median ratio 5.6)?

4. Why is an H1 candle paired with the last closed H4 bar and not the one that contains 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.