Learn To Write ThinkScript?

mikeandy

New member
I was wanting to get started writing some elementary scripts for tos. Where would you guys recommend reading some material to get started?

Thanks
 
look at every function, look at the examples, copy and paste the code in. learn how it works. change it, see what happens. read about the input parameters and learn what is expected.
do this 1000 times.

learn to use addlabel and addchartbubble
https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AddChartBubble
these will allow you to display variable values, which helps to understand what is happening.


https://usethinkscript.com/threads/fold-function-learning.16047/#post-129559
 
I was wanting to get started writing some elementary scripts for tos. Where would you guys recommend reading some material to get started?

Thanks
Bookmark this web page: https://toslc.thinkorswim.com/center/reference/thinkScript

Google search and YouTube: "thinkscript"

Look at the bottom of this thread you started in the section: Similar threads
1722965481176.png
 
I was wanting to get started writing some elementary scripts for tos. Where would you guys recommend reading some material to get started?

Thanks
Here's what I did (as a non-coder...) -

I took my favorite indicators and looked at the code to discern what they were actually doing.

I started with looking through the code, then adding labels using the

AddLabel() function (AddLabel() links to the page for the function in the online thinkscript "manual" - you'll see a lot of drop downs on the left side of the page..)

For me, this was a pretty non-intrusive way to look through code and determine how to see more detail.

As I started to get used to some basic labels, I started writing my own "def" statements to get more precise information.

As an example, I was looking at the stochastic and MACD indicators. I was making labels that would simply display whether the indicator was in a bearish or bullish position. It's kinda fun thinking back to this time period because those things felt like a stretch at the time but the lessons learned from doing still serve me well to this day. Again, I hadn't attempted any coding at all until ThinkScript, so, trust me - If I can, anybody can lol.

AssignPriceColor() and AddChartBubble() came next along with AddCloud().

I'm sure there are others I'm either missing or haven't landed on myself that will let you study your scripts, then try to display information from them.

Also look at trying to code your favorite indicators with your colors of choice by default in your code. You know, those indicators you load on your chart and change in the settings window.....Code your color choices and line styles in.

There are a TON of helpful people here especially when you can demonstrate you've put some effort in.
 
personally i started with simple scans and looked at other examples online and the official thinkorswim center (someone linked above) and kept playing with the code and as time went on i learned a little bit more each time and next think i knew i accidentally learned thinkscript. my advice would be to just sit there and play around with it till you get the results you want. if you get stuck you can always ask.
 

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