TradingView backtesting: strategy tester bar limits, deep backtesting and Pine Script by plan
TradingView backtesting is free to start and capped in a way almost nobody checks. The Strategy Tester runs on every plan, but it only sees the bars your chart has loaded, and TradingView publishes that budget as a plain number: 5,000 bars on Basic rising to 40,000 on Ultimate. Converted into time, that one number decides whether your test covers two decades or two weeks. Here is the conversion, plan by plan and timeframe by timeframe, from figures read off TradingView's own pricing page and Pine Script documentation on September 1, 2026.
- 1 THESIS
- 2 EVIDENCE
- 3 BACKTEST
- 4 RISK
- 5 VERDICT
02 EVIDENCE · FUNDAMENTALS
04 RISK · IN PLAIN ENGLISH
Sample scenarios, not a live backtest of what you typed. Past performance does not guarantee future results. Educational analysis only, not financial advice.
In short
TradingView backtesting runs through the Strategy Tester, which executes a Pine Script strategy against the bars currently loaded on your chart and reports net profit, maximum drawdown, profit factor and a full trade list. It works on every plan including the free Basic tier, so the real question is not whether you can backtest on TradingView but how much history the test can actually see. That is rationed by a single published number, listed on TradingView's own pricing table as "historical bars available": 5,000 on Basic, 10,000 on Essential and Plus, 20,000 on Premium and 40,000 on Ultimate. Because a bar budget is a fixed count rather than a span of time, the same plan buys wildly different depth depending on the timeframe you test. Using a 390-minute US equity session and 252 trading days a year, 40,000 bars is roughly 159 years of daily candles but only about 103 trading days of 1-minute candles. Put plainly: on daily bars even the free plan reaches back around 20 years, while on 1-minute bars the most expensive tier runs out before five months. Deep Backtesting exists to widen the report beyond the loaded chart, and Pine Script is required for any mechanical test, because Bar Replay is manual clicking with your own hindsight in the room. Three further limits are worth knowing before you upgrade, all documented by TradingView itself. The Bar Magnifier and the on-history-bar-tick execution setting are Premium and Ultimate only. Strategy reports preserve individual data for only the most recent 9,000 trades unless Deep Backtesting is enabled, so a high-frequency test can quietly drop its oldest trades from both the report and the downloaded CSV. And TradingView states that "Only the Ultimate plan is available for professional users", which puts any registered firm at $199.95 a month billed annually rather than on the cheaper advertised tiers. What we are, honestly: AgentTrading is a plain-English backtesting bench, not a charting platform. There is no Pine Script and no bar budget here, and nothing on this page suggests you should cancel TradingView, whose charting we do not try to match. Plans here start at $19 a month. Educational analysis only, and past performance does not guarantee future results.
Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.
SIDE BY SIDE - PRICING CHECKED SEPTEMBER 1, 2026
Every TradingView plan, and the limit that actually binds it for backtesting
One card per plan, with the September 2026 list price and the constraint that decides whether the plan can run your test. Prices are quoted monthly first, then the cheaper annual rate TradingView labels a special price. One oddity worth recording while you compare: TradingView's pricing page displays four paid tiers, but the Product and Offer structured data embedded in that same page declares five, including an "Expert" plan at $119.95 a month under the SKU pro_expert that the visible comparison table does not show. We report the discrepancy rather than resolving it, and we do not suggest you can buy a tier the pricing table does not offer.
| Tool | Best for | Price (September 1, 2026) | The honest limitation |
|---|---|---|---|
| TradingView Basic | Finding out whether a daily-bar rule is worth pursuing at all | Free | 5,000 bars, no minute history, and no Bar Magnifier. |
| TradingView Essential | Daily and hourly testing with a workable indicator count | $14.95/mo, or $12.95/mo billed annually | 10,000 bars and 180 days of minute history, but the bar cap binds first. |
| TradingView Plus | Chart work rather than deeper backtests | $34.95/mo, or $29.95/mo billed annually | Same 10,000 bars as Essential. The backtest depth does not improve. |
| TradingView Premium | The first tier where intraday backtesting becomes defensible | $69.95/mo, or $59.95/mo billed annually | 20,000 bars. Still about 51 trading days on 1-minute charts. |
| TradingView Ultimate | Anyone who is a professional user, whether they want this tier or not | $239.95/mo, or $199.95/mo billed annually | 40,000 bars, and tick data capped at 7 days. |
| AgentTrading | Testing a plain-English rule on daily bars without writing code | From $19/mo | No charting, no intraday, no execution. |
Prices are the vendors' public list prices, checked September 1, 2026, and vendors change them. Verify current pricing and capabilities with each vendor before you buy.
TradingView Basic
Finding out whether a daily-bar rule is worth pursuing at all
Genuinely more useful for backtesting than most people assume, and the reason is the arithmetic above: 5,000 bars is about twenty years of daily candles, which is a longer window than many paid research tools give you. If your rule is a daily-bar swing or trend rule, the free plan will test it across roughly two decades and you do not need to pay TradingView anything. The real walls are elsewhere. You get two indicators per chart, three active price alerts, no minute-level history, and you still have to write the strategy in Pine Script. For intraday work the plan is close to unusable for research: thirteen trading days of 1-minute bars is not a sample, it is an anecdote.
TradingView Essential
Daily and hourly testing with a workable indicator count
Doubles the bar budget to 10,000 and unlocks minute data for the first time, capped at 180 days. The catch is that the two limits do not line up: 10,000 one-minute bars is about 26 trading days, so you will exhaust the bar budget long before you reach the 180-day allowance you just paid for. Where Essential genuinely helps is the hourly timeframe, which stretches from about 2.8 years on Basic to about 5.7 years here, enough to include both 2020 and 2022. You also move to five indicators per chart and twenty active alerts. Deep Backtesting, the Bar Magnifier and high historical bar detail are not included.
TradingView Plus
Chart work rather than deeper backtests
The single most important thing to know about Plus if you are upgrading for backtesting: it does not give you a deeper backtest than Essential. Both plans carry the same 10,000 historical bars, so every number in the Plus column of the table above is identical to the Essential column. What Plus adds is chart and alert capacity, ten indicators per chart, 100 active alerts, four market data subscriptions, and an extension of minute history from 180 to 365 days that, as the table shows, you cannot actually reach inside a 10,000-bar budget. If depth is what you are buying, this is the tier to skip: pay for Essential or jump to Premium.
TradingView Premium
The first tier where intraday backtesting becomes defensible
This is the tier most serious Pine Script users end up on, and the reasons are documented rather than marketing. The bar budget doubles to 20,000, which takes the 5-minute timeframe to roughly a year and the hourly to about 11 years. More importantly, TradingView's Pine Script documentation states that users with Premium and Ultimate plans can override the broker emulator's chart-based assumptions and raise the level of intrabar detail on historical bars, which is the Bar Magnifier, set in code with use_bar_magnifier = true. The same docs note that the on-history-bar-tick execution setting is available only to Premium and Ultimate users. Without those, your backtest fills orders using coarse assumptions about what happened inside each bar, which flatters strategies that trade intrabar. Premium also unlocks second-based data and 400 alerts.
TradingView Ultimate
Anyone who is a professional user, whether they want this tier or not
The deepest tier, and the only one available to a whole category of buyer. TradingView states on its pricing page that "Only the Ultimate plan is available for professional users", which means a registered investment adviser, a fund, or anyone else who qualifies as a professional under the exchange definitions cannot buy Essential, Plus or Premium at all. If you are testing ideas inside a registered firm, your real TradingView price is $199.95 a month billed annually, not the $59.95 headline, and that changes the comparison against every alternative. On depth, 40,000 bars is about 159 years of daily bars, which is far more than any equity has, and about 103 trading days of 1-minute bars, which is still under five months. Tick data is included but capped at seven days.
AgentTrading
Testing a plain-English rule on daily bars without writing code
Start with the reason some people reading this page should ignore us: we are not a charting product and never will be, so nothing here replaces the surface you draw on. What we do is the narrow part TradingView makes into a programming project. You type the rule as a sentence, the bench restates it as an explicit card you approve before anything runs, and it tests across 20+ years of split- and dividend-adjusted daily data with a 0.1% cost per trade charged by default, plots it against buy-and-hold with the worst drawdown shaded, and stamps HELD UP, MIXED or UNDERPERFORMED. There is no bar budget because there is no chart to load, and no Pine Script because there is no script. The honest boundary: daily bars only, so if your strategy lives on 1-minute candles, this page has told you which TradingView tier you need instead.
Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.
A BAR BUDGET IS NOT A TIME BUDGET
How far back a TradingView backtest actually reaches, by plan and timeframe
TradingView rations backtest depth with one number it publishes on the pricing page: historical bars available. A bar budget is a count, not a span, so the same plan buys a completely different amount of history depending on which timeframe you test on. The table below converts each plan's published bar count into time, assuming a regular 390-minute US equity session and 252 trading days a year. Nothing here is a TradingView figure except the bar counts in the column headings; the conversion is ours and the arithmetic is stated so you can redo it.
| Chart timeframe | Basic, 5,000 bars | Essential, 10,000 | Plus, 10,000 | Premium, 20,000 | Ultimate, 40,000 |
|---|---|---|---|---|---|
| 1-minute | About 13 trading days | About 26 days | About 26 days | About 51 days | About 103 days |
| 5-minute | About 64 trading days | About 128 days | About 128 days | About 1.0 year | About 2.0 years |
| 1-hour | About 2.8 years | About 5.7 years | About 5.7 years | About 11.3 years | About 22.7 years |
| Daily | About 19.8 years | About 39.7 years | About 39.7 years | About 79.4 years | About 158.7 years |
| Weekly | Longer than the data exists | Longer than the data exists | Longer than the data exists | Longer than the data exists | Longer than the data exists |
Read the top row and the bottom rows together, because the gap between them is the whole point. On daily bars the free plan already covers about twenty years, so a swing trader testing a moving average rule on daily candles gains almost nothing in depth by upgrading: past roughly twenty-five years the bar budget stops binding anyway because the price history itself runs out first. On 1-minute bars the picture inverts completely. The $239.95 Ultimate plan holds about 103 trading days, a little under five months, and the free plan holds about thirteen. That matters because the strategies people most want to backtest on TradingView, scalping and 0DTE and intraday breakout rules, are precisely the ones whose sample is measured in weeks. Almost every glowing 1-minute equity curve you have seen in a TradingView tutorial was, by construction, fitted to a few weeks of one market regime. There is a second cap stacked on top of this one. TradingView separately limits how far back minute data goes at all: none on Basic, 180 days on Essential, 365 days on Plus, and the full record on Premium and Ultimate. On the minute timeframe the bar budget is the binding constraint on every single tier, because 10,000 bars runs out at about 26 days long before the 180-day minute-history allowance does. Upgrading Essential to Plus buys you a longer minute-data allowance you cannot reach.
Bar counts, minute-history allowances and prices were read off tradingview.com/pricing on September 1, 2026. The conversion to time is ours, using 390 one-minute bars, 78 five-minute bars and 7 hourly bars per regular US equity session and 252 sessions a year; futures, crypto and forex sessions are longer, so the same bar budget buys proportionally less calendar time on those markets. Extended-hours charts consume the budget faster still. Treat these as good-faith estimates for US equities rather than exact guarantees, and note that Deep Backtesting changes what the report covers without changing what the chart has loaded. Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.
WHAT YOU GET - TRADINGVIEW BACKTESTING
TradingView backtesting, run on the bench
No bar budget to ration
Every test runs on the full adjusted daily record rather than on whatever your chart happened to load. There is no tier that unlocks more history, because depth is not the thing being sold.
No Pine Script to learn
The rule is a sentence. It gets restated as an explicit card you approve before anything runs, so you can see exactly what is being tested without reading code you did not write.
Assumptions printed on every result
Date range, data treatment, and the 0.1% default cost per trade appear on the chart. A backtest whose assumptions are off-screen is a picture, not evidence.
Daily bars only, stated up front
If your strategy lives on 1-minute candles, this bench is the wrong tool and the table above tells you which TradingView tier to buy instead. We would rather say that than sell you a bad fit.
HOW IT WORKS - 4 STEPS
From a sentence to a stamped verdict
Write the rule as a sentence
Something like "buy SPY when the 50-day crosses above the 200-day, sell on the reverse cross". No syntax, no compiler errors, no borrowed script that may not do what its description claims.
Approve the restated rule
Entry, exit, position sizing and costs are shown as an explicit card before anything runs. This is the step that catches the misunderstanding, so it happens before the test rather than after.
Run it on 20+ years of adjusted data
Split- and dividend-adjusted daily history with a 0.1% cost per trade charged by default, plotted against buy-and-hold with the worst drawdown window shaded.
Read the verdict in plain English
HELD UP, MIXED or UNDERPERFORMED, with the sample size flagged when it is too thin to mean anything. A bench that cannot disappoint you is not a bench.
Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.
On the same bench
These three TradingView pages answer different questions and do not overlap. This page is the capability question, what the Strategy Tester can and cannot reach on each plan. If you have decided the Pine Script requirement is the dealbreaker, the TradingView alternative covers what to use instead, and if your question is specifically about the free tier, can you backtest on TradingView for free walks the three limits in detail. For the plan decision itself, the best TradingView plan for backtesting works through which tier each kind of trader actually needs, and if you would rather avoid Pine Script entirely, the best algorithmic trading software without coding compares the no-code platforms. Beyond TradingView, the plain-English workflow is on backtesting software, the rule card is built in the trading strategy builder, and the adjusted record underneath every run is described on historical stock data. The strategy families people bring here most often have their own benches: moving average crossover backtesting for golden cross rules, RSI backtesting for oscillator rules, and momentum backtesting for trend rules. Whole baskets go through portfolio backtesting. If you are pricing the category rather than one vendor, the best AI trading software roundup lists the field, automated trading platforms covers the vendors that actually execute, and how much stock analysis software costs explains why annual and monthly billing differ by up to 58%. Plans start at $19 a month.
QUESTIONS - ASKED AND ANSWERED
TradingView backtesting: the common questions
Can you backtest on TradingView?
Yes. The Strategy Tester runs on every TradingView plan, including the free Basic tier, and reports net profit, maximum drawdown, profit factor and a full trade list. The strategy itself has to be written in Pine Script, either your own or one borrowed from the public library, and the test only sees the bars your chart has loaded.
Is TradingView backtesting free?
Yes, on the Basic plan, with a real constraint rather than a trial limit. Free accounts get 5,000 historical bars, which is roughly twenty years of daily candles but only about thirteen trading days of 1-minute candles. For daily-bar swing rules the free tier is genuinely sufficient. For intraday research it is not a usable sample at any honest reading.
How far back can TradingView backtest?
It depends on the timeframe, not the calendar. TradingView rations depth by bar count: 5,000 on Basic, 10,000 on Essential and Plus, 20,000 on Premium, 40,000 on Ultimate. On daily bars that is about 20 to 159 years. On 1-minute bars the same budgets give roughly 13 to 103 trading days, because a minute chart burns 390 bars per session.
What is deep backtesting on TradingView?
Deep Backtesting widens the strategy report beyond the bars loaded on your chart, and you enable it by choosing a custom testing period in the Strategy Tester. One documented catch: TradingView states that in Deep Backtesting mode the trade markers, plots, alerts and Pine Logs are still calculated from the available chart data only, so the chart and the report will disagree.
Do you need Pine Script to backtest on TradingView?
For a mechanical backtest, yes. Bar Replay lets you click forward through history manually, which is useful practice but is not a backtest, because your own hindsight is in the room. Any rule tested across years of data runs through Pine Script. Plain-English benches exist specifically so that step is not a programming project first.
Why does my TradingView backtest show fewer trades than expected?
Because of a documented trim. TradingView preserves individual data for only the most recent 9,000 trades, and if a strategy simulates more than that it drops the oldest closed trades from the report, the trade list and any downloaded XLSX or CSV. Enabling Deep Backtesting keeps every trade. High-frequency tests hit this limit without any warning on screen.
How accurate is TradingView backtesting?
Accurate about the past under stated assumptions, and easy to flatter without noticing. The broker emulator guesses what happened inside each bar unless you enable higher intrabar detail, and TradingView documents the Bar Magnifier and the on-history-bar-tick setting as Premium and Ultimate features. Add realistic commission and slippage yourself, because defaults of zero make almost any intraday strategy look profitable.
Can financial advisors and firms use TradingView backtesting?
Only on the top tier. TradingView states on its pricing page that "Only the Ultimate plan is available for professional users", so a registered investment adviser or fund cannot buy Essential, Plus or Premium. The real cost for a regulated firm is $199.95 a month billed annually. Separately, advertising backtested results carries its own compliance obligations under the SEC marketing rule.
Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.
Your next idea deserves a verdict, not a hunch.
Bring a thesis or a ticker. AgentTrading restates the rule, shows the evidence, runs 20+ years of history, and stamps an honest verdict. You decide.
Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.