OPEN-SOURCE SCRIPT

Per-Candle High-Low Box + Midline

262
Draws a translucent box from each candle’s high to low over a configurable lookback, plus a dotted horizontal line at the midpoint (high + low) / 2.

Each box extends indefinitely to the right so prior candle ranges stay visible as price develops. Midlines use a long finite extension so the dotted style renders correctly.

Inputs

Lookback bars — how many recent candles get a box and midline
Midline extend (bars) — how far the dotted midlines reach into future space
Colors and line width for boxes and midlines
Useful for seeing each bar’s range and equilibrium level at a glance, and how later price interacts with those levels.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.