let me intoduce you pivot boxes. New features of pinescript that allows to render boxes enabled to highlight pivot zone. Range high or low is defined by pivot high or low and rangeLow and RangeHigh are defined by close of following candle.
It has two settings that you can change at your will, it also enables hide/show particular pivot setting
Hope you will enjoy as I enjoyed to write it.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.