Skip to main content How To Import A ThinkScript Study Into ThinkOrSwim (Step-by-Step) Skip to main content Skip to content
Master the TTM Squeeze with our comprehensive 19-module course Start Learning →
TOS Indicators
  • Tools

    Categories

    • Indicators
    • Backtesters
    • Scans
    • Dashboards
    • thinkScript
    • Member Resources
    Browse Full Library

    Featured Tutorials

    Heiken Ashi Trend Indicator
    Heiken Ashi Trend Indicator
    Indicators

    Download our Custom Heiken Ashi indicator for ThinkOrSwim. Full ThinkScript code, formula...

    Learn more →
    Commodities Tracker
    Commodities Tracker
    Indicators

    For acceleration signals: trend-following strategies and buying pullbacks. For deceleration signals: short...

    Learn more →
    Build an Election Backtester in 10 Minutes
    Build an Election Backtester in 10 Minutes
    Backtesters

    Learn how to create a Post-Election Backtester in ThinkOrSwim to analyze market...

    Learn more →

    Popular Posts

    Unusual Volume
    Unusual Volume
    Scans

    Build 4 scans to easily find stocks with greater than...

    Learn more →
    Upcoming Earnings with High Short Interest
    Upcoming Earnings with High Short Interest
    Scans

    Build a scan to find stocks that are likely to...

    Learn more →
    Unusual Volume Pro Scans
    Unusual Volume Pro Scans
    Scans

    4 additional scans to find unusual volume overlapping with key...

    Learn more →
  • Courses
    Squeeze Course
    Squeeze Course
    19 Modules

    Scan, backtest, and trade the TTM Squeeze setup with precision.

    Unlock Course →
    Earnings Course
    Earnings Course
    3 Modules

    Master earnings plays with free indicators and proven strategies for ThinkOrSwim.

    Unlock Course →
    V-Shaped Reversals
    V-Shaped Reversals
    7 Modules

    Identify and trade powerful V-shaped reversal patterns with confidence and precision.

    Unlock Course →
    Fibonacci Trading
    Fibonacci Trading
    4 Modules

    Learn to trade Fibonacci retracements and extensions in ThinkOrSwim effectively.

    Unlock Course →
  • Products
    Futures Volatility Box Premium
    Futures Volatility Box

    Volatility models for 10 major futures markets, including micros & SPX.

    Explore Futures VB →
    Stock Volatility Box Premium
    Stock Volatility Box

    Dynamic support & resistance for 595+ stocks/ETFs, with a live scanner.

    Explore Stock VB →
    Opening Range Breakouts Premium
    Opening Range Breakouts

    Powerful live scanner & backtester for ORB strategies on 595+ stocks.

    Explore ORB Setups →
My Account
Back to Tutorials
Beginner-Friendly 9 mins ThinkOrSwim

How to Import a ThinkScript Study into ThinkOrSwim

Three ways to load custom code into ThinkOrSwim: import a shared study link, share a full workspace, and paste raw ThinkScript from the web.

Table of Contents
  • The Three Ways to Load Custom Code into ThinkOrSwim
  • Method 1: Import a Study from a Shared Link
  • Method 2: Share Your Own Study or Workspace
  • Method 3: Paste Raw ThinkScript Code from a Website
  • Why This Matters

One of the most useful (and underrated) features in ThinkOrSwim is the ability to load custom scripts that other people have written. Imported studies, shared workspaces, and code pasted from the web let you extend the platform far past what the default install gives you. This tutorial covers all three methods: importing a study from a shared link, sharing your own studies and workspaces, and pasting raw ThinkScript code from a website. By the end you will know exactly which method to use and how to get the code into ThinkOrSwim in under a minute.

The Three Ways to Load Custom Code into ThinkOrSwim

Before we get into the steps, it helps to know which method fits which situation.

Method 1: Import a shared link. Someone sends you an http://tos.mx/...-style link. You paste it into ThinkOrSwim and the study installs itself. Easiest and most common.

Method 2: Share a workspace. A workspace bundles your entire layout: charts, scans, watchlists, sidebar panels, all of it. Useful when you are moving between computers or when someone wants your exact setup, not just one indicator.

Method 3: Paste raw code from the web. You found a ThinkScript snippet on a forum or site like usethinkscript.com and want to drop it into your platform manually. Three more clicks than Method 1.

We will walk through all three.

Method 1: Import a Study from a Shared Link

This is the workflow you will use most often. Whether the link comes from a friend, a Discord, or a free-download page, the steps are the same.

Step 1: Copy the Shared Link

Get the link onto your clipboard. It will look something like http://tos.mx/abc123. Email, text, Messenger, Discord, anywhere is fine, as long as you can copy it.

Step 2: Open Setup > Open Shared Item

Inside ThinkOrSwim, click the Setup menu in the upper-right corner. In the dropdown, select Open shared item.

Step 3: Paste the Link and Preview

A small dialog opens with a black entry box and an example URL beneath it. Click into the box and paste your link. Hit Preview on the right. ThinkOrSwim shows you what is about to be imported, including the name the original author gave the study.

Step 4: Rename (Optional) and Import

If the auto-generated name is something generic like “ThinkScript Study for May 12,” rename it to something you will recognize later. Then click Import. ThinkOrSwim confirms the import with a small notification.

Step 5: Add the Study to Your Chart

Click the studies icon at the top of the chart panel. In the search box on the left, start typing the name of the study you just imported. It will appear in the results. Select it, click Add selected, then OK. The study is now active on your chart.

Method 2: Share Your Own Study or Workspace

Sometimes you are on the other side: you have a custom study or a finely-tuned workspace and you want to send it to someone else (or to yourself, on another computer).

Sharing a Single Study

Click the studies icon, find your custom study in the list on the left, and right-click it. In the dropdown, select Share. A dialog appears with a default name (usually the date). Rename it if you want, then click Share.

A small popup at the top of the screen shows the generated link. It disappears quickly, but do not panic. The link is already on your clipboard. Paste it into an email, message, or wherever you need it.

Sharing a Whole Workspace

Workspaces capture your entire platform layout: the sidebar panels, watchlists, news feed, custom chart studies, every tweak you have made to the default install. To share one, open the Setup menu in the upper-right and click Share workspace.

Same flow as a study share: a dialog appears with a default name, you can rename it, then click Share. The link lands on your clipboard automatically.

Loading a Workspace on a New Computer

If you ever switch computers or need access to your setup on the road, this is gold. Personally, I email a workspace link to myself. To load it, paste the link into Setup > Open shared item, hit Preview, then Import. To activate it, click Setup again and the new workspace will be listed at the bottom of the menu. Click it, confirm, and your platform is identical to wherever you saved it from.

Method 3: Paste Raw ThinkScript Code from a Website

Plenty of useful scripts live on community sites and forums as plain code, not shared links. Here is how to get one of those into ThinkOrSwim.

Step 1: Find and Copy the Code

Search Google for what you want. For example, if you trade futures and want a study that tells you the notional value of each contract, search “thinkscript futures notional value.” Sites like usethinkscript.com usually have a clean code block you can copy. Highlight the entire block and copy it.

Step 2: Create a New Study in ThinkOrSwim

Click the studies icon in the upper-right of your chart panel, then click Create in the lower-left of the dialog. The code editor opens with a single placeholder line: plot Data = close;.

Step 3: Paste the Code

Delete the placeholder line. Click into the empty editor, right-click, and paste. Your code now sits in the editor.

Step 4: Name and Save

At the top of the dialog, give the study a name you will remember. Something like Futures_Notional_Value beats the default. Click OK in the lower-right.

Step 5: Add It to a Chart

Same as Method 1: click the studies icon again, search for the name you just gave it, select it, click Add selected, then OK. Pull up a relevant chart (a futures contract like ES, in our example) and verify the study is calculating correctly.

Why This Matters

Once you are comfortable importing scripts, your platform stops being limited by what TD Ameritrade ships out of the box. You can:

  • Add specialized studies built by traders who solved a problem you have.
  • Move your full setup between machines without rebuilding it from scratch.
  • Test community scripts in seconds before deciding whether to keep them.
  • Share your own work with a single link instead of copy-pasting blocks of code.

If you have downloaded any of our free indicators, this same import flow is exactly how you install them. Each one ships as a shared link or a .ts file, and the same five clicks work for all of them.

How to Import a ThinkScript Study into ThinkOrSwim.ts
# Futures_Notional_Value

# Sample script referenced in the tutorial.

# Paste this into a new study (Studies > Create) to see

# tick size, tick value, and one-lot share count for any

# futures contract on your chart.


// ... 15 more lines ...

Unlock This Code

Create a free account to access the full source code and download files.

Create Free Account Login
Open ThinkOrSwim, click the Setup menu in the upper-right, and select Open shared item. Paste the shared link (it will look like http://tos.mx/...), click Preview, then Import. The study is now in your library and can be added to any chart from the studies dialog.
Open the studies dialog from the chart panel, click Create in the lower-left, delete the placeholder line in the editor, then paste your code. Give the study a memorable name and click OK. The new study will be searchable from the studies list.
Yes. Click Setup in the upper-right and select Share workspace. ThinkOrSwim generates a link that captures every panel, chart, watchlist, and custom study in your current layout. Anyone who imports it gets your exact setup. Many traders email the link to themselves so they can restore their full platform on a new computer.
Importing only adds the study to your library. To display it, click the studies icon on the chart, search for the study by name in the left-side search box, select it, click Add selected, then OK. If the name is something generic like ThinkScript Study for May 12, renaming it during import makes it easier to find.
Community sites like usethinkscript.com publish hundreds of free scripts as plain code. Search Google for what you want (for example, thinkscript futures notional value), copy the code block, and paste it into a new study in ThinkOrSwim. Our own indicator library at tosindicators.com/indicators ships every download as either a shared link or a .ts file, both of which work with the import flow above.

Useful next steps after you have the import workflow down:

  • Browse the full library of free ThinkOrSwim indicators (every one of them installs with the steps above).
  • How to Build a Heiken Ashi Trend Dots Indicator in ThinkOrSwim for a follow-up tutorial that walks through writing a study from scratch.
  • The Squeeze Course if you want a structured walkthrough of trading the TTM Squeeze using imported studies.
Featured Tools:
Stock Volatility Box

Stock Volatility Box

Spot reversal zones across 600 stocks & ETFs.

  • Hourly & daily models
  • Powerful Live Scanner
  • Built for day traders
Futures Volatility Box

Futures Volatility Box

Pinpoint reversal zones in 10 major futures markets.

  • 5 models (incl. Scalper)
  • ThinkOrSwim & TradingView
  • SPX traders
ORB Setups

ORB Setups

Find the best Opening Range Breakout setups.

  • Powerful real-time scanner
  • Instant backtests
  • 2+ years data

Get Free Access

Create a free account for downloads and new tutorial alerts.

Create Free Account

More Tutorials Like This

MTF Market Pulse

MTF Market Pulse

Beginner • 12 minutes
Edge Signals

Edge Signals

Beginner-Friendly • 14 mins
Adv. Covered Call Calculator

Adv. Covered Call Calculator

Beginner • 10 minutes

Ready to Trade With an Edge?

Join 40,000+ traders using institutional-grade tools for ThinkOrSwim.

Get the Bundle
TOS Indicators

Premium thinkorswim indicators, scans, and trading tools to help you trade smarter.

ThinkOrSwim Tools

  • Indicators
  • Scans
  • Backtesters
  • Dashboards
  • thinkScript
  • Browse All

Courses

  • Squeeze Course
  • Earnings Course
  • V-Shaped Reversals
  • Fibonacci Trading

Products

  • Futures Volatility Box
  • Stock Volatility Box
  • ORB Setups
  • Shop All

Guides

  • TTM Squeeze
  • Automated Trading
  • Volatility Trading
  • Opening Range Breakouts
  • Trade Reports
  • Contact Us

© 2026 TOS Indicators. All rights reserved.

Privacy Policy Terms of Service Disclaimer

The information contained on this website is solely for educational purposes, and does not constitute investment advice. The risk of trading in securities markets can be substantial. You must review and agree to our Terms of Service prior to using this site.

U.S. Government Required Disclaimer - Commodity Futures Trading Commission. Futures and options trading has large potential rewards, but also large potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures and options markets. Don't trade with money you can't afford to lose. This website is neither a solicitation nor an offer to Buy/Sell futures or options. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website. The past performance of any trading system or methodology is not necessarily indicative of future results.

Individual results may vary, and testimonials are not claimed to represent typical results. All testimonials are by real people, and may not reflect the typical purchaser's experience, and are not intended to represent or guarantee that anyone will achieve the same or similar results.

TOS Indicator's Traders and employees will NEVER manage or offer to manage a customer or individual's options, stocks, currencies, futures, or any financial markets or securities account. If someone claiming to represent or be associated with TOS Indicator solicits you for money or offers to manage your trading account, do not provide any personal information and contact us immediately.

CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY, SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.