LIVE
KSE-100 1,81,990POLICY 11.5% USD/PKR ₨277.7GOLD/TOLA ₨4,50,000 CPI 9.2%
Everything in 60 seconds
Investment backtester

What if you'd invested?

Pick an amount and an asset. See what it would be worth today on real prices - with the return, the yearly rate (CAGR), and how it compares to leaving the money in National Savings.

Gold or any tracked PSX stock
A safe benchmark for the same money
Worth today
-
Total return
-
Profit / loss
-
Per year (CAGR)
-

Loading live prices...

How this works

We take the price of your chosen asset on the start date and divide your amount by it to get the units you'd have bought. Then we value those units at every month since, up to the latest price, to draw the line. The yearly rate (CAGR) is the single compound rate that turns your starting amount into today's value over the period. The dashed line shows what the same money would have earned in National Savings at the rate you set - a safe yardstick. Prices are scraped automatically and history is monthly; treat results as close estimates, not exact statements.

The prices come from the same automated pipeline that powers the rest of this site. Stock histories are monthly closing prices built from Pakistan Stock Exchange end-of-day records and rebuilt weekly, while the latest prices in our data feed refresh twice every trading weekday - once shortly after the 09:30 open and once after the 15:30 close (scheduled runs can occasionally be delayed, so the "as of" moment may lag by a few hours). Gold uses the site's monthly 24K per-tola series going back about six years; most stock histories cover about three. The "Max" button simply uses the full history we hold for that asset, so "Max" for gold is a longer window than "Max" for a stock.

Three limitations matter. The stock lines are price-only: cash dividends are not added back or reinvested, so for steady payers the true total return was higher than the line shows. The series uses month-end values, so it skips intraday swings and anything that happened between two month-ends. And the maths ignores real-world frictions - broker commission, CDC charges and capital gains tax would all trim the profit figure before it reached your pocket.

How to read the numbers

  • Compare on CAGR, not total return. "+80% in three years" sounds dramatic, but ₨1,00,000 growing to ₨1,80,000 over three years is a yearly pace of roughly 21.6% - that is the number to hold against a savings certificate or fund return.
  • Subtract inflation in your head. A +12% year while CPI ran above 12% still shrank your purchasing power. Check the CPI figure in the ticker at the top of this page before celebrating a nominal gain.
  • The dashed line is the honest benchmark. National Savings pays without market risk. If your asset only barely beat it - or trailed it - you carried years of volatility for little or nothing extra.
  • Switch the window before you conclude anything. The same stock can look brilliant over one year and poor over three. If the result flips when you change periods, the story is mostly timing - and past performance tells you nothing reliable about the next few years.

Three honest ways to use a backtest

  • Reality-check a tip. When someone insists a stock "always performs", run it over one year, three years and Max. If the claim only survives one carefully chosen window, you've learned what the tip was worth — and it took thirty seconds instead of your savings.
  • Put gold in context. Gold is Pakistan's default store of value, and over stretches of rupee devaluation it has beaten most alternatives simply by not being rupees. Running the same amount through gold and a stock over the same window shows whether the stock's extra risk actually paid — a comparison most people argue about but never check. The gold page has the full six-year history.
  • Feel the volatility before you commit. The line between the start and end points matters as much as the end value. A stock that finished +40% after spending a year 30% underwater is a very different proposition from one that climbed steadily — and the chart shows you which one you're looking at. If you couldn't have stomached the dip, you wouldn't have collected the finish.

Reading one run, start to finish

Say you put ₨1,00,000 into a stock three years back and the tool reports "Worth today ₨1,75,000, total return +75%, CAGR 20.5%". The 75% is the headline; the 20.5% is the comparable number. Hold it against the dashed National Savings line at, say, 13% — the stock won by about 7 percentage points a year, which is a genuine reward for equity risk. Now check the CPI pill in the ticker: if inflation averaged 15% over those years, National Savings actually lost purchasing power and the stock only modestly beat prices. Then flip the window to one year. If the same stock shows -10%, the three-year figure was mostly one strong early run — worth knowing before you extrapolate it forward. That is the whole discipline: CAGR against the safe rate, both against inflation, across more than one window.

Rupee returns are only half the story

Every figure this tool shows is in rupees, and the rupee itself has been a moving target - it has lost value against the dollar in most years, sometimes abruptly. A stock that doubled in rupees over a stretch where the rupee halved against the dollar kept your international purchasing power flat; gold's strong rupee record owes a large part to exactly this effect, since its dollar price is set abroad. You don't need to convert every result, but for any multi-year window it is worth glancing at where USD/PKR started and ended (the ticker above shows today's rate) before deciding how impressed to be. This is also why remittance-funded investors - who think partly in foreign currency - often read the same backtest very differently from rupee-only savers; our Roshan Digital Account guide covers that angle.

What a fair backtest looks like

Every backtest — ours included — flatters the past in ways worth naming. The asset list only contains stocks our pipeline currently tracks: the KSE's liquid names. Companies that collapsed and were delisted are absent, so browsing the dropdown means browsing survivors — the graveyard doesn't get a listing. That is survivorship bias, and it makes "the average stock here did well" a misleading thought. Window choice is the other flatterer: a start date at the bottom of a crash makes anything look brilliant. When a fund or influencer shows a backtest, ask what window and what universe — the honest answer usually shrinks the number. Our own lines also exclude dividends (understating steady payers) and ignore commission, CDC charges and capital gains tax — see how investments are taxed for what actually leaves your profit.

Common questions

Does the backtester include dividends?
No - the stock line is price only, so cash dividends are not added back or reinvested. For regular payers the real total return was higher than shown, sometimes meaningfully so for high-yield stocks. Gold has no payout, so its line is complete. See the dividend stocks page for current yields.
Does past performance predict the future?
No. A backtest only shows what already happened. A stock that rose 200% over three years can fall the next year, and a flat asset can surge. Use this to understand volatility and ranges, not to pick winners.
Why compare to National Savings?
National Savings is a low-risk government option, so it's a fair "do nothing risky" baseline. If a risky asset didn't beat it, you took on risk for nothing over that window. Change the rate field to match the certificate you'd actually use.
How fresh is the price data?
Latest prices refresh twice every trading weekday - after the open and after the close - and the monthly stock histories are rebuilt weekly from PSX end-of-day records. Gold history goes back about six years, most stock histories about three. Automated runs can occasionally be delayed, so verify against the PSX before acting on anything.
Why isn't my stock in the list?
The dropdown holds the hundred-plus most liquid PSX names our pipeline tracks, not the full exchange. Thinly traded stocks are excluded because gappy monthly prices produce misleading lines. Remember the flip side: delisted companies are missing too, so the list you're browsing is survivors only.
Can I backtest the KSE-100 index or a mutual fund?
Not yet - the tool covers individual tracked stocks and gold. For a rough index proxy, run two or three heavyweight index names side by side. For funds, MUFAP publishes each fund's own performance history, and our mutual funds guide explains how to read those figures (income funds quote annualized, equity funds absolute - they are not directly comparable).
Educational only, not investment advice. The author is a software engineer, not an investment professional. Figures use automatically scraped monthly prices and may lag or contain errors. Past performance does not guarantee future results. Verify against the PSX and your broker before acting.