Hide TrendLine

starchaser09

New member
I have several Support and Resistance lines on my chart drawn with the TOS Trendline tool. Is there a way to hide/show all of them with code? I don't want to delete them just hide them temporarily! Thank you for your input and suggestions in advance!
 
Solution
I have several Support and Resistance lines on my chart drawn with the TOS Trendline tool. Is there a way to hide/show all of them with code? I don't want to delete them just hide them temporarily! Thank you for your input and suggestions in advance!
@jphilli11 As the OP stated there is no script involved so no script that can be modified.
The ToS Trendline Tool is manually drawn.
Thinkscript does not provide us any means of writing studies that will be interactive with the platform-controlled elements such as the drawing tools or any ThinkOrSwim modules... Custom modifications are beyond the scope of the capabilities of the platform...
I’m not familiar with this tool but it should be pretty simple to do. Here are my suggested step:
1) Start by opening the source script and either save as new or manually copy and paste into a new script.
2) Save as support and resistance custom
3) open new script and add:
Input Show_Trendlines = yes;
4) find the plots for the trendlines add add the following to each:
Plotname.sethiding(!show_trendlines);


Now you should have an input in the settings to show or hide the plots.

Hope this answers your question.
 

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

I have several Support and Resistance lines on my chart drawn with the TOS Trendline tool. Is there a way to hide/show all of them with code? I don't want to delete them just hide them temporarily! Thank you for your input and suggestions in advance!
@jphilli11 As the OP stated there is no script involved so no script that can be modified.
The ToS Trendline Tool is manually drawn.
Thinkscript does not provide us any means of writing studies that will be interactive with the platform-controlled elements such as the drawing tools or any ThinkOrSwim modules... Custom modifications are beyond the scope of the capabilities of the platform...
 
Solution
I’m not familiar with this tool but it should be pretty simple to do. Here are my suggested step:
1) Start by opening the source script and either save as new or manually copy and paste into a new script.
2) Save as support and resistance custom
3) open new script and add:
Input Show_Trendlines = yes;
4) find the plots for the trendlines add add the following to each:
Plotname.sethiding(!show_trendlines);


Now you should have an input in the settings to show or hide the plots.

Hope this answers your question.
Unfortunately I think MerryDay may be correct. It is not a script I'm running to set the trendline but rather the thinkorswim trendline tool which i use to manually draw the line on the chart.
 
Save as a new drawing set (bottom right). Anything that is on your chart when you save the drawing set will be saved, i.e. channels, trend lines, price levels etc. After you save it you can switch back to "default" and delete the trend lines etc for a clean chart.

Alternatively you can create a drawing set before you draw the trend lines.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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