How do you backtest a trading strategy without coding?
Updated October 27, 2026
Describe the strategy in plain English, and a no-code backtester runs it against historical market data and returns growth, Sharpe ratio and drawdown. There are three routes: plain-English studies in QuantGPT, your own AI (Claude, ChatGPT, Cursor) connected over MCP, and visual rule builders. Each one skips the Python.
- What are the three ways to backtest without code?
- How does a no-code backtest work on SPY?
- What makes a backtest result worth reading?
- Which no-code backtesting route fits which job?
- Where do you start?
- Questions
What are the three ways to backtest without code?
- Plain-English studies in QuantGPT. Type the idea, such as "buy SPY when it closes above its 200-day average, otherwise hold cash." QuantGPT runs it on decades of US data and returns the result in seconds.
- Your own AI, connected over MCP. Connect Claude, ChatGPT, Cursor, Grok or another MCP client to QuantGPT at
https://terminal.quantgpt.co/mcp: Claude and ChatGPT sign in to QuantGPT, and other clients send an MCP key from your account page. Ask for a backtest in conversation, then ask for a change and run it again. Step by step: connect your AI. - Visual rule builders. Tools such as TrendSpider's strategy tester let you build entry and exit rules visually, from indicators and chart conditions, with no code, and test them on historical data.
How does a no-code backtest work on SPY?
Step 1. Write the idea in one sentence
Backtest holding SPY only when it closes above its 200-day moving average, otherwise cash. Compare with the S&P 500 total return.
Step 2. Set the parameters
- Universe: SPY.
- Rule: hold SPY while its close is at or above its 200-day simple moving average, otherwise hold cash, checked at each month-end close.
- Benchmark: the S&P 500 total return (the index SPY tracks, before SPY's fee).
- Window: January 1998 to August 2026, 344 months, each held to the next month-end close.
The call QuantGPT made: run_backtest with tickers ["SPY"], the filter px_vs_sma200 >= 0, top_n 1, cash_as_holding true, monthly, from 1998, benchmark $SPXTR.
Step 3. Read the result
Every QuantGPT backtest returns one of three findings:
- Beat the benchmark on both growth and Sharpe, and did not fall behind after the split: DATA VALIDATED.
- Beat it on one of the two, or on both over the whole window but behind on both after the split: TRADE-OFF.
- Neither: NO EDGE.
| Strategy | S&P 500 total return | |
|---|---|---|
| Growth (CAGR) | 8.97% | 9.38% |
| Sharpe ratio | 0.88 | 0.66 |
| Max drawdown | -23.0% | -50.9% |
| Finding | TRADE-OFF |
The rule beat the S&P 500 total return on Sharpe, not on growth: a TRADE-OFF. It held cash in 87 of 344 months, and cash earns nothing in this engine. The returns are gross of costs; at 10 bps per side the strategy's CAGR is 8.68%.
Step 4. Change one thing and run it again
Swap the 200-day average for the 50-day average, or add a second ticker. The rerun takes seconds.
What makes a backtest result worth reading?
- Delisted companies are in the data. Companies that later delisted are in the data from 1998: 12,816 of the 13,193 US companies that delisted since then (97%) can enter a market-wide backtest; before 1998 only companies that survived have prices.
- Fundamentals use filing dates. A number is used from the day it was published. Where the vendor's filing date is missing or too early to be real, about 9% of quarters, it is estimated from the company's usual reporting delay, never set to the quarter's end.
- The split is visible. Results are checked across an early and a later period (before and from 2015, unless you pick another year), which is what separates DATA VALIDATED from TRADE-OFF.
- Costs are stated. Returns are gross, and every result carries a cost table at 5, 10, 25 and 50 bps per side.
Which no-code backtesting route fits which job?
| Tool | How you state the rule | Best fit |
|---|---|---|
| QuantGPT | Plain English, or your own AI over MCP | Testing an idea fast against long US history, with delisted companies in the data from 1998, and the Strategy Library of 175 documented strategies, 55 of them runnable in one call |
| TradingView | Pine Script strategies on its charts (code) | Testing strategies written in Pine Script on its charts |
| TrendSpider | A visual rule builder | Chart-pattern and indicator rules without code |
Where do you start?
Open the Strategy Library: 175 documented strategies, 55 of them runnable in one call. Pick one and run it, or type your own idea.
QuantGPT is $49 a month and QuantGPT Pro $149 a month, each with a 3-day trial and a card up front. QuantGPT Business is custom, from $1,499 a month. Start your 3-day trial.
Questions
Can you backtest a trading strategy without coding?
Yes. Describe the strategy in plain English and a no-code backtester runs it against historical market data and returns growth, Sharpe ratio and drawdown. In QuantGPT you type the idea, or ask your own AI connected over MCP; visual rule builders such as TrendSpider's strategy tester build the rule from indicators and chart conditions instead.
What data does QuantGPT use?
US market data: daily prices for US stocks and indexes, S&P 500 index levels from 1928, fundamentals joined by the date each quarter was filed, and precomputed factors, refreshed every night. Companies that later delisted are in the data from 1998: 12,816 of the 13,193 US companies that delisted since then (97%) can enter a market-wide backtest; before 1998 only companies that survived have prices.
Does QuantGPT place trades?
No. QuantGPT is the research layer, the hosted compute and the software. It never recommends trades, manages money, holds funds or places orders. On QuantGPT Pro, QuantGPT Cloud hosts the member's own code, which trades in the member's own brokerage account.
How much does it cost?
QuantGPT is $49 a month and QuantGPT Pro $149 a month, each with a 3-day trial and a card up front. QuantGPT Business is custom, from $1,499 a month.
What is a backtest?
A backtest runs a trading rule on past market data as if it had been followed at the time, and reports what it returned: growth a year, the Sharpe ratio, the worst fall from a peak and every period's return.
Can I use Claude or ChatGPT to run backtests?
Yes, once it is connected to a backtest engine. Add QuantGPT at https://terminal.quantgpt.co/mcp: Claude and ChatGPT sign in to QuantGPT with no key to paste, and other MCP clients, such as Cursor, send an MCP key from your account page. Then ask in plain English; your AI calls run_backtest and gets back growth, the Sharpe ratio, the drawdown and the finding. Step by step: quantgpt.co/learn/connect-ai-to-stock-data.
Related
- LearnConnect Claude or ChatGPT to stock market data
- ComputeMCP server for backtesting
- DataThe research warehouse
- Strategy libraryThe Strategy Library
Not investment advice. Past results, gross of costs unless stated. The disclosures and terms govern.