thinkScript Q&A with Links

markos

Well-known member
VIP
thinkScript®: Q&A

http://tlc.thinkorswim.com/center/howToTos/thinkManual/charts/Useful-Tools/thinkScript--Q-A.html

What is thinkScript®?

thinkScript® is a built-in programming language that gives you the capability of creating your own analysis tools such as studies, strategies, watchlist columns, etc. In thinkScript®, you decide which kind of data to analyze with which methods. Functions present in this programming language are capable of retrieving both market and fiscal historical data and provide you with numerous techniques to process it. You are even able to combine many technical indicators in one by referencing them in your code or just using functions that represent the most popular studies such as simple or exponential moving average.

How do I learn to script?

We suggest you start with a set of tutorials we’ve prepared for you. You can find them here. Each tutorial comes with a quiz so you can check your knowledge.

If you already know how to create a script but are unsure what function or constant to use, you can go to our thinkScript® Reference page. There you can find descriptions of all the thinkScript® building blocks: functions, constants, declarations, operators, and reserved words.

How can I use thinkScript®?

There are several ways you can use thinkScript® in thinkorswim:

  1. Create your own studies. Go to Charts -> Studies -> Edit Studies… -> Create… This will open thinkScript® Editor; more information on thinkScript® studies.
  2. Create your own strategies. Strategies are technical analysis tools that, in addition to analyzing data, add simulated orders to the chart so you can backtest your strategy. Strategies can be created the same way as studies, however, they must contain the AddOrder function. This function defines what kind of simulated order should be added on what condition. To create a strategy, go to Charts -> Studies -> Edit Studies… -> Strategies tab -> Create… More information on thinkScript® strategies.
  3. Create your own watchlist columns. Available in watchlists all across the platform, this functionality calculates your custom formulas defined in thinkScript® language. More information on custom quotes.
  4. Create alerts. You can be notified every time a study-based condition is fulfilled. This functionality is available from MarketWatch -> Alerts –> Study Alert. More information on study alerts.
  5. Add conditional orders. You can automatically place or cancel an order when a certain study-based condition is fulfilled, including conditions written in thinkScript®. This functionality is available from Order Entry -> Order Rules -> gear icon. More information on thinkScript® conditional orders.
  6. Create scan queries. You can use thinkScript® in Stock Hacker to find symbols that meet your criteria, including thinkScript®-based conditions. More information on thinkScript® in Stock Hacker.
 

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