Shaved Bars is one of the price pattern indicators converted from TradingView to ThinkorSwim. It shows buying and selling pressure based on the candlestick. It checks to see if the candle closed above or at 5% of the high for the previous candle.
- Pink = Down Shaved Bars - Selling Pressure
- Cyan = Up Shaved Bars - Buying Pressure
Rich (BB code):
# WalkingBallista # Converted from https://www.tradingview.com/script/GHnJs0X8-CM-Price-Action-Bars-Price-Patterns-That-Work/ def range = high - low; input pctS = 5; def pctCs = pctS * .01; def sBarUp = close >= (high - (range * pctCs)); def sBarDown = close <= (low + (range * pctCs)); assignpriceColor(if sBarUp then Color.Cyan else if sBarDown then Color.Magenta else Color.Current);