Online judge › Multi-year backtest and CSV export
Free multi-year Pine Script backtest with a sealed period and full trade list CSV export
Run your Pine Script strategy over more than 9 years of daily Bitcoin (3 years on 4h, 1 year on 1h, or your own candle file: up to 20,000 daily bars or 8,760 intraday bars) in your browser, with no account and nothing uploaded. The judge keeps the last 20% of the candles sealed, counts the fees, then lets you download every trade as a spreadsheet-ready CSV in one click.
A free complement to the charting tool you already use: if your plan has no button to export the list of trades, paste the strategy here and get the file, then keep working where you are used to.
Three steps
- Paste your strategy. Open the free judge, paste a Pine Script strategy (or load the one-click example) and choose 1D, 4h or 1h, or drop your own OHLCV candle file. The judge reads a large part of Pine, not all of it; when a line is not carried, it says which one.
- Get the verdict. The rule runs on the first 80% of the window, then once on the sealed 20%, next to simply holding the asset.
- Download your trades. Under the verdict, “Download my trades (CSV)” writes every closed trade into a file; “Sealed period only (CSV)” keeps the trades after the cut. The judge shows the date where the sealed period starts.
The file
Same columns as a “List of trades” export, two rows per trade, dates in UTC:
Trade #,Type,Date and time,Signal,Price USDT,Position size (qty),Position size (value),Net P&L USDT,Net P&L %,…,Cumulative P&L USDT,Cumulative P&L % 1,Entry long,2017-10-12 00:00Z,Entry (train),4821.43,2.07407346,10000,12574.77,125.7477,… 1,Exit long,2018-01-17 00:00Z,exit_condition,10899.99,2.07407346,10000,12574.77,125.7477,…
Example rows from a 20/50 moving-average crossover on BTCUSDT 1D. Amounts: 10,000 reference capital, fully invested and compounded; per-trade percentages after fees. A trade still open at the cut belongs to neither part and is not in the file.
Then: a free preview of the audit dossier
The file is read as is by the audit dossier. Drop it in the free preview, enter the sealed-period start date as the cut date, and see the compounded result before and after the cut and with extra fees. The dossier needs at least 30 closed trades, 10 of them after the cut date.
The preview is free; the full dossier costs €9.00 once, no subscription. The Lab is a free desktop app (Windows, Linux) for longer histories, several markets and AI-driven searches on your PC.
Questions
How many years of data can I test for free?
On the built-in Bitcoin (BTCUSDT) series, the judge runs on 3,348 daily candles (17 August 2017 to 16 October 2026, a little over 9 years), on the last 6,570 four-hour candles (3 years) or on the last 8,760 one-hour candles (1 year). You can also drop your own OHLCV candle file, any market, up to 60 MB: the judge evaluates its last 20,000 bars for daily or longer candles, its last 8,760 bars for intraday candles, in your browser.
What is in the CSV file?
Every closed trade of the window, training part and sealed period, on two rows (entry and exit): trade number, direction, UTC date and time, signal or exit reason, price, position size, net P&L in currency and in percent, and cumulative P&L. The per-trade percentages come from the engine, after fees. Amounts are recomputed on a 10,000 reference capital, fully invested and compounded trade after trade. The layout follows the “List of trades” columns, so it opens in Excel, LibreOffice or Google Sheets and in our dossier preview.
Why is the last 20% of the candles sealed?
A rule judged only on the dates used to tune it tends to look better than it is. The judge keeps the last 20% of the window apart, with the script’s fees (or 0.10% per fill when it declares none), and compares the rule with simply holding the asset on that period. The CSV marks which trades belong to the training part and which to the sealed period, and gives the date where the sealed period starts.
Is my script or my candle file sent to a server?
No. The engine (Rust compiled to WebAssembly) and the CSV file are both made inside your browser; only the static engine and candle files are downloaded. Your script and your candles stay on your machine. The dossier preview is a separate, optional step: there you choose to upload the CSV file.
See also: out-of-sample test on TradingView · Monte Carlo on a list of trades · turn an indicator into a strategy
Market data: Binance (CC BY-NC-SA 4.0), for the built-in BTCUSDT series. The exported file holds your strategy’s trades, not the candles. Research on past data, never investment advice or a promise of gain. TradingView is a trademark of TradingView, Inc.; Strategy Arena is not affiliated with it.