The first way to use the indicator is with a short lookback period. It then will paint yellow most of the time, with red marking a sharp recent breakdown in price and green marking a sharp breakout in price. This can be used to follow the breakout, or to fade it.
The second way to use the indicator is a long lookback period. This will change the output to be colored most of the time, with small sections of yellow. The yellow indicators areas where price has not made a large move in a while, or periods of consolidation. This can then be used to plan reversal trades, or follows any new trend.
The blue line is a Rank, when this value is high, it means that breakouts are less likely to trigger, since price has been moving rapidly recently, and a relative breakout would have to be a large move. When the line is low, breakouts will trigger more easily, since price has been moving relatively slowly
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.