HorizonAI
IndicatorFree

Higher Timeframe Candles Overlay

The Higher Timeframe (HTF) Candles indicator is a powerful visualization tool that overlays higher timeframe candlesticks onto your current chart. See the bigger picture without switching timeframes. Essential for multi-timeframe analysis and a great base to customize with HorizonAI.

Full Source Code
Build on with HorizonAI

What's Included

HTF candle overlay
Customizable timeframe selection
Transparent/solid candle options
HTF open/close levels
Works on any chart timeframe
Non-repainting

How Higher Timeframe Candles Overlay works

Higher-timeframe candle overlays draw the candlesticks from a larger interval directly on top of your current, lower-timeframe chart. If you are trading on a 5-minute chart, for example, the overlay can render the hourly or daily candles in the same view so you never lose sight of the bigger structure while you execute on the smaller one.

Each overlaid candle preserves the four values that matter most from the higher timeframe: the open, the high, the low, and the close. Those levels frequently act as reference points, so seeing them plotted against live price helps you understand whether the current higher-timeframe candle is being bought up, sold off, or stalling near its own open.

The value is context without chart-switching. Instead of constantly flipping between timeframes and losing your place, you keep a single execution chart annotated with the surrounding framework, which makes multi-timeframe alignment far easier to maintain in real time.

When to use it

  • Executing entries on a low timeframe while staying anchored to higher-timeframe trend and levels.
  • Judging whether the current HTF candle is bullish or bearish while it is still forming.
  • Locating higher-timeframe open, high and low levels that often behave as support or resistance intraday.
  • Confirming that a lower-timeframe setup agrees with the dominant higher-timeframe direction before committing.

When it's not the right tool

  • As a signal generator on its own, since it only visualises context and does not tell you when to enter or exit.
  • When too many timeframes are overlaid at once, which clutters the chart and obscures the price action you are trading.
  • On very illiquid instruments where higher-timeframe candles are sparse or gap heavily and lose reliability as reference levels.

Source Code Preview

Get the full PineScript v6 source code—use it as a foundation and build on top of it with HorizonAI.

htf-candles.pine
1//@version=6
2indicator("Higher Timeframe Candles Overlay", overlay=true)
3// ─────────────────────────────────────
4// Higher Timeframe Candles Overlay - Full Source Code
5// ─────────────────────────────────────
6
7// Input Settings
8pivotLen = input.int(5, "Pivot Length")
9showLabels = input.bool(true, "Show Labels")
10
11// Core Logic
12pivotHigh = ta.pivothigh(high, pivotLen, pivotLen)
13pivotLow = ta.pivotlow(low, pivotLen, pivotLen)
14
15// Structure Detection
16var float lastHigh = na
17var float lastLow = na
18
19if not na(pivotHigh)
20 lastHigh := pivotHigh
21 // ... more logic
22
23// Break of Structure
24bosUp = close > lastHigh

200+ lines of source code

Sign up for free to access the full source code

Get Free Access

Frequently asked questions

Why not just switch to the higher timeframe when I need it?

You can, but switching interrupts your read of the execution chart and makes it easy to miss the moment you were waiting for. Overlaying the higher-timeframe candles keeps both perspectives in one view so alignment checks are instant.

Which levels from the higher-timeframe candle matter most?

The open, high, low and close are the key reference points. Price reacting at the HTF open or reclaiming the prior HTF high or low often marks meaningful decision zones that lower-timeframe traders can build setups around.

Can I display more than one higher timeframe at once?

Conceptually yes, and with HorizonAI you can tailor which timeframe is overlaid. In practice, one or two well-chosen higher timeframes usually give enough context without overwhelming the chart.

Get access to all 23+ scripts

Full source code, alert templates, and the perfect base to build on with HorizonAI. Join 10,000+ traders.