OPEN-SOURCE SCRIPT
Per-Candle High-Low Box + Midline

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.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.