An indicator tells you something about the past. A strategy is a complete set of instructions: what you hold, what triggers a change, how much, how often, at what cost, and what you will accept as evidence that it is working. The seven modules before this one in the path tested single indicators. Each gave an answer to the narrow question "did this one rule beat holding the index?" Here the question is wider: what happens when you put rules together, pay for them in rupees, size them, and check them on data they have not seen? The answers on the Nifty 50 are plain. Combining three trend rules did not beat the strongest of them. Costs took a visible bite. Choosing a parameter on past data and using it going forward did worse than a fixed choice. I show the numbers.
The data runs from 1 Jan 2021 to 30 Sep 2026, about five and three quarter years, one market regime. Each test window here starts on 7 Jan 2022, once 252 closes are behind it. Every result is one test on one short history. Education only, not advice.
6By the end you can
- List what a strategy needs beyond an indicator: universe, signal, exits, sizing, costs, schedule and a record.
- Combine rules by a vote, and say why three rules built on price trends are closer to one bet than to three.
- Work out what a rule costs in rupees from the value it trades.
- Size a position by a fixed fraction or by a volatility target, and read what that does to return and drawdown.
- Run a walk forward check: choose a setting on past data, trade it on the next year, and compare with a fixed setting.
- Say why a published rule with its full dated record is a different thing from a back test shown once.

What a strategy needs that an indicator does not
When I say a rule on a chart "works", I mean something narrow: a signal fired and the price moved afterwards. A strategy has to answer questions that the chart never asks.
| Part | Question it answers | In this test |
|---|---|---|
| Universe | What can be held? | Nifty 50 index |
| Signal | What triggers a change? | Rules A, B, C |
| Exit | When is it undone? | Built into each rule |
| Sizing | How much? | Full, half, volatility |
| Costs | What does each trade pay? | 0.1% a side |
| Schedule | When can it trade? | Close after signal |
| Record | What counts as evidence? | Same dates, buy and hold |
What every test in this path has been fixing, one row at a time.
Read one more paragraph, 84 words
A missing row is where results leak. If the schedule is vague, a rule can trade at a price it could not have had. If the costs are left out, a busy rule looks better than it is. If the record is a single back test shown once, you cannot tell how many were run before it. The rest of this page goes through the rows I have not yet dealt with in the path: combining signals, costs in rupees, sizing, and the record.
Combining rules
Three rules, each written as an exact condition on the closes of the Nifty 50:
session average
B: close above the close
252 sessions earlier
C: Donchian 55/20 breakout
2of3: at least two say yes
3of3: all three say yes

| 7 Jan 2022 to 30 Sep 2026 | CAGR | Max drawdown | In market |
|---|---|---|---|
| Buy and hold | 5.16% | -16.47% | 100.0% |
| A trend, 36 trades | 3.47% | -14.63% | 71.3% |
| B momentum, 44 trades | -0.13% | -21.60% | 82.5% |
| C breakout, 30 trades | -0.19% | -11.33% | 39.0% |
| 2of3 vote, 48 trades | 1.72% | -16.13% | 66.4% |
| 3of3 all agree, 32 trades | -0.28% | -11.33% | 36.2% |
Test script for this module. Nifty 50 price index, 0.1% per side, cash at 0%. Buy and hold pays the 0.1% once.
Read 3 more paragraphs, 269 words
Rule A is the 200 day average rule of module 23.2. Rule B is a 12 month time series momentum rule in the spirit of module 23.3. Rule C is the 55/20 channel from module 23.6. Over 7 Jan 2022 to 30 Sep 2026, holding the index gave a CAGR of 5.16% with a maximum drawdown of -16.47%. Here is each rule, alone and combined.
None of the five rules beat holding the index on return. The strongest of them, A, gave 3.47% a year with a worst fall of -14.63%, a little shallower than the index. The 2of3 vote gave 1.72%, lower than A. The 3of3 vote, in the market only 36.2% of the time, gave -0.28% and the same drawdown as C, -11.33%. Combining did not produce something better than its strongest part. It produced something between the parts.
Why? Because the three rules are not independent. All three follow price trends. When the index rises steadily, all three say yes. When it falls steadily, all three say no. They disagree mostly around turning points, and a vote at a turning point is a vote among rules that are each late. The 3of3 rule is almost the same as C, and its drawdown is the same to two decimals, because C is the slowest to say yes and the other two usually agree with it when it does. A vote helps when the voters see different things: a trend rule and a value rule, or an equity rule and a bond rule. Three flavours of trend are closer to one bet counted three times.
Costs in rupees
A percentage a side is hard to feel. In rupees, with a starting account of ₹10,00,000 and 0.1% of the value traded on every entry and exit, the arithmetic is simple: cost equals traded value times 0.1%.
Value traded = sum of the
rupees moved on each trade
Buy and hold: one entry
| Rule, ₹10,00,000 start | Value traded | Cost paid | CAGR with no cost |
|---|---|---|---|
| A trend, 36 trades | ₹3.69 crore | ₹36,936 | 4.26% |
| C breakout, 30 trades | ₹3.00 crore | ₹30,001 | 0.45% |
| 2of3 vote, 48 trades | ₹4.72 crore | ₹47,220 | 2.75% |
Value traded: the largest is 2of3 vote, 48 trades at ₹4.72 crore
Test script for this module, window 7 Jan 2022 to 30 Sep 2026 (4.73 years). Buy and hold paid ₹1,000, one entry. A rupee crore is ten million rupees. Value traded is the sum of rupees moved across all trades.
| At 0.5% a side | CAGR | Max drawdown | Trades |
|---|---|---|---|
| A trend | 0.36% | -19.69% | 36 |
| C breakout | -2.70% | -14.59% | 30 |
| 2of3 vote | -2.34% | -25.04% | 48 |
Test script for this module. Same window and rules as above, costs raised from 0.1% to 0.5% a side. Buy and hold: 5.16% and -16.47% at 0.1%.
Read 5 more paragraphs, 251 words
Rule A traded ₹3.69 crore of value over 36 trades, because each trade moves the whole account, and a growing account moves more. At 0.1% a side that is ₹36,936. Without the cost, its CAGR would have been 4.26%, not 3.47%. The cost took 0.79 percentage points a year off a rule whose edge over cash was already thin. Rule C lost more than it earned: 0.45% a year before costs turned into -0.19% after them.
Costs scale with turnover, not with the size of the idea. A rule that trades 36 times in 4.73 years pays much less than one that trades 104 times, like the Donchian 10/5 in module 23.6. The relationship is why short horizon rules need a large edge per trade: the edge has to be bigger than the cost of getting in and out.
To see how fragile that is, I reran three of the rules at 0.5% a side, a deliberately harsh case.
At 0.5% a side, A fell from 3.47% to 0.36%, and the other two turned negative. I am not saying 0.5% is a typical cost. I am saying the answer to "does it work?" depends on what the trades cost, and a result shown without costs is not an answer.
For the Indian cost detail, module 10.2 covers slippage and transaction costs, and module 11.1 covers the tax on gains. A rule that trades often also turns long term gains into short term ones, and that comes on top of the 0.1%.
Position sizing
The next row is how much. Everything so far has been all in or all out. Sizing is a separate dial. Here are three versions of rule A, the 200 day average rule, over the same dates.
| Rule A sizing | CAGR | Max drawdown | Average weight |
|---|---|---|---|
| Full size, 36 trades | 3.47% | -14.63% | 71.3% |
| Half size when in, 36 trades | 1.86% | -7.56% | 35.6% |
| Volatility 10% target, 80 trades | 2.04% | -11.88% | 61.2% |
Test script for this module. Average weight is the share of the account in the index, averaged over the window. The volatility target is the rule of module 23.5, applied while the signal is on.

Read 2 more paragraphs, 125 words
Half size cut the drawdown from -14.63% to -7.56% and cut the return from 3.47% to 1.86%. That is what you would expect: half the exposure, about half of both. The volatility target kept a larger average weight, 61.2%, traded more, 80 times against 36, and landed in between on drawdown, at -11.88%, with a return of 2.04%. Sizing did not add return. It moved risk, and here a little return went with it.
Position sizing is covered more generally in module 4.2. The point here is that sizing is a real choice that belongs to the strategy and is not decoration: two accounts following the same signal with different sizing will have different drawdowns and different experiences, and neither is the rule's fault.
Walk forward and out of sample
The biggest source of false confidence in a back test is choosing the settings on the same data you then report. If I pick the highest scoring of five average lengths on 2022 to 2026 and quote its result on 2022 to 2026, I have chosen the answer with the data in view. A walk forward check mimics real life: choose on the past, trade on the next stretch you have not looked at, then move forward and repeat.
For each test year Y:
Train: all data before Y
Pick the length with the
highest final equity
Test: trade it through Y
| In sample, 7 Jan 2022 to 29 Dec 2023 | CAGR | Max drawdown | Trades |
|---|---|---|---|
| SMA 50 | 3.69% | -15.62% | 35 |
| SMA 100 | 3.27% | -12.39% | 25 |
| SMA 150 | 5.56% | -13.57% | 21 |
| SMA 200 | 5.10% | -13.81% | 21 |
| SMA 250 | 2.54% | -18.08% | 15 |
| Buy and hold | 10.54% | -16.47% | 1 |
Test script for this module. Nifty 50 price index, 0.1% per side, cash at 0%. Buy and hold in this training window gave 10.54%.
The term this section turns on: Out of sample
| Out of sample, 1 Jan 2024 to 30 Sep 2026 | CAGR | Max drawdown | Trades |
|---|---|---|---|
| Buy and hold | 1.42% | -15.77% | 1 |
| Walk forward, length chosen each year | 0.35% | -16.19% | 18 |
| Fixed SMA 200, never changed | 2.26% | -14.63% | 16 |
| Fixed SMA 50 | -3.26% | -19.87% | 52 |
| Fixed SMA 100 | 0.11% | -15.47% | 36 |
| Fixed SMA 150 | 0.35% | -16.19% | 18 |
| Fixed SMA 250 | 2.31% | -13.22% | 6 |
Test script for this module. Same costs. The walk forward row trades the length chosen from data before each test year, and it picked 150 every year, so it equals fixed SMA 150.
Read 5 more paragraphs, 431 words
The first thing the check shows is what the training data picked. For all three test years, 2024, 2025 and 2026, the length chosen was 150. The training equity at the point of choice was 1.113 for 2024, 1.172 for 2025 and 1.266 for 2026. In the training window of 7 Jan 2022 to 29 Dec 2023, here is the whole grid, which is what an optimiser would have shown you:
SMA 150 had the highest return in the training window, 5.56%, so it was the pick. SMA 200 was close behind at 5.10%. Nothing in the table makes 150 clearly better than 200: the difference is the kind a few trades can produce. Now the same rules on the data after the pick, 2024 to 30 Sep 2026, which the pick never saw:
The out of sample result is a different picture from the in sample one. The walk forward rule gave 0.35% a year, below holding the index at 1.42% and below the fixed SMA 200 at 2.26%. The in sample winner, SMA 150, was not the out of sample winner: SMA 250 gave 2.31% and SMA 200 gave 2.26%. The index itself earned much less in this later window, 1.42% against 10.54% in the training window, which is its own reminder that the market's behaviour moves around.
What does this show? Not that 200 is the right length. It shows that the length chosen with the data in view did not carry its advantage forward. A fixed length that nobody tuned did better than the length the optimiser chose, in this one test. A different sample could reverse that, and I would not want you to remember "200 beats 150". I want you to remember that a result on the data you tuned on is a weaker claim than a result on data you did not.
Read the walk forward result with its limits in mind. There are three test years, and the last one is nine months long. The grid held five lengths, so the choice was among five, and the training windows overlap, so it is no surprise that the same length won each time. Each test year contains only a few trades per length. A cleaner design would use many more years and more than one market, and would compare the walk forward rule with a coin flip run through the same machinery. The check does what it was built to do: it stops me from quoting 5.56% as if it were a forecast for 150. It does not turn three years into a proof.
How many things I tried
The script behind this page evaluated 43 rule configurations on the same 1,420 closes: the baseline, the five rules, gross and costed copies, the sizing variants, the cost stress and the walk forward grid. Across the path, every module uses the same closes, so the true number tried on this history is larger still. That count is the thing that matters most, and it is the thing a single back test hides.
Read 2 more paragraphs, 199 words
Halbert White (2000) addressed the problem directly: when the same data is used again and again to choose among rules, an apparently good result can come from chance, and his reality check tests whether the top rule from a search really beats a benchmark once you account for the search. David Bailey, Jonathan Borwein, Marcos Lopez de Prado and Qiji Zhu (2014) wrote about backtest overfitting and argued that the number of configurations tried ought to be disclosed. Bailey and Lopez de Prado (2014) proposed the deflated Sharpe ratio, which lowers a reported Sharpe ratio to reflect how many trials were run and how unusual the returns are. In practice, the more you try, the higher the bar a result has to clear.
The second warning is decay. R. David McLean and Jeffrey Pontiff (2016) examined the out of sample and post publication returns of 97 variables that academic papers had linked to stock returns, and concluded that investors appear to learn about mispricing from publications. A published rule is not the same thing as a rule that keeps working. A result in a paper is a record of the past, and so is a result on this page.
₹100 in Allcap became about ₹424 in the model
Why a published rule with its full record matters
All of this points to one practical conclusion about evidence. A rule you can trust a little more is one whose definition was fixed in public before the results came in, whose record is dated and kept on the page, and whose failures stay visible. That does not make it right. It makes it checkable. A back test shown once, with the settings tuned and the dates chosen, cannot be checked, because you cannot see the ones that were thrown away.
Read 3 more paragraphs, 308 words
That is the standard I try to hold RupeeCase to. The index strategies on the platform are rule sets, not advice. Each one is a universe, a count of stocks and a rebalance schedule, held in your own demat account. In the strategy lineup file generated on 26 Nov 2026, for example, Focused Largecap 20 holds 20 stocks from the Nifty 100 and rebalances every 4 weeks, Midcap holds 20 stocks from the Nifty Midcap 150 and rebalances every 2 weeks, and India Consumption holds 6 stocks from the Nifty India Consumption index and rebalances every week. The fee is 0.2% of the value traded at each rebalance, so cost follows turnover, which is the same logic as the table above. A rebalance that trades ₹3,00,000 of a ₹10,00,000 portfolio costs ₹600 in fee, as an illustration, plus brokerage and statutory charges on the trades.
Each strategy page shows its record as model, back tested, with the date it runs to. I have not copied any of those figures onto this page. They are on the strategy pages, labelled and dated, and they are the output of a different process from the tests above: many more stocks, a ranking and a schedule, not a single index and a few rules. Nothing on this page is a claim that one approach is better than another. A back tested record is a record of the past in a model with assumed costs, not a client return and not a forecast.
What I can offer is the habit. State the rule, state the costs, show the baseline, show the neighbours, count the tries, and check on data the choice did not see. If a result survives that, it has earned a little more weight. If it does not, you have saved yourself the loss of finding out in your own account.
A checklist before you trust a rule
- Is the rule written as numbers? Entry, exit, size, schedule.
- Was it fixed before the result? Or chosen after seeing which one worked?
- Is there no look ahead? Signal at the close of day t, trade at the next close.
- Are costs in? Show the result with and without them, and at a harsh level.
- What is the baseline? Holding the same instrument over the same dates.
- How many were tried? The count is part of the result.
- Do the neighbours agree? Nearby settings give nearby results, if the rule is sound.
- Was there an out of sample check? Data the choice never saw.
- How long is the sample? Five years of one regime is a start, not a verdict.
- Is the record dated and public? So that it can be checked later.
Two terms to hold on to from 23.8
Where this meets the rest of the path
Module 23.1 set out the method and the biases, and module 2.4 covers back testing in general. The risk numbers used here, drawdown and volatility, are explained in module 2.3, and the CAGR calculator lets you check the compounding behind any figure in this path.
Common mistakes
- Counting a vote of similar rules as diversification. Three trend rules agree most of the time.
- Reporting a result without costs. Rule C earned 0.45% a year before costs and -0.19% after.
- Choosing the setting on the data you report. The in sample winner, SMA 150, did not win out of sample.
- Hiding the number of tries. The script ran 43 configurations.
- Confusing sizing with signal. Half size halved the drawdown and cut the return, and the signal was unchanged.
- Reading a back tested record as a forecast. It is a record of the past in a model.
What I'd keep from this
- A strategy is a universe, a signal, an exit, a size, costs, a schedule and a record. An indicator is only the signal.
- Over 7 Jan 2022 to 30 Sep 2026, buy and hold gave 5.16% a year. Rule A gave 3.47%, the 2of3 vote 1.72% and the 3of3 vote -0.28%. Combining similar trend rules did not beat the strongest of them.
- Rule A traded ₹3.69 crore of value on a ₹10,00,000 account and paid ₹36,936 at 0.1% a side. Without that cost its CAGR would have been 4.26%.
- Out of sample, from 1 Jan 2024, the walk forward rule gave 0.35% against 2.26% for a fixed SMA 200 and 1.42% for buy and hold.
- Count the tries, check on data the choice did not see, and prefer a rule whose full record is public and dated. The script behind this page ran 43 configurations.
Where this section sits in module 23.8
Questions readers ask
What is walk forward testing?
You choose a setting using only past data, trade it on the next period you have not looked at, then roll forward and repeat. Here the SMA length was chosen from data before each of 2024, 2025 and 2026, and the walk forward rule gave 0.35% a year on those dates.
Does combining indicators improve results?
Not by itself. Three trend rules on the Nifty 50 mostly agree, so a vote among them is close to one bet counted three times. In this test the 2of3 vote gave 1.72% and the strongest single rule gave 3.47%.
How do I work out what a rule costs in rupees?
Add up the rupees moved on every trade and multiply by the cost rate. Rule A moved ₹3.69 crore over 36 trades on a ₹10,00,000 account, which at 0.1% a side is ₹36,936. The 0.1% is an illustration, not a quote.
Is a back tested record a promise of future returns?
No. It is a record of what a rule would have done on past data, under assumed costs. It can be checked, which is its value, but markets change, and the evidence on published predictors, such as McLean and Pontiff (2016), is that they can weaken once they are known. Treat it as evidence about the past.
Rules and figures in this module were last verified on 27 Nov 2026. Tax and regulatory rules change; check the source before acting.