Black Friday: 2 years for the price of 1.Or 3 months for the price of 1. On Pro.2 d 5 hleftSee plans →
Free tool

Stock backtesting software compared

Seven stock backtesters compared from their own pages as read on 25 November 2026: the language each runs, the stock data it tests and the costs it charges if you set none. Written in Pine Script? Paste it here: a free account with no card runs it on US stocks and ETFs with 0.05% commission and 0.025% slippage charged.

Free plan · unlimited backtests · no card
Which tester runs your strategySeven stock backtesters
  • Pine ScriptTradingView, Alpha Charts
  • AFLAmiBroker
  • EasyLanguageTradeStation
  • PythonQuantConnect, Backtrader
  • C#QuantConnect
  • No code or JavaScriptTrendSpider

Taken from each product's own pages on 25 November 2026.

Paste your script

Pine v6, as TradingView has it.

Which tester runs your strategySeven stock backtesters
  • Pine ScriptTradingView, Alpha Charts
  • AFLAmiBroker
  • EasyLanguageTradeStation
  • PythonQuantConnect, Backtrader
  • C#QuantConnect
  • No code or JavaScriptTrendSpider

Taken from each product's own pages on 25 November 2026.

No one tester is best for every stock trader.

The one to use runs your strategy's language on the stock data you need and charges your costs. Pine Script runs on TradingView and Alpha Charts, AFL on AmiBroker, EasyLanguage on TradeStation, and Python on QuantConnect and Backtrader. TrendSpider builds strategies without code or in JavaScript. Two more things to check are whether the data comes with it and whether a test charges costs when you set none.

Seven stock backtesters side by side

SOFTWARESTRATEGY WRITTEN INSTOCK DATA FOR A BACKTESTCOSTS IF YOU SET NONEFREE TO BACKTEST
Alpha ChartsPine Script v6US stocks and ETFs on every plan: daily bars from 2016 on the names in its scan and about two years on other US-listed names; 1-minute bars for the last 120 sessions and 5-minute for the last 6000.05% commission and 0.025% slippage a sideYes: unlimited backtests on an account with no card
AmiBrokerAFL (AmiBroker Formula Language)From the data you bring: a vendor's feed or CSV files; it comes with a sample database of DJIA stocksCommission per trade, per share, as a percent or from a table; slippage through the trade pricesA 30-day trial with no signup; licences from $299 paid once
BacktraderPythonFrom CSV files, pandas, Yahoo Finance or Interactive Brokers, at any timeframe from ticks to yearsNo commission and no slippage unless setYes: open source under the GPL-3.0 licence
QuantConnectPython or C#About 27,500 US securities from January 1998 including delisted ones; the free plan uses minute, hour and daily barsInteractive Brokers' fee of $0.005 a share ($1 minimum, at most 1% of the trade) and no slippageYes: the free plan backtests without limit in its cloud and includes US stock data
TradeStationEasyLanguageIts own data: 1-minute stock data from January 1991 and daily from 1968 on one page, minute data 10 years or more on anotherNo commission unless set; commission and slippage per share or per tradeThe platform is free with an active brokerage account; $99.99 a month without one
TradingViewPine ScriptThe bars the chart loads: 5,000 on Basic to 40,000 on Ultimate. Daily charts show all available history. Deep Backtesting (Premium and Ultimate) runs up to 2 million barsNo commission and no slippage unless the script or its properties set themYes: the Basic plan backtests with real-time stock data from the Cboe exchange
TrendSpiderA no-code visual builder (AI can write the conditions), or JavaScriptReal-time US stock and ETF data on every plan; 2,000 to 30,000 candles a test by plan, from 2-hour bars on Standard to 1-minute on Enhanced and Advanced; daily history reaching 50 years or more on some symbolsNo fees and no slippage unless a trade cost (%) is setTrials are paid: 7 days for $19 to $49 at sign-up; plans from $82 a month

We read each product's own pages on 25 November 2026 and describe each one in its own words. Prices are the regular ones and leave out sales running that week.

What 93 stock backtests on our tester showed

We ran 14 classic strategies 93 ways on daily bars of SPY, QQQ, NVDA, AAPL and MSFT from 4 January 2016 to 23 October 2026. Each run paid 0.05% commission and 0.025% slippage a side. 44 of them made money in both periods: up to 15 March 2023 and from 16 March 2023 to 23 October 2026. 58 made money over the whole stretch.

None made more than holding the stock. The 9/21 EMA cross with a 3 ATR trailing stop (long only) made 98.24% on QQQ in the first period and 71.01% in the last third. In all it made 239.01%. Holding QQQ made 542.33%. The tester's verdict on the last third: 49 survived, 4 decayed, 31 did not survive and 9 had too few trades to judge.

9/21 EMA cross with a 3 ATR trailing stop (long only) on QQQQQQ daily · 4 January 2016 → 23 October 2026
This strategy
+239.01%
Holding QQQ
+542.33%
Trades
54
Worst drawdown
−24.87%
This strategy+239.01%
Holding QQQ, dashed+542.33%
Jan 2016Oct 2026

$10,000 after each of its 54 trades against $10,000 held in QQQ. Each trade paid 0.05% commission and 0.025% slippage a side.

Each strategy's runs are on its own page in the backtest results.

Each one from its own pages

Alpha Charts

Alpha Charts runs Pine Script v6 strategies, as written for TradingView, on US stocks and ETFs from the consolidated tape of every US exchange. Daily bars start in 2016 on the stocks and ETFs in its scan, and other US-listed names get about two years of daily bars. 1-minute bars cover the last 120 sessions and 5-minute bars the last 600. Free and paid plans test all of it.

Prices are adjusted for splits and not for dividends. A result is a price return. A test of one symbol runs on that symbol's own history. Its screener runs a strategy across today's list of US stocks. Stocks that were delisted are not in it.

A rule that fires on a bar's close fills at the next bar's open. Unless the script declares its own commission, each side pays 0.05% commission and 0.025% slippage. The last third of every run is judged on its own. Pine runs on Alpha Charts' own runtime, where a script can occasionally behave differently from TradingView. It does not connect to a broker or trade live.

Sources read on 25 November 2026: Data and methodology · Pricing

AmiBroker

AmiBroker tests trading rules written in AFL, its own formula language, at portfolio level with many symbols traded at once and no limit on the number of symbols. It is a Windows program. Mac users are pointed to Boot Camp, Parallels or VMware.

Its data comes from third-party vendors or from CSV files. Beyond a sample database of DJIA stocks it ships none. Free end-of-day downloads need its AmiQuote add-on ($99). Both editions test end-of-day bars and intraday bars from 1 minute. Tick and second bars need the Professional edition.

Commission can be a percent, an amount per trade or per share, or a tiered table. Slippage is modelled through the trade prices. It has walk-forward testing with an out-of-sample report, Monte Carlo on the trade list, and exhaustive and smart optimisers. Standard costs $299 and Professional $379. Each is paid once and comes with 24 months of upgrades. A 30-day trial needs no signup.

Sources read on 25 November 2026: Backtesting · Features · Data sources · Editions · Commission settings · Walk-forward · Prices · Licences · Trial

Backtrader

Backtrader is an open-source Python library for backtesting. It is free under the GPL-3.0 licence and installs with pip. Strategies are written in Python.

Its data feeds read CSV files and pandas data or connect to Yahoo Finance and Interactive Brokers. Bars can be any timeframe from ticks to years. The number of feeds is limited only by memory.

Commission and slippage are zero unless set. Commission can be a percent or a fixed amount. Optimisation runs a grid over the parameter values you give it and uses every CPU core by default. The latest release in its changelog is 1.9.78.123. The last commit to its repository is from 19 April 2023.

Sources read on 25 November 2026: Backtrader · Repository · Data feeds · Commission · Slippage · Optimisation · Changelog · Commits

QuantConnect

QuantConnect runs algorithms written in Python or C# on its open-source LEAN engine. Its browser IDE comes with the free plan and a desktop one with the paid plans. Its default US equities dataset covers about 27,500 securities, listed and delisted, from January 1998 at tick to daily resolution. It is free to use in its cloud. There the free plan has minute, hour and daily bars.

Prices are adjusted for splits and dividends by default. The dataset is described as survivorship bias-free. A position is closed on a delisted stock's last trading day.

Left unset, a stock trade pays no slippage. It pays Interactive Brokers' fee of $0.005 a share with a $1 minimum and a cap of 1% of the trade value. A Quant Researcher seat is $10 a month and $84 a month with the compute nodes QuantConnect recommends.

Sources read on 25 November 2026: Pricing · US equities data · Requesting equity data · Corporate actions · Fee models · Tier features

TradeStation

TradeStation's desktop platform for Windows tests EasyLanguage strategies on its own historical data. One of its pages gives 1-minute stock data from January 1991 and daily data from 1968 for companies trading then and still trading now. Another gives minute data 10 years back or more and daily data more than 30 years.

Non-professional clients with a funded stock account get real-time NYSE, NASDAQ and NYSE American data included. Without one, delayed data is included and real-time data is $3 a month per exchange.

Commission and slippage are each set per share or per trade. Commission is zero unless set. U.S. clients pay $0 commission per share on stocks and ETFs and a clearing fee of up to $0.003 a share. The platform is free with an active brokerage account and $99.99 a month without one.

Sources read on 25 November 2026: Data Network · Extended historical data · Market data pricing · Strategy costs · Pricing · Service fees

TradingView

TradingView runs Pine Script strategies on the bars loaded on its chart: 5,000 intraday bars on the free Basic plan up to 40,000 on Ultimate. Daily charts show all available history. Its history articles give AAPL daily bars from 1980 and 1-minute bars from 2000. Deep Backtesting, on Premium and Ultimate, tests up to 2 million bars.

By default, US stock charts show real-time data from the Cboe exchange at no cost. TradingView notes that it can differ from the primary exchanges, mostly on low timeframes, thinly traded stocks and extended hours. NASDAQ, NYSE and NYSE Arca real-time data is an add-on that needs a paid plan or a trial.

Charts are adjusted for splits. Dividend adjustment is a chart setting the user turns on. A strategy pays no commission and no slippage unless they are set. Commission can be charged per share, per order or as a percent. Basic is free; Essential, Plus, Premium and Ultimate are paid.

Sources read on 25 November 2026: Pricing · Strategies (Pine docs) · Bars by plan · Deep Backtesting · History depth · US stock data · Splits · Dividends

TrendSpider

TrendSpider's Strategy Tester builds strategies without code in a visual editor. AI can also write the entry and exit conditions from plain language. Strategies and indicators can also be coded in JavaScript. Its docs show how to translate Pine Script into its JavaScript. Its AI assistant can convert pasted Pine Script.

It backtests stocks, ETFs, futures, forex, crypto and OTC. Every plan has real-time US stock and ETF data at no extra cost to non-professionals. A test runs on up to 2,000 candles on Standard (bars from 2 hours), 10,000 on Premium (from 5 minutes), and 20,000 on Enhanced and 30,000 on Advanced (from 1 minute). Daily history reaches 50 years or more on some symbols.

Backtests assume no broker fees and no slippage unless a trade cost is entered as a percent. A rule that fires on a bar's close fills at the next bar's open. The performance chart has a Monte Carlo series built from 10,000 reshuffled trade mixes. Other periods are tested by hand. At regular monthly prices plans run from $82 (Standard) to $321 (Advanced). A paid trial at sign-up costs $19 to $49 for 7 days and then $89 to $349 a month. Its FAQ and refund policy say 14 days.

Sources read on 25 November 2026: Strategy Tester · Understanding the Strategy Tester · Using the Strategy Tester · Pricing · Refund and trial policy · JavaScript scripting · Pine Script translation · Monte Carlo (October 2026 changelog) · Standard plan prices · Advanced plan prices

Run your stock script free

Written in Pine Script? Paste it in the box at the top. It opens in the Alpha Charts terminal with every trade on the chart and the last third of the data judged on its own. Pick any US stock or ETF in the symbol menu. Futures traders have their own comparison in the futures backtesting software comparison.

Free account

No card, no time limit.

$0
  • Unlimited backtests, costs charged, with the out-of-sample check
  • The Pine script audit and the full trade list
  • The Pine Copilot writes and edits your script
  • 50 AI credits a day
The Alpha Charts terminal a free account opens: the Pine Copilot beside the chart

Prop Ready opens all two years of futures minute bars on a computer for $39 paid once and has 7 days money back. Pro adds the optimiser and every AI tool and has 30 days money back. See the plans

Questions

What is the best backtesting software for stocks?

The one that runs your strategy's language on the stock data you need and charges your costs. Pine Script runs on TradingView and Alpha Charts, AFL on AmiBroker, EasyLanguage on TradeStation, and Python on QuantConnect and Backtrader. TrendSpider builds strategies without code or in JavaScript. The table on this page compares them from their own pages as read on 25 November 2026.

Which stock backtesters are free?

Alpha Charts: a free account with no card tests US stocks and ETFs on daily bars from 2016 (about two years for names outside its scan) and 1-minute bars for the last 120 sessions. TradingView: the Basic plan backtests with real-time stock data from the Cboe exchange. QuantConnect: the free plan backtests US stocks from 1998 at minute, hour and daily resolution in its cloud. Backtrader is open source and reads the data you give it. AmiBroker has a 30-day trial. TradeStation's platform is free with an active brokerage account. TrendSpider's trials are paid.

Which stock backtesters include the data?

QuantConnect's data covers about 27,500 US securities from 1998 and includes delisted ones. TradeStation tests on its own historical data. TradingView and TrendSpider include real-time US stock data at no extra cost to non-professionals. Alpha Charts includes daily bars from 2016 for the stocks and ETFs in its scan and about two years for other US-listed names. AmiBroker and Backtrader read the data you bring.

Which backtesters charge trading costs if I set none?

Alpha Charts charges 0.05% commission and 0.025% slippage a side. QuantConnect charges Interactive Brokers' fee of $0.005 a share with a $1 minimum and no slippage. Until you set them, TradingView, Backtrader and TrendSpider charge no commission and no slippage. TradeStation charges no commission until you set it.

Do these backtests include dividends and delisted stocks?

QuantConnect adjusts for splits and dividends by default. Its dataset includes delisted stocks. TradingView adjusts charts for splits. Dividend adjustment is a setting you turn on. Alpha Charts adjusts for splits and not for dividends. A result there is a price return. A test of one symbol runs on that symbol's own history. Alpha Charts' screener uses today's list of US stocks.

Which ones have walk-forward or out-of-sample testing?

AmiBroker runs walk-forward tests with an out-of-sample report. TradeStation has its Walk-Forward Optimizer. QuantConnect documents walk-forward optimisation for algorithms to code. TrendSpider tests other periods by hand and adds a Monte Carlo series to its performance chart. Alpha Charts judges the last third of every run on its own. Its optimiser on Pro fits a script's inputs on earlier dates and judges them on the dates after.

Is a backtest a prediction?

No. It is what a strategy's rules would have done on past prices with costs charged. Live fills, news and your own execution differ. Read it as a test of the rules and not as a forecast.

TradingView, AmiBroker, QuantConnect, TrendSpider, TradeStation and Backtrader are their owners' names and trademarks. Alpha Charts is not affiliated with any of them. It read each one's public pages on 25 November 2026 to describe it. Alpha Charts is software for testing trading scripts and gives no investment advice. A backtest shows what rules would have done on past data. It does not show what they will do. Our methodology is in Data and methodology. Updated 28 November 2026.

Backtest stocks freeFree account, no cardPaste your script