Indicator details / description block

KingsOp

New member
When you build an indicator is there a bit in the coding that would allow you to include a description of the indicator, its functions, and options as you designed them to work? The default indicators in TOS all have a description of that sort and I'd like to be able to write one and code it into the settings area where changes to parameters can be made. Thank you in advance for your assistance.
 
you can add comments in the code by using # as the first character of a code line, followed by your words to describe the code.

------------

you can use #hint to add a clickable '?' , that will open a message window. some html formatting is allowed.

if #hint is not followed by a variable name , then the ? Will appear next to the study name when looking at a list of studies.

if #hint is followed by a variable name AND a : the ? will appear in the edit studies input screen.

ex.
input startTime = 820;
#hint startTime: start time in EST 24-hour time

#hint can be placed after a code line. i put the example above on a new line to make it easier to read.

https://tlc.thinkorswim.com/center/...pendices/Appendix-C---Customizing-Study-Hints

https://jshingler.github.io/TOS-and-Thinkscript-Snippet-Collection/TOS & Thinkscript Collection.html#add-info-bubbles-to-a-study-or-a-study-s-inputs

-------------

assert
display the ! in top left corner of a chart, when assert() checks a condition that is false.

clicking on ! will display one or more error messages. I tend to overlook and miss these, so I never use it. If I check a condition, then I would have a label display a message in a bright color.

https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Others/Assert
 
Last edited:

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