ThinkScript Custom Code - Fall Cleaning and Change Management

diazlaz

Well-known member
2019 Donor
VIP
Hi Everyone,

So.. I made a decision this afternoon, to save off ~600 custom scripts I've accumulated and built over the last 2 years and deleted all custom code from the platform. I found myself with duplication of code, various versions, unmanaged, unclassified and decided to go thru all the code and start cleaning up and classifying the code and scripts to make better use and structure my strategies, trading plans and backtest.

Curious has anyone else done this? 600+ has become difficult to even understand what I have. how do you all manage this from becoming a mess and managing change and awareness to the code you have?

I want to start leveraging devops processes, and start putting all my ideas and development into backlog, and start working thru it in a prioritized order.

Any recommended practices or ideas you all use please share. I will certainly share as I being this journey.

So thinking of 2 ways of managing the code so far, comments always welcome:

1) Currently using a mindmap software and saving off snippets of code in the text field such as:

Z7wy9vA.png


2) Leverage Visual Studio Code + GitHub to manage scripts.
 

Attachments

  • Z7wy9vA.png
    Z7wy9vA.png
    265.6 KB · Views: 252
Solution
This is a great question. Thank you for bringing it up. I was facing this problem awhile ago when I was messing with code conversion and trying to keep track of all the custom indicators that I was able to put together.

What I'm currently doing:
  1. For coding, I start with Visual Studio
  2. Then I plug the code into the default ThinkorSwim editor for debugging
  3. Once the indicator is finished, I upload it to a private Github repo.
Github is extremely useful because I can keep track of all the revisions and make notes of changes. I can also create different folders for completed indicators, WIP (work in progress), and "broken" indicators (lol).

Note: I'm not a native developer, so this process might not be the best solution :)
This is a great question. Thank you for bringing it up. I was facing this problem awhile ago when I was messing with code conversion and trying to keep track of all the custom indicators that I was able to put together.

What I'm currently doing:
  1. For coding, I start with Visual Studio
  2. Then I plug the code into the default ThinkorSwim editor for debugging
  3. Once the indicator is finished, I upload it to a private Github repo.
Github is extremely useful because I can keep track of all the revisions and make notes of changes. I can also create different folders for completed indicators, WIP (work in progress), and "broken" indicators (lol).

Note: I'm not a native developer, so this process might not be the best solution :)
 
Solution

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

Great idea here. I think Github would be great. I have a pro account and would gladly host the new repo. I started this for myself at https://github.com/korygill/technical-analysis but then kind of migrated to this site, but navigating and comparing all the different indicators is cumbersome sometimes, and it's very hard to easily compare similar indicators. So I am with @diazlaz and @BenTen here that this might be a good way to organize things (and also expose scripts for other languages like TradingView, back testing with Python or PowerShell, and more). Great thread.

I should also add that this would not diminish this site, but rather enhance it. Instead of posting code here, we could point to github for code, and the articles around things can still be here, and maybe also in readme.md (markup) documents too.

Curious to learn what others think.
 
Last edited:
Yeah quite a difficult task. There is also the other thing - indicator and code tracking is great. but really indicators without tuning to specific timeframe as part of system are quite useless ( I mean we are not really doing it just for pretty charts are we?) . So there is backtesting of specific settings and signals. Personally I just track it for me personally in excel spreadsheet and save as complete layouts in thinkorswim.
 
A yearly archive and throw out all the junk. The archives have painted a picture of my journey through the years.
Great suggestion. As I review all my legacy code, I'm classifying, recreating new scripts in TOS, tagging and archieve older code and keeping it as code outside the platform for future evaluation.
 
Thanks for all your suggestions. If anyone has any good meta data or tagging organization for code classification please share.

At some point during the upcoming holidays will see if I can write a small tutorial on how to use visual Studio code and git to manage thinkscript.
 
Hi all.

This is my first post here. I'm also new. I found this wonderful community looking for studies that could help me on this stocks journey.

The Auto Fib Indicator caught my attention: https://usethinkscript.com/threads/auto-fib-fibonacci-levels-indicator-for-thinkorswim.14/ and it's a great script. I then continue reading on the post and found some other people reporting a few issues I also had, those were fixed by other communities members, but kind of hard to know it if you don't go deeper into the comments. This workflow is very similar to a Release - Dev - Report - Fix - Release cycle on Github.

I'm sure having a Github organization with multiple repositories based on the actual Forum structure would be nice, also having folders per script type or something similar. We could set a workflow which requires approval by another member (maybe VIP members from here?) when changing community script. This would create a changelog and a commit (with the diff) to also confirm if a wrong behavior (bug) was introduced in a previous contribution, after testing different versions. Maybe also a private repository for VIP members or Staff users (as an example).

I collaborate, contribute and manage a few open source projects on Github, and I'd be more than glad to help you setup an organization and also set an standardized workflow.

Here's my Github profile if you'd like to contact me through those channels https://github.com/gustavovalverde
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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