Bull Flag and Bear Flag Formations for ThinkorSwim

trying to test this out but im not sure what went wrong?
i dont see the wedge drawing but the arrows are there.
any guidance on what settings should i change?

ss1.jpg

ss2.jpg
 

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

Hi Everyone, brand new to the forum and my coding experience pretty much non existent. I did a search and may have missed it, but @BenTen any tips on how I can take this code and make it into a watchlist column to alert me right when the yellow/white arrows are triggered? I have it in a column now but it is just showing a NaN in the column. I am assuming it is not formatted correctly.
 
Can anyone help me plz with the thumbs as the thumbs are not showing up in the columns just blank squares

Also do i set the column to 1min or 1d or what time frame?

here is the code:

AddLabel(yes, if Bulltrigger then "👍" else if BearTrigger then "👎" else " ", if BearTrigger then Color.dark_red else if Bulltrigger then Color.dark_GREEN else Color.ORANGE);
AssignBackgroundColor(color.light_ORANGE);
 
@axlerod It displays properly in my watchlist column - try re-copying the third code in post #1 of this thread. Watchlist timeframes are usually user preference.
 
Last edited:
@axlerod It displays properly in my watchlist column - try re-copying the third code in post #1 of this thread. Watchlist timeframes are usually user preference.
Still not working ughh.. here is a screenshot see how it shows orange bars and only 2/3 have bearflag /bull i added that because the thumbs arent working..

--- UPDATE FROM KEN --- it doesn't work on MAC apples he said.

MT8zFXR.png


If you click on the 3 bar icon at the top and click share scan can you send me the link cuz maybe that will work for me.
 
Last edited:
Hi Everyone, brand new to the forum and my coding experience pretty much non existent. I did a search and may have missed it, but @BenTen any tips on how I can take this code and make it into a watchlist column to alert me right when the yellow/white arrows are triggered? I have it in a column now but it is just showing a NaN in the column. I am assuming it is not formatted correctly.

From a blank Scan > Add a study filter > Edit > Delete the default Study > go to thinkScript editor and add the below:

Code:
NameofStudy()."Up4" is true within 2 bars or NameofStudy()."Up5" is true within 3 bars

Press OK > Associate a watch list and or Run the scan > Save

You can change the number of bars to look back from 3 to your choosing. Remember to adjust the aggregate day within the study if you need a different one as the default is set to 1 day.
 
Last edited:
@PlayTrader @BenTen That doesnt work TOS gives an error about Secondary period not allowed: Day. I had it on day 3 min 5 min etc didnt work, EDIT: So you have to set your Aggregation on the scanner before then set it on the wedge script so it wont show this error.
 
Last edited:
Wondering if the ">" arrows can be reversed in the coding and change the output to a broadening wedge from a narrowing wedge? Can it be something that simple or is it more involved?
thx
 
Hi @BenTen the watchlist is working but the "Bulltrigger then "👍" else if BearTrigger then "👎" else" thumbs up and down do not show but only shows orange coloring. Do you know why that is? Thx
 
@Rosalyn There are two different versions of the watchlist column. You're probably using the older one. Check the first page of this thread again.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
335 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