Helps determine trading range of the stock price.
Depending on the price movement direction during interval bars on the graph changing colors
Also shows averaged price range line.
study(title="Price Swing") range = high - low pcolor = close - open >= 0 ? yellow : red plot(range, color = pcolor, style = columns ) plot ( avg (range,0))