Shaved Bars Buy/Sell Pressure Indicator for ThinkorSwim

BenTen

BenTen

Administrative
Staff
VIP
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:
  • 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));

assignpriceColor(if sBarUp then Color.Cyan else if sBarDown then Color.Magenta else Color.Current);

Shareable Link

https://tos.mx/Grei9P

Credits:
 
Last edited:
S

San

Member
2019 Donor
@BenTen I see same kind indicator "Better Volume Custom Colors _TS ** " but this shows in volume format. This indicate can find in under volume in shared nots
 
Last edited:
zeek

zeek

Active member
2019 Donor
Just tried this one and really like it! Thanks for sharing:)
 
F

FOTM_8888

Member
VIP
Hi ben. do you have the scan for the shaved candles indicator? thank you some much! keep up the good job
 
BenTen

BenTen

Administrative
Staff
VIP
@FOTM_8888 This snippet below will add arrows to both shaved bars. You can use that with the scanner.

Code:
plot shavedbar_up = sBarUp;
shavedbar_up.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
shavedbar_up.SetDefaultColor(Color.CYAN);
shavedbar_up.SetLineWeight(1);
plot shavedbar_down = sBarDown;
shavedbar_down.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
shavedbar_down.SetDefaultColor(Color.MAGENTA);
shavedbar_down.SetLineWeight(1);
 
F

FOTM_8888

Member
VIP
Hi @BenTen, a quick question, i say chis moody videos about the pin bars,inside bars, outside bars and shaved bars, i am missing the outside bars, do you have it? thank you some much
 

Similar threads

Top