Designing Robust Investment Strategies
Why a strong historical return is not evidence, how curve fitting produces strategies that only ever worked on paper, and the design choices that make a rule set likely to survive conditions it was not built on.
What You’ll Learn
By the end of this article, you’ll understand:
- What robustness means, and why it is a different goal from a high historical return
- Why a strong backtested CAGR is not evidence that a strategy works
- The difference between overfitting and the curve fitting that causes it
- Which design choices tend to survive conditions they were not built on
- How to test a strategy against a period it was never designed against
- What Experiments can show about sensitivity, and why their first-ranked configuration is not the answer
What "robust" means
A robust strategy is one whose behaviour does not depend on the exact period you tested, the exact parameters you chose, or the particular luck of a single run. Change the dates a little, nudge a threshold, and a robust strategy behaves roughly as it did before. A fragile one falls apart.
Notice that this is a different goal from finding the best-performing rules. The best-performing rules on any given stretch of history are, almost by construction, the ones most closely tailored to that stretch — which is exactly the property you do not want. Robustness is about durability, not about winning a historical contest.
This distinction is easy to agree with and difficult to act on, because the tools available to you measure historical performance and cannot measure durability directly. Everything below is about closing that gap.
Why a high CAGR isn't evidence
Here is the uncomfortable arithmetic at the centre of strategy design.
Any dataset — including several years of Indian equity prices — contains an enormous number of patterns. Most of them are accidents: coincidences produced by the particular sequence of events that happened to occur. If you search that dataset hard enough, testing rule after rule, you will certainly find rules that fit those accidents very well.
The result looks identical either way. Put the two side by side on everything a backtest can show you, and nothing separates them:
| What you can see | Strategy with a real edge | Strategy that fitted a coincidence |
|---|---|---|
| Historical CAGR | Strong | Strong — often stronger |
| Equity curve | Rises convincingly | Rises convincingly |
| Drawdown in the test | Acceptable | Acceptable |
| A story explaining why it works | Yes | Yes, equally plausible |
| Behaviour in a period it never saw | Degrades gently | Falls apart |
Only the last row separates them, and it is the one row a backtest of the design period cannot show you — because both strategies were measured on the very data that produced them.
So a strong historical return is not evidence of anything by itself. It is a starting observation that raises a question: is this the result of an idea, or the result of a search?
Two things push the answer towards "an idea": the logic was decided before the testing rather than discovered during it, and the result does not depend on any one setting being exactly right.
Overfitting and curve fitting
The two terms get used interchangeably and it is worth separating them, because one is the problem and the other is how you cause it.
Overfitting is the condition: a set of rules has learned the noise in your test data rather than anything general about markets, so it describes the past far better than it will describe the future. Curve fitting is the practice that produces it — adjusting rules until they match historical data closely.
Curve fitting is rarely deliberate. Almost nobody sets out to fit the past. It arrives one reasonable-looking change at a time, each justified by a slightly better result, and the strategy is thoroughly overfitted long before anyone decides to overfit it.
How curve fitting actually arrives
- You have an ideaStated as a small number of rules
- The result disappointsReasonable — most first attempts do
- You add a conditionEach one sounds like a genuine improvement
- The number improvesIt almost always will, which is the trap
- Repeat until satisfiedThe strategy now describes the test period
Every individual step in that loop is defensible. That is precisely why the process is so hard to catch from the inside — at no point does it feel like anything other than careful work.
The tells are recognisable, and they are easier to see in someone else's strategy than your own:
Signs a strategy has been fitted to the past
- You cannot restate the logic in one sentence without listing conditions.
- Parameters are oddly specific — a 47-day lookback rather than roughly two months.
- The result changes a lot when you nudge one threshold slightly.
- Conditions were added after seeing results, and kept because the number improved.
- You cannot say what market behaviour the strategy is relying on, only what it did.
- It performs remarkably well in the tested period and you have not tried another.
The third one is the most useful diagnostic. A strategy expressing a real idea should tolerate small changes: if six-month momentum works, the neighbouring windows — three and nine months — should point the same way, even if not as strongly. If 6 works and both neighbours collapse, the strategy has learned something about the specific data rather than about momentum.
Design choices that tend to be durable
Robustness is mostly decided when the strategy is designed, not repaired afterwards. Creating Your First Investment Strategy covers how a beginner picks these values in the first place; what follows is the question to ask of each choice once you care whether it lasts.
Few rules, each earning its place
Every condition should correspond to something you believe about markets. If you cannot say what a rule is for without referring to the backtest, it is decoration that also filters your universe.
A universe defined by why
Choose the eligible set because of what it represents — size, tradability, breadth — rather than because that combination backtested well. A universe tuned for results is curve fitting applied one level up.
Ranking that expresses one idea
The ranking method should follow from your thesis. If the idea is about steadier climbers, a volatility-adjusted ordering follows; if it is about raw movement, absolute returns does. Picking whichever ranked better historically inverts the reasoning.
Diversification you chose on purpose
Holding count and how capital is spread across holdings should reflect how much of the outcome you are willing to let one company decide. Concentration that emerged because few stocks passed your filters is not a decision, it is a side effect.
Rebalancing deserves its own note, because it is where a design most often contradicts itself. The cadence should follow from the idea's timescale. A thesis about multi-month trends reviewed daily will trade constantly on movements the thesis does not care about; a fast-moving idea reviewed once a month will miss the changes it exists to capture. Neither is a wrong setting in isolation — both are mismatches with the rest of the design.
Underneath all five is one principle: prefer logic you could defend to a sceptical person who has not seen your results. If the only defence is the backtest, there is no defence.
Testing against conditions it wasn't built on
The single most useful thing you can do with a promising strategy is run it against a period you did not use while designing it.
This works because of what it risks. A strategy fitted to 2021–2023 has learned that period's particular character. Run it across a stretch with a different character — a sharp fall, a long flat drift, a rotation between market segments — and fitted strategies tend to deteriorate sharply while robust ones degrade gently.
NiveshBuddy's history begins in 2021, so "another period" means dividing what there is rather than reaching for a different decade. Design on one stretch — set the Backtest Period to Custom and choose, say, 2021 to 2023 — then run the unchanged rules over 2024 onwards. How far back you can reach also depends on your plan. A shorter history makes this split more valuable, not less: it is the only out-of-sample check you have.
What you are looking for is not a good result. It is consistency of behaviour — and each thing you check has a reassuring answer and a worrying one.
| What to check | Reassuring | Worrying |
|---|---|---|
| Positions held | Roughly the number you designed for | Frequently sitting in cash, unable to fill the portfolio |
| Trading activity | Similar to the original period | Churning several times more in one regime |
| Worst drawdown | Recognisably related to what you saw before | Several times deeper |
| Bad stretches | Explainable in terms of the idea | Inexplicable, or explained only after the fact |
| Sensitivity | Small parameter changes barely matter | One nudge changes everything |
A strategy that returns less in an unfamiliar period but behaves the way its logic implies has passed something meaningful. One that returns well for reasons you cannot account for has not — it may simply have found a second coincidence.
Worth stating plainly: none of this makes a strategy reliable. Markets change in ways no historical test anticipates, and a robust design can still disappoint. What validation buys you is the removal of some strategies that were never going to work, which is a smaller claim and a real one.
Where Experiments fit
On plans that include it, Experiments run many variations of one strategy in a single pass — different ROC windows, holding counts, exit ranks and so on — and list every configuration ranked by the measure you choose. That makes them the most convenient sensitivity check in the product, and the most convenient way to overfit.
Used well, an experiment answers the question from the checklist above: does the result survive a nudge? Look at whether neighbouring configurations agree — the results page can expand close variants of each one for exactly this. A configuration whose neighbours do roughly as well is expressing an idea; one that stands alone at the top of a list of thousands has probably found a coincidence.
Used badly, an experiment is curve fitting at scale. Rank enough configurations on one historical window and the first-ranked one will always look excellent, because the ranking itself picked it for fitting that window. Treat the first place as a candidate to test on a period it was not ranked on, never as the answer.
Common misconceptions
- "A higher backtested return means a better strategy." It may mean a better strategy or a more thoroughly fitted one, and the number alone cannot say which.
- "More rules mean more sophistication." More rules mean a narrower eligible set and a closer fit to history. Sophistication is usually fewer rules that you can defend.
- "Robust means it won't have bad periods." Every equity strategy has bad periods. Robust means the bad periods are the kind its logic implies, not a surprise that reveals the logic was never there.
- "If it survives another period, it works." Surviving one more window is evidence, not proof. It removes some false candidates; it does not confirm the survivor.
- "I'll fix it by optimising the parameters." Searching harder over the same data — by hand or with an Experiment — is the mechanism that creates the problem, not the remedy for it. Use a search to check sensitivity, not to pick a winner.
Key takeaways
- Robustness means behaviour that survives a change of period or a nudged parameter — a different goal from the best historical result.
- Any dataset contains coincidences; search it hard enough and you will find rules fitting them, with a backtest that looks identical to a real edge.
- Overfitting is the condition — rules that learned noise; curve fitting is the practice that causes it, one reasonable-looking change at a time.
- The sharpest tell of curve fitting is fragility: if a small change to one threshold collapses the result, the strategy learned the data rather than the idea.
- Every rule, and the universe and ranking behind it, should correspond to something you believe about markets rather than something that improved the number.
- Rebalance cadence should match the timescale of the idea; a mismatch there quietly undoes the rest of the design.
- Test against a period you did not design on, and judge consistency of behaviour rather than the return it produces — with history from 2021, that means splitting the window you have.
- Experiments are a sensitivity check when you look at whether close variants agree, and an overfitting machine when you take the first-ranked configuration as the answer.
