Editing a strategy to run on a long watch list

VinceL

New member
Hi, I am a long time TOS client and use a Fractal based Strategy for the core of my work. The strategy study is lengthy, and I run a watch list of 98 names. Currently I must run the strategy on each name separately and note the direction and date manually.

Would it be possible to edit the strategy script to produce a column notation for the last date triggered and the direction triggered?
 
Hi, I am a long time TOS client and use a Fractal based Strategy for the core of my work. The strategy study is lengthy, and I run a watch list of 98 names. Currently I must run the strategy on each name separately and note the direction and date manually.

Would it be possible to edit the strategy script to produce a column notation for the last date triggered and the direction triggered?
It is not possible to add data fields to the ToS platform
 
Hi, I am a long time TOS client and use a Fractal based Strategy for the core of my work. The strategy study is lengthy, and I run a watch list of 98 names. Currently I must run the strategy on each name separately and note the direction and date manually.

Would it be possible to edit the strategy script to produce a column notation for the last date triggered and the direction triggered?

your words are somewhat confusing to me.
do you have a chart study,
that produces visual signals,
that you write down?

do you want to convert a chart study into a watchlist study?
so you can see all the signals, and not have to write them down to compare them?
 
Hi, I am a long time TOS client and use a Fractal based Strategy for the core of my work. The strategy study is lengthy, and I run a watch list of 98 names. Currently I must run the strategy on each name separately and note the direction and date manually.

Would it be possible to edit the strategy script to produce a column notation for the last date triggered and the direction triggered?


if a study is long and complicated, there is a chance that it may not work as a column study.

how i convert a chart study to be a column study. i make a temporary lower study, so i can see what it is doing, while i convert it and debug it.
when it seems to work, i paste it into a column study.
. create a copy of chart study
. copy the code, ctrl-A , ctrl-C
. create a new study and paste in the code , ctrl-V
. add declare lower; to make it a lower study.
.
. disable chartbubbles
. disable addlabels
. replace all of the plot functions with def
. disable plot parameters, color, dashes,..
.
. add ONE new output function.
plot (1 number)
OR
addlabel ( 1+ variable)

by disable, i mean add # in front of the code line, or change the visible paramerer to 0.
(some of these steps may not be needed, but it's how i do it).
if there are more than one output function in a column study, what is displayed may not be as expected or it may go by the 1st output function in the code.

you mentioned displaying 2 things,
trigger date and direction. so addlabel should work.
an example,
addlabel(1, date1 + "|" + dir1, color.cyan);

In a column study, the color in addlabel is the font color, not the background color.

you may want to change the color of the cell background in the column. Use something like this,
assignbackgroundcolor( if cond1 then color.green else if cond2 then color.red else color.gray );

note: it may take several minutes for a watchlist study to update.


https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AddLabel

https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AssignBackgroundColor
hal_col
 

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
464 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