How to backtest a trading strategy without writing code
Yes, you can test a stock trading rule on years of history without code. The fastest way is a no-code tester such as estockes Reality Check: pick a stock and a rule, and see how it did next to simply holding the stock. For rules a preset cannot express, use the TradingView strategy tester or a spreadsheet.
Three ways, side by side
| Feature | estockes Reality Check | TradingView strategy tester | Spreadsheet |
|---|---|---|---|
| Code needed | No. Pick a stock or ETF and a rule | No for built-in and community strategies. Your own rule needs Pine Script | No code, but you write and check every formula |
| Rules you can test | Five daily rules: price above its 20-day average, RSI(2) under 10, below the lower Bollinger band, RSI(14) under 30, golden cross. Long only | Any rule you can write in Pine Script, plus built-in and community strategies | Anything you can express in formulas |
| History | Up to 5 years of daily bars free, 20 on Pro | 5K bars on the free plan, up to 40K on Ultimate. Deep Backtesting (Premium and higher) runs on up to two million bars | Whatever data you download |
| Fills and costs | Signal on the close, fill at the next session's open. Commission and slippage modelled on each side | By default a market order fills at the next bar's open. Commission and slippage are strategy settings you set | You model fills and costs yourself, or leave them out |
| Compared with holding the stock | Yes, side by side on every result | Not stated on the pages we read | Only if you build it |
| Price | Free, no account needed | Free Basic plan. Paid plans from $12.95 a month, billed annually | Free, plus the cost of your data |
| Markets | US stocks and ETFs | Stocks, futures, forex and crypto worldwide | Any market you have data for |
Code needed
- estockes Reality Check:
- No. Pick a stock or ETF and a rule
- TradingView strategy tester:
- No for built-in and community strategies. Your own rule needs Pine Script
- Spreadsheet:
- No code, but you write and check every formula
Rules you can test
- estockes Reality Check:
- Five daily rules: price above its 20-day average, RSI(2) under 10, below the lower Bollinger band, RSI(14) under 30, golden cross. Long only
- TradingView strategy tester:
- Any rule you can write in Pine Script, plus built-in and community strategies
- Spreadsheet:
- Anything you can express in formulas
History
- estockes Reality Check:
- Up to 5 years of daily bars free, 20 on Pro
- TradingView strategy tester:
- 5K bars on the free plan, up to 40K on Ultimate. Deep Backtesting (Premium and higher) runs on up to two million bars
- Spreadsheet:
- Whatever data you download
Fills and costs
- estockes Reality Check:
- Signal on the close, fill at the next session's open. Commission and slippage modelled on each side
- TradingView strategy tester:
- By default a market order fills at the next bar's open. Commission and slippage are strategy settings you set
- Spreadsheet:
- You model fills and costs yourself, or leave them out
Compared with holding the stock
- estockes Reality Check:
- Yes, side by side on every result
- TradingView strategy tester:
- Not stated on the pages we read
- Spreadsheet:
- Only if you build it
Price
- estockes Reality Check:
- Free, no account needed
- TradingView strategy tester:
- Free Basic plan. Paid plans from $12.95 a month, billed annually
- Spreadsheet:
- Free, plus the cost of your data
Markets
- estockes Reality Check:
- US stocks and ETFs
- TradingView strategy tester:
- Stocks, futures, forex and crypto worldwide
- Spreadsheet:
- Any market you have data for
TradingView plans and behaviour as listed on tradingview.com/pricing, its Pine Script docs and support pages on November 14, 2026. Prices change; check their pages before you decide.
Which one to use
Use Reality Check if
your rule is one of the common daily rules and you want an answer in a minute, with costs included and the result next to buying and holding. It needs no account. It is long only and daily, so it cannot test shorts, options or intraday entries.
Use the TradingView strategy tester if
your rule is your own, or trades futures, forex or crypto. Start from a built-in or community strategy; changing the logic means editing Pine Script. It is the most flexible of the three.
Use a spreadsheet if
you want to see every number and have time to check every formula. It is the easiest place to make a silent mistake, such as using a price you could not have known on the day.
Three checks before you trust any backtest
- The rule only uses information it had at the time. A signal on today's close cannot fill at today's close. See look-ahead bias.
- Costs are in. Commission and slippage on every trade can turn a small edge into a loss. See modelling trading costs.
- It beats simply holding the stock, on more than one period. A rule tuned until it looks good on one stretch of history usually fails on the next. See popular trading rules tested against buy and hold and the rules we tested on held-back data.
A historical test describes the past; it does not predict what a stock will do. Trading involves real risk of loss.
I built estockes because every morning I ran a Finviz screen, then opened the names in TradingView, and still did not know whether the idea had ever worked. Reality Check is the answer I wanted.
Try a rule now, no account needed.
Open Reality CheckTo keep results and test 20 years, create a free account; new accounts start with 72 hours of Starter, no card. Plan details are on Pricing.