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

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

Get access to all 23+ scripts

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