Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Portfolio Backtester (Your Own Price Files)

Backtest an asset mix on your own price files, with rebalancing and costs.

Free preview, no sign-upIncluded in your pass Premium tool Premium pass: ₹799 for 30 days No upload Works offline Trading

Try before you buy.

  • Free preview: the final value of the portfolio in full, with the first rows of each table (up to 3) and a watermarked chart; every other figure is hidden.
  • Locked until you unlock it: download and copy.
  • Unlock: Premium pass, ₹799 for 30 days, a one-time payment that never renews.

Ways to unlock shows how to get the full result.

See passes (opens in a new tab)

Printing this result is locked in the free preview.

Your prices and your mix

One asset’s price history is read from MetaTrader 5 bars export, MetaTrader 4 history CSV or any file with a date and a close column; several assets from a file with one price column each.

Or paste a table a date column, then one column per asset

Assets and target weights

    $
    On the last price of each month, quarter or year in your data.
    Contributions, costs and dates optional
    Commission, spread and taxes on trading, as you expect to pay them.
    For the Sharpe and Sortino ratios: the rate of a short government bill in your currency.
    Final value of the portfolio —

    Value and drawdown

    Calendar years

    Rolling returns

    The annualised return of every 1-, 3- and 5-year stretch in your data, by the date it ends: how much the result depended on when it started.

    Your mix against equal weights and each asset alone

    The same dates, money in or out, costs and rebalancing rule.

    What each asset added

    Values on each date

    How this was calculated

    Next steps Done. What next?

    All trading & stock market tools

    For education only, not investment advice: no tool here tells you what to buy, sell or hold. Results use only the figures you enter, the files you load (read in your browser, never uploaded) and the published rules each page names. Check them against your broker's or exchange's own figures, and consider a licensed or registered adviser for advice on your situation.

    About the Portfolio Backtester (Your Own Price Files)

    See how a mix of assets you choose would have behaved on prices you supply: load one file with a date column and a column of prices for each asset (or one file per asset), set the weights, and the backtester replays the mix with your rebalancing rule — never, every month, quarter or year, or whenever a weight drifts outside a band — your regular contributions or withdrawals and your trading costs.

    It reports the final value, the compound annual growth rate, volatility, the maximum drawdown with its dates and recovery, the Sharpe and Sortino ratios, every calendar year, rolling 1-, 3- and 5-year returns, what each asset added, the turnover and the costs, and the same mix against an equal-weight mix and each asset alone. Prices in other currencies are converted with an exchange-rate file or a rate you type.

    It works for any market and any currency, from daily or monthly prices. Files are read in your browser and never uploaded, and the tool uses no market data: every figure comes from your own file.

    How to use it

    1. From your broker, fund or charting app, save the prices of the assets you want to test — a date column and one column of closing prices per asset — or one file per asset; or try the sample of three fictional DEMO assets.
    2. Check the dates and the decimal mark the reader found, then set a weight for each asset (they must add up to 100%) and the amount invested at the start.
    3. Choose the rebalancing rule, any regular contribution or withdrawal, the cost per trade and the risk-free rate; give the currency of assets priced in another currency, with a rate or a rates file.
    4. Read the final value, growth, volatility, drawdown, years and rolling returns, and compare the mix with equal weights and with each asset alone.
    5. Copy the summary or download the values and years as CSV — with a pass, or after unlocking this result.

    Examples

    DEMO Equity, Bond and Gold, 60/30/10, held for 12 months
    Input
    10,000 invested; 13 month-end prices of three fictional assets, from 100 each to 118, 104.80 and 111; no rebalancing and no trading costs
    Result
    Final value 11,334.00 (+13.34%) · maximum drawdown −2.38% · volatility 5.11% a year · Sharpe 2.49 at a 0% risk-free rate
    The same mix, rebalanced every quarter
    Input
    Rebalanced on the last price of March, June and September, still with no trading costs
    Result
    Final value 11,323.40 (+13.23%) · maximum drawdown −2.32% · volatility 5.01% a year
    The same mix, rebalanced every month
    Input
    Rebalanced on the last price of every month but the last
    Result
    Final value 11,332.73 · maximum drawdown −2.32% · volatility 5.01% a year

    Common uses

    • See how often rebalancing a 60/40 mix would have traded, and what it changed, on prices you exported.
    • Compare the drawdowns and volatility of two mixes of the same funds before you decide how to split your own money.
    • Check how much regular contributions or withdrawals changed the outcome over the period in your file.
    • Test a threshold band against calendar rebalancing on the same data and the same costs.

    The formulas

    • Units are bought at the target weights on the first date; on each rebalancing date the units are reset to the target weights at that date’s prices. Scheduled rebalancing uses the last price of each calendar month, quarter or year in your data; band rebalancing happens on any date a weight is further from its target than the band you set. Neither happens on the last date.
    • Contributions are made on the first price of each new month, quarter or year and buy at the target weights; withdrawals sell every holding in proportion.
    • Costs are your percentage of the value traded, on every trade, the first purchase included, paid from the portfolio.
    • Returns are time-weighted: each period’s return is the value before that date’s contribution over the value after the previous date’s, so money you add is not counted as growth. CAGR = (1 + total return)^(1 ÷ years) − 1.
    • Volatility = the sample standard deviation of the period returns × √(periods a year): 12 for monthly prices, 252 for daily prices without weekends, 365 with them.
    • Sharpe ratio = mean excess return ÷ its standard deviation × √(periods a year) (Sharpe); Sortino ratio = mean excess return ÷ downside deviation × √(periods a year) (Sortino and van der Meer), both against the risk-free rate you give.
    • Maximum drawdown = the deepest fall of the growth of the mix from a running high, with the dates of the high, the low and the recovery.
    • Rolling returns are the annualised returns of every 1-, 3- and 5-year window that ends on a date in your data.

    Reading the results

    • The final value includes everything you added or took out; the total return and CAGR do not count those flows as growth. With regular flows the tool also gives the money-weighted return (XIRR) of your own cash flows.
    • A drawdown is a fall from a previous high: −20% means the mix was a fifth below its best value so far. The recovery date is when it got back to that high.
    • Rolling returns show how much the result depended on the start date: the spread between the worst and the best window is often wider than the whole-period figure suggests.
    • The comparison runs the same dates, flows and costs with equal weights and with each asset alone, so the effect of the mix itself is visible.

    What it leaves out

    Taxes, dividends and interest that are not in your prices (use total-return prices or adjusted closes to include them), bid-ask spreads, slippage, fund charges not in the prices, minimum trade sizes and whole-unit rounding, and the cost of exchanging currency. A backtest uses prices that are known only afterwards and assumes every trade filled at the closing price; it describes your data, and the rules for simulated past performance are why the tool never projects it forward.

    Limitations

    • Prices only: dividends count only when your file holds total-return or adjusted prices.
    • Every asset needs a price on a date for that date to be used: the backtest runs on the dates all your assets share.
    • Long positions only, with weights from 0% to 100%; no leverage and no short sales.
    • Up to 20 assets; files up to 50 MB.
    • It describes the past of the prices you load and projects nothing forward.

    Privacy

    Everything happens in your browser. What you enter or open here is not uploaded or stored by MySmartCoPilot.

    Frequently asked questions

    What do I get without a pass?

    Without a pass, Portfolio Backtester (Your Own Price Files) shows the final value of the portfolio in full, with the first rows of each table (up to 3) and a watermarked chart; every other figure is hidden. Until you unlock it, the result can’t be downloaded or copied. A Premium or Ultimate pass, a one-time payment that never renews, unlocks the full result. The pricing page lists the passes and their prices.

    Which files can I load?

    Any CSV or Excel file with a header row: a date column and one column of prices per asset, such as the price history a broker, a fund or a charting app lets you export. You can also load one file per asset; the mapping panel then lets you pick its date and close columns. Dates and decimal marks in your country’s style are read, and the page shows what it found.

    What happens when my assets have different dates?

    The backtest uses only the dates on which every asset has a price, so an asset that starts later moves the start to its first date. The page says how many dates of each asset were left out, so you can check the files.

    When does rebalancing happen?

    With a monthly, quarterly or yearly rule, on the last price of each calendar month, quarter or year in your file; with a band, on any date a weight is further from its target than the band. The mix is reset to your target weights at that date’s prices, and your cost per trade is charged on the value traded.

    Why is the total return different from the gain when I add money?

    The total return and CAGR are time-weighted: money you add or take out is not counted as growth. The gain in money and the money-weighted return (XIRR) do include the effect of when you added it.

    Can it project these results into the future?

    No. A backtest is simulated past performance; projecting it forward would present it as a likely future, which the rules on financial promotions do not allow and which your data cannot support. The tool describes what happened in your data and stops there.

    Is my file uploaded?

    No. It is read in your browser, and nothing you enter or load is sent to our server.

    Quick answers and tool search

    Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.