Skip to content
Trading Education

ThinkorSwim Backtesting: thinkBack, OnDemand & Custom Strategies

ThinkorSwim actually has three backtesting tools, not one. Here's what thinkBack, OnDemand, and Custom Strategies each do, where they fall short, and a no-code alternative.

ThinkorSwim backtesting explained — flat illustration of a bar-replay chart card with a playback slider and buy/sell markers.

Published September 11, 20268 min readAvinash · trading since 2020

Key Takeaways

  • ThinkorSwim actually has three separate backtesting tools — thinkBack, OnDemand, and Custom Strategies — each suited to a different job, and none of them share data with each other.
  • thinkBack tests one hypothetical trade at a time against close to a decade of historical options data; OnDemand replays the full market in a virtual $100,000 account; Custom Strategies needs thinkScript code to run a fixed rule automatically across years of price history.
  • All three ship free with the thinkorswim platform, but none of them keep a live trade journal or log a backtest next to your real trades.
  • Tastytrade's own backtesting tool (launched October 2024) is narrower — options strategies across roughly 137 symbols — but purpose-built for that one job and needs no coding.
  • Traders Journal is a no-code alternative: bar-by-bar replay across 34 instruments with daily data stretching back two decades on some forex and metals pairs, where every backtested session sits in the same journal as your live trades. Free forever, or $12/month (₹499) for Premium.
  • Ten good backtested trades prove very little on any tool — test across different market conditions before trusting a rule with real size.

ThinkorSwim backtesting isn't one tool — it's three, they don't talk to each other, and picking the wrong one for the job is an easy way to end an evening feeling far more confident in a strategy than the testing actually earned. Here's the quick answer, then the honest detail behind each one. thinkBack lets you drop into a single historical options trade and see what it would have done — pick this for a fast, one-trade "what if" check. OnDemand replays the whole market in a virtual $100,000 account so you can trade a full session as if it were live — pick this when you want real execution practice, not just a single hypothetical. Custom Strategies, built with thinkScript, runs a fixed rule automatically across years of data and hands you a report — pick this when you have an actual rule worth testing at scale, and you're willing to write or paste the code for it. Which one suits you best depends on whether you need a quick what-if, real practice reps, or a proper test of a rule.

Trader reviewing historical charts on a laptop before running a backtest.Photo by Mikhail Nilov on Pexels

The Three Ways to Backtest on ThinkorSwim

All three ship free with the thinkorswim platform — now run by Charles Schwab since the TD Ameritrade migration — no separate subscription required. Think of it less as one all-purpose tool and more like a mechanic's three separate wrenches: grab the right one and the job is quick, grab the wrong one and you'll be there a while wondering why nothing fits. Here's how they actually split the job:

ToolWhat it doesBest forCoding required
thinkBackEnter a hypothetical options or stock trade on a past date and see the resultA quick "what if I'd taken this" checkNo
OnDemandFull historical market replay in a virtual $100,000 accountPracticing execution like it's liveNo
Custom StrategiesthinkScript code generates buy/sell signals and a P&L report across years of dataTesting a fixed rule at scaleYes (thinkScript)

None of them share data with each other, and none of them remember you outside the session you're in. Worth knowing before you pick one and find it doesn't do what the other two do.

Method 1: thinkBack — Fast What-If Testing

thinkBack lives under the Analyze tab. Pick an option that was genuinely available on a past date, enter a hypothetical trade against it, and thinkorswim shows you the profit or loss for that position as if you'd actually held it — stored against close to a decade of historical options data.

It's built for one question, asked one trade at a time: "what would have happened if I'd taken this?" Good for sanity-checking a single idea. Not built for testing a rule across hundreds of setups — for that, you're already looking at one of the other two tools.

Diagram of thinkBack testing a single hypothetical trade on a past date, marked with a checkmark.

Method 2: OnDemand — Full Market Replay

Click the OnDemand icon in the top right and you're dropped into a virtual $100,000 account with the clock rewound. Move forward and backward through real historical price and time, at your own pace, and place trades with actual entries, stops, and targets — the closest thing on thinkorswim to rehearsing a live session.

Data runs over a decade deep across tick, minute, daily, weekly, and monthly timeframes. Two things catch people out: the date and time you pick has to fall inside real market hours or the chart simply sits idle, and dynamic watchlists and scans don't function in OnDemand mode. Click the OnDemand icon again to switch back to live — skip that step and you'll spend a confused minute wondering why your live account hasn't moved in four years.

Diagram of a full market replay session with a playback scrubber and a virtual funded account.

Method 3: Custom Strategies — Automated Testing with ThinkScript

This is the only one of the three that runs a fixed rule automatically instead of you clicking through trades by hand. Add a Strategy to a chart, write it in thinkScript — buy and sell conditions, defined in code — and thinkorswim overlays the signals on the chart plus a report: win rate, profit and loss, and the full trade list.

The catch is thinkScript itself. It's a real, if simplified, scripting language, and writing one from scratch means actually learning it. I've pasted a stranger's script from a forum before and called the result "backtested" — it wasn't. I'd borrowed someone else's assumptions and hoped they matched mine.

Diagram of thinkScript code generating buy and sell signals on a chart alongside a performance report.

Where ThinkorSwim's Backtesting Falls Short

We're judging each tool against the job it was actually built for, not against a journal it never claimed to be — same rule as the wrench analogy above: a wrench that's bad at hammering nails isn't a bad wrench. None of this makes thinkorswim's tools bad. A full-service brokerage platform is built for trading and options analysis, not for journaling, and it's honest to say so plainly rather than pretend that's a flaw.

But a few gaps are worth knowing before you build a habit around any of the three:

No live trade journal. thinkBack and OnDemand sessions don't get saved as journal entries with your own notes, screenshots, or tags. Whatever you learned in that replay stays in your head unless you write it down somewhere else.

Custom Strategies needs code. If your rule is as simple as "buy when price crosses the 50 EMA," you still need thinkScript to test it automatically. There's no no-code path to an automated backtest on thinkorswim.

Nothing connects to your real trades. A backtested session and the live trade you place the next day live in two completely separate places, with no shared record between them.

What About Tastytrade's Backtesting Tool?

Tastytrade launched its own options backtesting tool in October 2024, free and built into the platform for account holders — no separate purchase. It covers a narrower set than thinkorswim's three-tool spread: roughly 137 major symbols (SPY, AAPL, MSFT, NVDA, TSLA, QQQ, and GLD among them), with 10 to 13 years of historical data per symbol. You can test single-leg or multi-leg options strategies, set exit conditions like days-to-expiration or a target percentage of profit or loss, and read the results through win rate, average return, and max drawdown. Traders ran more than 200,000 backtests through it in its first week.

If the real question behind "thinkorswim vs tastytrade" is which one backtests better, the honest answer is: it depends what you're testing. Tastytrade's tool is purpose-built for one job — options strategies, no coding — where thinkorswim spreads a similar job across thinkBack, OnDemand, and thinkScript. Neither one logs your live trades either.

Candlestick chart showing a price trend a trader might review after closing a backtest session.Photo by Rafael Minguet Delgado on Pexels

Backtesting Without Code: Traders Journal

Following a strategy was never quite enough for me either. I wanted to know its normal drawdown and the conditions it quietly fell apart in — and no amount of thinkScript was going to hand me that in an afternoon.

Traders Journal takes the OnDemand idea — replay real history, trade it like it's live — and skips the coding wall entirely. Backtesting sessions run bar by bar across 34 instruments (Indian and global indices, metals and energy, forex, and crypto), with daily data reaching back over two decades on the older forex and metals pairs and a few years deep intraday, depending on the instrument. No thinkScript, no forum scripts to trust blindly. And because the journal isn't a separate product bolted on afterward, every backtested session sits in the same place as your live trades — tagged, reviewable, and not lost the moment you close the tab.

Screenshot of a live Traders Journal backtesting replay session with a $100,000 virtual balance and buy/sell controls.

thinkorswim's three toolsTraders Journal
Coding required for an automated ruleYes (thinkScript)No
Backtests saved next to your live tradesNoYes
CostFree with the platformFree forever, or $12/month (₹499) for Premium

Pick thinkorswim's native tools if you're already trading options there and just want a fast what-if on one position — thinkBack does that in under a minute, and nothing else needs installing. Pick something like Traders Journal if the rule is simple enough to not need code, and you'd rather the session end up filed next to your actual trades instead of gone the second you close the window. Neither is the wrong wrench — it depends which nail you're hitting. See how Traders Journal's backtesting works, or compare it against other options in the no-code backtesting software roundup.

Common Backtesting Mistakes (ThinkorSwim or Otherwise)

  • Ten trades prove very little, on any platform. Test across trending, ranging, and choppy stretches before trusting a rule with real size — a strategy that only survived three good months of an uptrend hasn't actually been tested yet.
  • Only reviewing the wins. If your notes only cover the trades that worked, you haven't written a backtest — you've written a highlight reel.
  • Confusing "the script ran" with "the rule is good." A thinkScript report finishing without errors tells you the code works. It says nothing about whether the win rate means anything without risk-to-reward and drawdown sitting next to it.

A backtest, on any tool, is a starting point. It's not a verdict, and it's not a substitute for the forward test before real money shows up. For the full five-step version of doing this properly, see how to backtest a trading strategy without coding.

Frequently Asked Questions

01What is thinkBack used for?

thinkBack lets you enter a hypothetical options or stock trade on a genuine past date and see what the profit or loss would have been, using close to a decade of stored historical options data. It's a one-trade-at-a-time what-if tool, not a full session replay.

02What is thinkorswim OnDemand?

OnDemand is thinkorswim's full historical market replay feature. It drops you into a virtual $100,000 account and lets you move through real past price and time, placing trades exactly as you would live. Data covers over a decade across tick, minute, daily, weekly, and monthly timeframes.

03Do I need to know how to code to backtest on thinkorswim?

Only for Custom Strategies, which requires writing or pasting thinkScript code to generate automated buy/sell signals and a performance report. thinkBack and OnDemand need no coding at all.

04Is thinkorswim's backtesting free?

Yes. thinkBack, OnDemand, and Custom Strategies all ship free with the thinkorswim platform — there's no separate backtesting subscription.

05Can I backtest options strategies on thinkorswim?

Yes, thinkBack is built specifically for options what-if testing against historical option chains, and Custom Strategies can be written in thinkScript to test options-based rules as well.

06What's the difference between thinkBack and OnDemand?

thinkBack tests a single hypothetical trade on a specific past date. OnDemand replays an entire historical trading session in a virtual account, letting you practice execution across a full day or more, not just one position.

07Does tastytrade have a backtesting tool?

Yes. Tastytrade launched a free, built-in options backtesting tool in October 2024, covering roughly 137 major symbols with 10 to 13 years of historical data each, plus customizable exit conditions and win rate, average return, and drawdown analytics.

08What's a no-code alternative to thinkorswim's backtesting tools?

Traders Journal offers bar-by-bar backtesting replay across 34 instruments, with daily data stretching back two decades on some forex and metals pairs, no scripting language required, and every backtested session kept in the same journal as your live trades. It's free forever, with Premium at $12/month (₹499).

Ready to log your next session?

Start your Traders Journal workspace and build a cleaner review habit.

Start for free