#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.
# 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: