Adding permanent notes to default/locked studies and tickers

c0der

Member
1. E.g. I want to put a short note to remind myself what Stochastic means within the study itself. However, I can't edit the script to add in chart labels/bubbles. I also don't want to put it in thinklog notes as it will be an extra step. Is there an alternative way?

2. I want to store long paragraphs of text (E.g. investment thesis) on the ticker chart (again, not in thinklog notes), AND without it moving away as the chart progresses to the right. any way to do this?
 
1. i think this is what merryday was saying, copy the original TD code and paste into a new study. then you can change anything you want.

another option is to add a hint to the study or a variable.

2. don't complicate things. put your notes in text files and view them as needed. name them yy-mm-dd-symbol
or symbol-yy-mm-dd , whichever makes sense to you.

https://tlc.thinkorswim.com/center/...pendices/Appendix-C---Customizing-Study-Hints
 
@c0der Here is another spin on your idea... Considering how Thinkscript is a self-documenting scripting language, not a compiled language, any additional text within scripts uses up overhead and can essentially bog down processing of the script by the realtime parser... That is just one of the reasons why scripting languages should be written as self-documenting code rather than using short cryptic variable names - to keep things simple and relatively uncluttered... Moderate length variable names that are self-describing, yet not overly long, essentially negate the need for overly verbose comments within the script... Placing either a local path or URL to extended notes, as has been suggested, is a far better method...
 
Never thought about that, thanks @rad14733 . As a learning code scripter I thought extra remarks or comments would be helpful with debugging workflow. Did not think it would slow the processing part down. Figured things behind the # were ignored. Good to know.
 
Never thought about that, thanks @rad14733 . As a learning code scripter I thought extra remarks or comments would be helpful with debugging workflow. Did not think it would slow the processing part down. Figured things behind the # were ignored. Good to know.

I'm an old bit-fiddler from way back when every byte of code and processor clock cycle mattered and a lot of modern coders never had such concerns, yet it all still adds up in the end... Some comments are required but they should be concise, leaving the lions share of documentation up to the scripting itself... That's the beauty of scripting languages and Structured Query Languages (SQL)... Anyone who has coded in assembly language or other low level languages can attest to how cryptic they can be... I shudder to think of the volume of assembly language lines of code I wrote decades ago, amongst other lower level languages... 🤯
 

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