XIRR
The yearly return of a series of investments made at different times, like a SIP. It gives credit for money that was invested for a shorter time, so it is the fair way to compare a SIP with a lump sum.
Every concept you need to read a backtest, with a worked Indian example. No jargon left unexplained.
The yearly return of a series of investments made at different times, like a SIP. It gives credit for money that was invested for a shorter time, so it is the fair way to compare a SIP with a lump sum.
Compound annual growth rate: the steady yearly return that turns your starting amount into the final amount. For a single lump sum, CAGR and XIRR are the same.
The biggest drop from a peak to a later low. It tells you how much pain you had to sit through. A strategy with a smaller drawdown is easier to stick with, which matters as much as the return.
Win rate is the share of closed trades that made money. On its own it means little: a strategy can win rarely and still make money if winners are bigger than losers.
A simple moving average (SMA) is the average closing price of the last N days. An exponential moving average (EMA) gives more weight to recent days, so it reacts faster.
The 200-day moving average is the most watched long-term trend line in India. Above it, the long-term trend is usually called up; below it, down.
A 0–100 score comparing recent up-moves with down-moves, usually over 14 days. Below 30 is called oversold, above 70 overbought. It describes recent momentum; it does not predict a bounce.
When a faster moving average moves above a slower one, the short-term trend has turned up. The 50-day crossing above the 200-day is the “golden cross”; crossing below is the “death cross”.
A stop-loss closes a trade when it has lost a set amount; a target closes it at a set profit. Together they define the risk-reward of each trade.
Decide how much you can lose on one trade first, then work out how many shares to buy. Many swing traders risk at most 1–2% of their capital per trade.
Trading styles differ by holding period, which changes costs, taxes and the effort needed.
| Style | Typical hold | Tax on profit |
|---|---|---|
| Intraday | Same day | Business income, at your slab rate |
| Swing | Days to weeks | STCG 20% |
| Positional | Weeks to months | STCG 20% (under 12 months) |
| Investing | Over 12 months | LTCG 12.5% above ₹1.25 lakh a year |
Even with zero brokerage, every delivery trade pays securities transaction tax (STT), stamp duty, exchange charges, SEBI fees, GST and a depository charge on the sell side.
Listed shares and equity funds held up to 12 months: short-term capital gains (STCG) at 20%. Held longer: long-term (LTCG) at 12.5% on gains above ₹1.25 lakh a year. Add 4% cess. Rates unchanged in Budget 2026; check with a CA for your own case.
Money waiting for a signal is not free: it could earn a liquid fund or sweep-FD rate. Our backtests can credit idle cash with interest, so a strategy that waits is not unfairly punished.
Testing only on stocks that exist and are large today makes the past look better than it was, because companies that collapsed or were delisted are missing.
Using information you could not have had at the time of the trade, such as a closing price before the market closed.
Trying many settings and keeping the best one finds luck, not an edge. A real edge works on many stocks and periods, not just one.