Triple 3 Inside Bars Indicator and Scanner for ThinkorSwim

@luicius In that case, I think I would set it as
Code:
def start = 1800;
def end = 1700;
I don't know how the EXT Hours checkbox applies to futures though. My best guess is to leave it checked
 
There are traders who only trade certain stocks and was wondering is there a way to only run the script on certain symbols like APPL, NFLX, TSLA, AMD, FB, BYND, and BABA?
 
There are traders who only trade certain stocks and was wondering is there a way to only run the script on certain symbols like APPL, NFLX, TSLA, AMD, FB, BYND, and BABA?
make a watchlist with those names and run the scan refer to it.
 
Hey folks, new trader here.

I'm also very interested in the 3BP. Although if you scan for the pattern as described above in its complete form you're actually missing the correct entry point. According to the video he says that entry point is the moment the trigger bar or last bar reaches the level of the narrow bars. Does anyone know how to tweak the script to look for the entry igniting bar(s) then 2 or 3 narrow bars. I guess if the scanner picks it up I would have to watch and wait to see if the last entry bar becomes an entry bar.
Thanks
 
@leo2022
Near the top of my scan code there is a place where you can choose the minimum to scan for:
Code:
# CHOOSE SCAN MODE #
# ( 1 = Ignitor Bar , 2 = Pause Bars , 3 = Trigger Bar )
input scanMode = 3;

Just change the 3 to a 1 or 2 to change the mode
 
@leo2022
Near the top of my scan code there is a place where you can choose the minimum to scan for:
Code:
# CHOOSE SCAN MODE #
# ( 1 = Ignitor Bar , 2 = Pause Bars , 3 = Trigger Bar )
input scanMode = 3;

Just change the 3 to a 1 or 2 to change the mode

Thanks :)
 
@Len20

Would you please be able to give a little more details for the variables?
I am trying to fully understand what each one controls. (Maybe marking up a picture of a 3BP)

input trigger_Bar_Low_Min = {default "Official", "Relaxed"}; # Trigger bar low min based on pause bars low (official), or pause bars minimum
input Show_During_Uptrend = no; # Strict pattern not supposed to be in middle of uptrend
input uptrend_Limit_Perc_Inc = 1.0; # Only used if Show_During_Uptrend = no (Still signal if uptrend is below % entered)
input uptrend_LookBack = 10; # Only used if Show_During_Uptrend = no
input prev_High_LookBack = 30; # Ignitor bar must break previous period high
input avg_Vol_LookBack = 10; # for qualifying ignitor bar
input avg_Range_LookBack = 10; # for qualifying ignitor bar
input ignitor_Range_Spike_Perc = 200; # Minimum ignitor range % relative to avg range (200% = 2x avg range)
input ignitor_Vol_Spike_Perc = 100; # Minimum volume % relative to avg volume
input pause_Low_Min_Perc = 45; # Pause bars low min % of ignitor bar range (50% = middle of ingitor bar, lower is looser)
input pause_High_Min_Perc = 80; # Pause bars high min % of ignitor bar range (90% recommended, lower is looser)
input pause_High_max_Perc = 110; # Pause bars high max % of ignitor bar range (110% recommended, higher is looser)

Thank you for your amazing work and answering questions!!!
 
Last edited:
@BenTen hey is there any way to scan it like open/close is greater or less then 'study' for breakout trade and have it pop on the watchlist
thanks
 
Remember there is more to the 3/4 bar play than developing the indicator, as per Jarret Live traders. His concept works most of the time. I played with some coding, i'm no expert, but I tinkered with the basic concept and had trouble with meeting some of the Official criteria such as the 1st "above avg" wide bar not being in the middle of a trend. If you can get this to work with the SwingArms - bingo.


Also Jared uses support and resistance which is important with the 3 and 4 bar play....
 
Thanks!

Really useful and impressive indicator!

Yes I have been trading with it the last few days and plan to create some updates or feedback for the community after I publish it as a strategy or possibly with further alerts. I did notice a few minor things (which can maybe be adjusted from settings, I need to review further)... on one of the charts today I noticed because the engulfing bar had a high wick it wasn’t triggering it and according to Jared on one of his videos he includes bar 1 with full wick, so maybe something to look at

If it would be helpful and it’s not already posted I can include some screenshots or a short video on how to turn this into either a strategy or a scan... at the moment I have my setup include a couple scans / watchlists and one that is so specific based on unusual volume to send me an alert. One scan for daily bull or bear confirmed , one scan for potential daily bull or bear, and the others are combined for 15 or 5 minute bull or bear.

Chad
 
Is there any way I can setup a scanner to scan for stocks in this setup in the picture?

MxjFjV5.png
 
@GeneHo:

You can determine the first hour of the day like this:
Code:
input OpenBell  = 0930;
input OpenHour = 1030;
def FirstHour = if SecondsTillTime(OpenHour) > 0
                   and SecondsFromTime(OpenBell) >= 0
                   then 1
                else 0;
and then use the FirstHour variable in your conditional statement wherever you wanted with:
Code:
def whatever = if FirstHour == 1 and whatever_other_conditions_you_need then ... else...

hope that helps.

-mashume
 
I use something similar but enable ability to also close out EOD for backtesting with our indicators. This is good if you don't want backtesting or to see indicators sometimes at the beginning of the day when its very chaotic :) Also sadly all backtesting for our indicators shows we shouldn't have been closing EOD the last six months haha :)

Code:
#Added by Chad Nash Oct 2020 www.nashtech.xyz
#Only enter trades between not extended hours
def CloseAllCondition = SecondsTillTime(1558) == 0;
def EOD = if SecondsTillTime(1558) == 0 and SecondsFromTime(1558) == 0 then 1 else 0;

input UseTimeFilter = Yes;
input rthopen = 0931;
input rthclose = 1555;
def RTH = if usetimefilter == yes then if SecondsFromTime(rthopen) >= 0 and
               SecondsTillTime(rthclose) >= 0
            then 1
            else 0 else 1;

input rthopen_EOD = 1545;
input rthclose_EOD = 1559;

def RTH_Last5MinBar = if usetimefilter == yes then if SecondsFromTime(rthopen_EOD) >= 0 and
               SecondsTillTime(rthclose_EOD) >= 0
            then 1
            else 0 else 1;


#End Updates by Chad... Only thing to check is if RTH (regular trading hours) is true to enter trades.

You just check for variables RTH = true and if you want also use backtesting and want to see positions closed out EOD reference that boolean RTH_Last5MinBar
 
Last edited by a moderator:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
533 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top