The Use of AI with ThinkOrSwim Scripts

I’ve been creating financial dashboard models and scripts, and from my experience, one LLM is never enough if you care about accuracy, logic, and security.

AI can help a lot, but I would not trust one model by itself. I set up a loop or bridge so one model builds or reviews the script, then another model checks it against the goal, logic, errors, and possible security issues.

For example, if I use Claude or Claude Code to build something, I’ll run it through ChatGPT or Codex to verify it. The model that writes the code should not be the only one reviewing it.
 
I’ve been creating financial dashboard models and scripts, and from my experience, one LLM is never enough if you care about accuracy, logic, and security.

AI can help a lot, but I would not trust one model by itself. I set up a loop or bridge so one model builds or reviews the script, then another model checks it against the goal, logic, errors, and possible security issues.

For example, if I use Claude or Claude Code to build something, I’ll run it through ChatGPT or Codex to verify it. The model that writes the code should not be the only one reviewing it.
Hi Art,
Long investor-trader, I'd ask about the reviewing code on another network apart. Isn't that laborious and defeating the difference in the AI modeling. It seems the outputs build on all the data exchange and coding produced, (Warp speed Captain), and singular AI data bases collectively code, so about flip-flopping between - is that degraded script? Some ultra-scripted monitoring indicators will grab the total chart, you can't add any lower. The Suite of CarbonStation monitoring studies may and can lead to predictions, [never works].
2026-07-15-TOS_CHARTSA.png

DYODD
 
? Best Ai to build /modify Thinkscript indicators?
I cant write code and dont have time to learn.
I've tried a few. What works best?
 
Well hello .Greg. and welcome if I may say.

That will depend on your initiative to program script into working code. Being mindful the direction you may be biased to trade, a person's personal trade-technique should dominate the scripts to the trader's routine. That is, what are you seeking to find using the AI to write?

I've only worked with a narrow range of AIs, learning subtle differences which were changing as AI development keeps moving ahead. The primary AI I chose wrote codes to picture a market as it moves, colorful first attempt, so I was shaken with losses. Instead, eventually, the fifth one (ChatGPT) was using data within the intricate folds of script! Coding indicators and monitoring using "AI" type scripted results that worked.

Add here, DYODD, don't think these indicators and monitors can predict. They can not and will not. What may be the next step, to have AI to trade - maybe? So, back of your first choice, which one is going to be the best for you? Its worth time to learn a little about the methods the AI uses to analyze and use technical data. Look at the code as it works in open markets. Patience is good. Its not a race though at times it does run.

To see some of the codes I have, search in my history. See where I started. I can always appreciate a suggestion to write another version.

Welcome and Good Luck.
 
? Best Ai to build /modify Thinkscript indicators?
I cant write code and dont have time to learn.
I've tried a few. What works best?
AI is just a bucket of data and it's not about the best AI for code as it is How good are you at articulating your ideas into a complete road map. Without a narrow and detailed narrative of what you want the AI to build you will spend a ton of time rewriting and probably ending up with junk. You will need to deliver to the AI a complete description of your final product along with the exact measures and timeframes and boundaries. You must lay out how you want your outcome to be structured along with what you do not want. Your final product at start is a blank piece of paper and AI is a 64 color box of crayons, it is up to you to put what you want on the paper, ---sometimes asking AI to start you off with a basic script of what you are looking for (giving you a paint by numbers beginning) and go from there if you are not well versed with the makeup and strategies of technical indicators. The big point, AI is not the idea, AI is the execution.

Here is a quick example of a potential start request:
  • “Build a lower study consisting of histogram and or line plots or both, for medium time frame duration swing trading on MTF capable charts, using price participation logic. I want current-state labels in plain English, a normalized companion line that stays visually readable and in scale, and a final synthesis label that identifies whether participation confirms price, conflicts with price, or is improving. Do not use vague labels, do not collapse scale, and do not rely on clouds if they create compile issues. Ask me any questions before starting.”
 
@Adeodatus
It is not much extra work, especially if you want the best possible result.

You may assume that the latest Claude model is the strongest and will catch everything, but try testing a serious script or codebase through ChatGPT 5.6, Codex, or even DeepSeek. They will often find problems that the original model missed. When you paste those findings back into Claude, it may respond with something like, “How did I miss that?”

I use this approach regularly. One model builds the code, while other models test the logic, calculations, edge cases, and possible security issues.

Predicting future market movements is much harder. I created a pattern-recognition system that uses around ten years of historical data, Markov-based analysis, and other methods. It is written in Python and runs inside my custom dashboard, so it does not work directly with Thinkorswim.

You can build and test almost anything, but before using it for live trading, make sure it has undergone thorough testing, historical validation, edge-case testing, and paper trading. AI can help build the system, but it should never replace proper testing.
 
Most any of AI if you give them a copy of the script and a copy of the error generated they can rewrite the script in Seconds and most times it will work... and if it fails agian feed the error and he will fix it again and again until all the bugs are gone.. Will it make money for you who the hell knows... But if you are a beginner the Ai can comment every line and explain it to you in 10 year old terms meaning ever a total can get ai to make a working program including building and walking you thur all the pgms you might need to hook up and use the Schwab api or any other api for that point... They are flat assed amazing..but you still have to be the real decision maker as they just do what you ask them to do... they cannot think for you..
 

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