
BTC on 4-hour bars in the 0xArchive Terminal, 2026-10-15.
Open on a chart
Load it on BTC 4h in the terminal, then change its settings or open it in the script editor.
How it translates
- The user function
midpoint(n)callsta.lowestandta.highest, which keep history, so the translation makes it a factory called once per call site: each of the three calls keeps its own window. offset = shift - 1andoffset = -shift + 1become the plots’offsetoption, so the leading spans are drawn past the newest bar.- The
fillcoloured byspanA > spanBbecomes aplot.fillset each bar with that bar’s colour.
The script
ichimoku-pine.pine