Labels Off with "Show Study" Unchecked(??).

Stockbug

New member
2019 Donor
VIP
#Post Title - Labels Off with "Show Study" Unchecked(??).

# Need Help.
# Does anyone know how to do something in the code so that labels in the code will stop being displayed when we UNcheck "Show Study" in the edit studies window?

# I already know how to add an Input to turn off the labels with a yes/no choice.
# I want to know how to make the labels turn off when I turn off the study by UNchecking the "Show Study" box.

# And, if it can't be done I would like some understanding why it can't be done.

#Reason.
# If I Uncheck "Show Study" I want the study to be off, and that includes the labels too.

# Test it for yourself.
# Run this script and then Uncheck "Show Study" in the edit studies window and you will see that the average plot will be gone but the label will remain.

# Or, try the experiment with any of your studies that have labels.

# Suggested Name = SB_LabelOffUNckedShowStudy_v1
declare upper;
plot Data = average(close,50);
addlabel(yes, "Label Turn Off Test--symbol = " + getUnderlyingSymbol());

#Thanks.
 
Last edited:
Solution
@halcyonguy is correct. ToS does not provide a simple check or uncheck for bubbles, labels or clouds.
But there is a workaround.
You can create a conditional label which you can set the display of labels to yes or no.

Most labels default to yes ; which displays labels always
AddLabel(yes, .........

Here is an example where "yes" is replaced with a choice to display:
input DisplayLabels = no ;
AddLabel(DisplayLabels, .........
#Post Title - Labels Off with "Show Study" Unchecked(??).

# Need Help.
# Does anyone know how to do something in the code so that labels in the code will stop being displayed when we UNcheck "Show Study" in the edit studies window?

# I already know how to add an Input to turn off the labels with a yes/no choice.
# I want to know how to make the labels turn off when I turn off the study by UNchecking the "Show Study" box.

# And, if it can't be done I would like some understanding why it can't be done.

#Reason.
# If I Uncheck "Show Study" I want the study to be off, and that includes the labels too.

# Test it for yourself.
# Run this script and then Uncheck "Show Study" in the edit studies window and you will see that the average plot will be gone but the label will remain.

# Or, try the experiment with any of your studies that have labels.

# Suggested Name = SB_LabelOffUNckedShowStudy_v1
declare upper;
plot Data = average(close,50);
addlabel(yes, "Label Turn Off Test--symbol = " + getUnderlyingSymbol());

#Thanks.

can't. that just one of the annoying things with thinkscript, disabling a study does not turn off labels and bubbles...
 

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

@halcyonguy is correct. ToS does not provide a simple check or uncheck for bubbles, labels or clouds.
But there is a workaround.
You can create a conditional label which you can set the display of labels to yes or no.

Most labels default to yes ; which displays labels always
AddLabel(yes, .........

Here is an example where "yes" is replaced with a choice to display:
input DisplayLabels = no ;
AddLabel(DisplayLabels, .........
 
Solution
@halcyonguy is correct. ToS does not provide a simple check or uncheck for bubbles, labels or clouds.
But there is a workaround.
You can create a conditional label which you can set the display of labels to yes or no.

Most labels default to yes ; which displays labels always


Here is an example where "yes" is replaced with a choice to display:
I wish the software writers were users of what they wrote:)
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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