Backtesting for TradingView strategies

Backtest your Pine Script strategy on 100% real data.

Paste a TradingView strategy, choose a timeframe, and see every trade, the equity curve and the drawdown in seconds. Bring 1-minute candles once — we build 5m, 15m, 1h, daily and higher timeframes from them.

Pine Script v5 Multi-timeframe Bar-by-bar engine No look-ahead
The tester

Run a backtest

Choose your data, paste a strategy, press run. Everything below the button is calculated from exactly what you selected.

Accurate by design, honest by default. We run your strategy on exactly the candles you select, with the same documented, TradingView-style fill rules for every strategy — and every result lists how it was calculated. Results are only as good as the data and the strategy logic you provide, so double-check both.

1 · Data

Nifty, BankNifty, Gold & 5 Forex pairs for now — vote for more data.

2 · Settings

3 · Strategy

Paste a TradingView strategy. If it uses something the engine doesn't support, you'll get a one-click AI conversion to Python.

Your results will appear here

Pick a dataset, paste or build a strategy and press Run backtest. By default, orders fill on the next bar's open, like TradingView.

How it works

From idea to a full report in three steps

No setup, no installs on your side — just data and a strategy.

Pick data & timeframe

Choose a candle file and a timeframe. With one 1-minute file you can test 5m, 15m, 1h, 4h, daily and more — higher timeframes are aggregated from your candles.

Paste your strategy

Paste Pine Script from TradingView, write Python, or use the point-and-click rule builder. Unsupported parts are named by line, never guessed.

Read the report

Net profit, win rate, profit factor, drawdown, Sharpe/Sortino, monthly P&L and every trade — plus a plain list of the rules used to calculate it.

Features

Built for real strategies, not just crossovers

Most condition-based, pattern-based and multi-timeframe strategies run directly — without rewriting them.

Pine Script v5

Indicators, if / else, functions, inputs, sessions and strategy.entry / exit / close. Anything unsupported is reported with its line number.

Multi-timeframe

request.security builds higher timeframes from your candles and only reveals a bar when it closes — no peeking at the future.

Bar-by-bar engine

var variables, counters, loops and strategy.position_size checks are supported — the logic many real strategies rely on.

Realistic fills

Next-bar-open fills, stop and limit exits with gap handling, slippage and commission — applied the same way to every strategy.

One-click AI conversion

If a script needs something we don't support, copy a ready-made prompt, let an AI convert it to Python, and paste it back to run.

Safe by design

Python strategies run in an isolated process with CPU, memory and time limits, plus an automatic look-ahead check.

Trust & accuracy

Built so you can check our work

We'd rather earn your trust with rules you can read than with big claims. Here is exactly what we do — and what we don't promise.

Your candles, used as they are

The tester runs on the candles in the file you select. Rows with missing prices are dropped and duplicate timestamps keep the last one — prices are never invented, smoothed or gap-filled. Higher timeframes are built only by aggregating those candles. Demo files are labelled as synthetic.

The same rules for every strategy

  • Orders fill on the next bar's open (or the signal bar's close if you choose).
  • Stops and targets are checked inside each bar; a gap fills at the open, not at the stop price.
  • Slippage affects market and stop fills, not limit fills.
  • One position at a time; an open trade is closed at the last bar.

Tested, not just claimed

Automated tests check fills against hand-calculated numbers, compare the fast and the bar-by-bar engines trade for trade, and verify that strategies cannot peek at the future. Every result page includes a "How this was calculated" section.

Correct strategy in, useful result out

A backtest can only be as reliable as the strategy logic and the data behind it. Read the rule summary, check a few trades by hand on the chart, and confirm your data's time zone and session before trusting any number.

A fair note on accuracy. We follow TradingView's documented defaults, but small differences from TradingView are possible — for example exchange-session boundaries, or the order in which a stop and a target are hit inside one bar. For serious use, export a strategy's trades from TradingView and compare them with ours before relying on the results.

Works today (runs directly)

Pine v5 conditions & patternsvar / counters / flagsfor / while loopsstrategy.position_sizerequest.security (multi-timeframe)Sessions · time()Stop / limit exitsLong & shortpivothigh / pivotlow40+ indicators

Not supported yet (named clearly, never guessed)

Arrays / mapsLimit / stop entry ordersNative trailing stopsPartial closesPyramiding > 1Other symbolsta.sar and a few indicators

For these, use the one-click AI conversion to Python where it's possible.

Data & roadmap

Which market data comes next?

For now the tester ships with Nifty, BankNifty, Gold (XAUUSD) and five Forex pairs — EURUSD, GBPUSD, USDJPY, AUDUSD and EURJPY (1-minute candles; Nifty/BankNifty Sep 2021 – Sep 2026, Forex about Dec 2024 – Sep 2026, Gold Jan 2024 – Oct 2026). Market data is large and slow to load, and a bigger server costs money that a free project doesn't have yet. We'll add crypto, forex and more as soon as people want them — and as soon as traffic lets us pay for a bigger server.

New: Gold (XAUUSD) is here. We added it because one of our users asked for it. That is how this works: you ask, our team builds. Please send your feedback and vote for the data you want below, and we will do our best to fulfil your requests. Gold data: EV Trading Labs (free use with attribution).

Tell us what you need

Data you would like us to add

We store only the options you tick and your comment — no name, e-mail or IP address. Privacy

FAQ

Questions, answered plainly

Which data is available, and when will there be more?

Right now: Nifty, BankNifty (24 Sep 2021 to 22 Sep 2026) and EURUSD, GBPUSD, USDJPY, AUDUSD, EURJPY (about Dec 2024 to Sep 2026) and Gold, XAUUSD (Jan 2024 to Oct 2026, added at a user's request; data from EV Trading Labs), all 1-minute candles, kept as files on the server. The sample_* files (BTC and EUR/USD) are randomly generated demo data — not real prices. More markets will follow when people ask for them and a bigger server is affordable: tell us what you need. Check the data's time zone and session before drawing conclusions.

Do I need separate 5-minute or 15-minute files?

No. One 1-minute file is enough. Other timeframes are built by aggregating it: open of the first candle, highest high, lowest low, close of the last candle and total volume.

Why might my result differ from TradingView?

Different data (feed, session, time zone), different tie-breaking when a stop and a target are both touched in the same bar, and features that are simplified. Compare a TradingView trade export with ours to measure the difference on your own strategy.

What happens if my script uses something unsupported?

We tell you exactly which line and why, and offer a one-click conversion: copy a ready-made prompt, paste it into an AI assistant such as Claude, then paste the Python it returns into the Python tab and run it. Some features (for example pending limit entries or partial closes) can't be expressed there either, and the conversion says so.

Is it safe to run my code?

Pine is translated by the tester itself, not executed as-is. Python strategies are validated and then run in a separate, restricted process with CPU, memory and time limits and no file or network access.

Is this financial advice?

No. A backtest is a simulation on past data. It can't predict future results and ignores things like liquidity, latency and changing market conditions.