VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime
Free tools / Risk and performance

Portfolio backtest: a free portfolio backtester for your own data

Upload a daily file of date and close for each market, give each one a weight and pick the dates. You get the annual return, the worst drawdown, the equity curve and what each one added. Your files stay in your browser. No sign-up.

Runs in your browser. Nothing you type is uploaded.

Your data

One file per market, with a date and a close on each line, such as 2024-01-02,4770.25. Export it from your platform or data provider. US markets have no built-in data here, so please upload your own.

Weights

MarketWeight %AddedRemove
TXTAIEX Futures+434.5%
Weights in play100.0%
Costs−32.22%
Total return+402.32%

Added = profit or loss from the market, as a % of the starting capital. The rows and the costs add up to the total return.

Result

Annual return
10.12%
Max drawdown
29.64%
Final value
502,321
Total return
+402.32%
Volatility (annual)
17.29%
Worst calendar year
2022: -23.3%
Max drawdown from → to
2021-12-30 → 2022-10-31
Range tested
2010-01-29 → 2026-10-29
200,000400,000201520202025Account valueFall from the peak0%−30%

Turn on JavaScript to use your own files. The result below is for the built-in example.

Built-in example: TAIEX futures, monthly returns from Taiwan Futures Exchange public data, compiled and calculated by AlphaPrime, through 2026-10-29. Nearest month, regular session, not adjusted: the jump at each contract roll counts as profit or loss. Each file's return is in its own currency, with no conversion.

How it works

A portfolio backtest holds several markets at fixed weights over past dates and measures the one account that holds them all: its yearly return, its worst fall from a peak and how much each market added.

The built-in example is TAIEX futures alone, on monthly returns, from 2010-01-29 to 2026-10-29, with costs: 10.1% a year, with a worst drawdown of 29.6%. For any other market, upload your own data.

The built-in example: TAIEX futuresMonthly returns, 2010-01-29 to 2026-10-29, with costs. The shaded part is the worst drawdown.0261,000522,00010.1% a year. Worst drawdown 29.6%, 2021-12-30 to 2022-10-31.

How to use it

Upload one file per market, or paste the rows. A first line of column names is fine, and so are extra columns: the tool looks for Close. New files share the portfolio equally until you type a weight.

Weights are exposure: 100% means positions worth the whole account. Under 100%, the rest sits in cash at no interest. Over 100%, the weights are scaled down, because borrowing for free would flatter the result.

What the test counts

Each market's money moves with its close. With rebalancing on, the account goes back to your weights on the first date of each period, and the trades pay the cost you set. Contract rolls pay it too, as many times a year as you enter.

Annual return is the compound rate from the first date to the last. Max drawdown is the largest fall from a peak on the closes in your files, so a fall inside a day doesn't show, and monthly data hides more.

What it leaves out

It holds positions; it doesn't test entries, exits or strategies. Interest on the cash behind a futures position isn't added, and neither is margin: a contract that falls far enough would be closed by your broker before this test closes it.

The result is only as good as the file. If your continuous series isn't adjusted for rolls, the jump between two contracts counts as profit or loss, which flatters markets that roll upward.

Questions

What is a portfolio backtest?

A test of several markets held together at set weights over past dates. It answers what the whole account would have done, including whether the markets fell together.

Is this portfolio backtester free?

Yes, with no sign-up and no limit on runs. It runs in your browser on the daily files you upload, up to 20 at a time. TAIEX futures are built in as an example; every other market needs your own data.

What file format does it need?

A CSV or text file with a date and a close on each line. Comma, semicolon, tab or spaces all work, and so do files with open, high, low and close columns. Dates like 2024-01-02, 2024/1/2 and 01/02/2024 are read.

Are my files uploaded anywhere?

No. The file is read by this page in your browser and no request is made, so your data stays on your computer. Reloading the page clears it.

Can it run a dividend portfolio backtest?

Yes, if your files already include the dividends: upload total-return or dividend-adjusted closes for each stock or fund. With plain closing prices, dividends aren't counted.

Should I rebalance monthly?

Compare them here: switch Rebalance between Monthly and Never on the same weights. Monthly keeps your weights in place and pays more trading cost; Never lets the winners grow until they dominate the account.

Why did my start date move?

All the files need data for the same dates, so the range starts when the youngest one does. The note under the chart says which file moved it.

Turn this calculation into an automated strategy

AlphaPrime generates, backtests and filters strategies automatically.

Free 7-day trial

For education. Not investment advice. Check the exchange before you trade.