
BTC on 1-hour bars in the 0xArchive Terminal, 2026-10-15.
Open on a chart
Load it on BTC 1h in the terminal, then change its settings or open it in the script editor.
How it works
plot.barColor recolours the chart’s own candles. The flip labels are set on the second bar of a flip and drawn one bar back with offset: -1, so they sit on the bar where the flip began without looking ahead.
The script
trend-bars.ts