let me intoduce you order block boxes. The idea is find the that within the right side count of candles achieved some percentage change and in that way filter out important . Once the is found and matches the condition then from the left side of first candle that is up candle for high and down candle for low, could be also the candle itself is selected and rendered high and low of that candle. The premise behind is that those are the levels profesional traders are buying.
It has two settings that you can change at your will, it also enables hide/show particular 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.