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.
Notes:
Credits:
Notes:
- Pink = Down Shaved Bars - Selling Pressure
- Cyan = Up Shaved Bars - Buying Pressure
thinkScript Code
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));
DefineGlobalColor("color1", color.cyan) ;
DefineGlobalColor("color2", color.magenta);
assignpriceColor(if sBarUp then GlobalColor("color1") else if sBarDown then GlobalColor("color2") else Color.Current);
Shareable Link
https://tos.mx/Grei9PCredits:
Attachments
Last edited by a moderator: