By Kaizen · 13 October 2026 · Monks Of Market
Educational disclaimer: This article is for education only and is not financial advice. Trading involves substantial risk of loss. Nothing here guarantees a strategy will work live — it teaches you five tests that catch overfit backtests before they cost you real money.
Your backtest shows a 2.8 Sharpe, a smooth equity curve, and returns that would make your salary look like a rounding error. Here’s the uncomfortable question: how do you know the strategy found a real edge — or just memorised the past?
You can find out before you put real money at risk. Five concrete tests catch overfitting in backtesting — the cliff test, the landscape test, the dice-count, the walk-forward test, and the rationale test. Pass all five and the strategy still isn’t guaranteed to work live — nothing is — but it has survived the standard ways overfit backtests get caught.
Think of a backtest like a practice exam. A student who actually understands the subject does well on any version of the test. A student who memorised the answer key to one specific practice paper scores perfectly on it — then fails the real exam, because the questions moved. Overfitting is exactly that: rules tuned so tightly to one slice of history that they captured that dataset’s noise, not a repeatable edge.
The backtest is beautiful. The future is a stranger.
And here’s the part most retail traders never hear: overfitting isn’t a rare technical footnote. It’s the default state of every backtest that went through an optimizer. This article teaches you how to catch it while the damage is still on paper.
Overfitting, explained: your strategy memorized the practice test
Overfitting — retail traders often call it curve fitting in a trading strategy — happens when you adjust rules and parameters until the historical results look great. Each tweak steers the strategy closer to the specific quirks of the data you tested on: the exact volatility of 2023, the exact way BANKNIFTY trended on budget day, the exact number of times NIFTY rejected a level that no longer matters.
The strategy did not learn trading. It learned that dataset.
The cruel part: this can happen to a backtest that passed every evidence test we covered earlier in this series. The sample can be large enough. The numbers can be computed honestly. The out-of-sample window can exist. And the strategy can still be a fantasy — because the optimizer searched until it found a winner, and the winner is the luckiest loser of a hundred quiet losers.
If you want the framework for judging whether a strategy works at all, that lives in our verdict framework; what this article owns is the deeper question: was the sample you measured even honest in the first place?
One more thing to hold in your head for the whole article: detecting overfitting is not a guarantee of future profit. It is a filter that catches lies.
A strategy that passes all five tests can still lose money live — markets change, execution is imperfect, costs bite. Risk of losing capital is always on the table, in testing and in trading.
The optimizer is your opponent
Most traders treat the optimizer like an assistant: a friendly tool that searches thousands of parameter combinations and reports the best one. Flip that around. The optimizer is your opponent — and the settings it hands you with the most confidence are statistically the most likely to be noise-fitted.
Why? It’s a direct consequence of the multiple-testing math in Test 3 below. Run hundreds of variants and keep the best, and you’re not selecting the best strategy. You’re selecting the luckiest draw. The single best row of an optimization grid is the most over-fit row by construction: the one combination that happened to align with the noise of that specific dataset. With 100 random tries, even a strategy with zero edge produces an expected best result that looks impressively significant — the math grows like the square root of the logarithm of the number of trials, the √(2 ln N) rule.
This produces a psychological trap worth naming once: the more hours you spend systematically tuning, the more confident you feel — and the more confident you feel, the less the confidence is worth. Settings found after an afternoon of careful optimisation carry the highest risk of being fitted to noise. That confidence is a feeling about your effort, not evidence about the edge.
(The deeper psychology of why we trust our own tuning belongs to Week 3; here it’s just a warning label.)
The warning-sign checklist: how curve fitting in a trading strategy shows up
Before the five tests, a quick scan. None of these is a guilty verdict on its own — every threshold below is a practitioner convention, not a statistical law — but a backtest ticking three or more is waving a flag:
- A suspiciously smooth equity curve. A backtest equity line that climbs like a staircase with no real drawdowns is rarely describing a market you will trade. Some practitioners flag curves that look almost too straight (an R² above ~0.99 on the equity line) as a warning sign — markets have chop; an equity curve without it is usually memorizing the route.
- The edge exists only at one precise parameter value. If the strategy needs exactly 17.3 and dies at 17 or 18, that is not precision — it is a confession. (This becomes Test 1.)
- In-sample dazzles, out-of-sample collapses. If the strategy was tuned on 2021–2023 and limps through 2024–2025, one common practitioner rule of thumb says an in-sample profit factor more than roughly double the out-of-sample profit factor is a serious warning — but treat it as a flag, not a verdict.
- It works on exactly one asset or timeframe. A strategy that prints money on NIFTY 15-minute but loses on BANKNIFTY 15-minute — and has no reason why — memorized one instrument’s quirks. Cross-asset consistency is one of the cheapest robustness checks there is.
- More parameters than trades can support. As a rough working convention, some practitioners get nervous beyond about one tuned parameter per 30 trades — tuning 12 parameters on 200 trades means the strategy had 12 dials to memorize 200 data points.
- Most of the profit came from two or three trades. If over ~30% of the total profit rests on the top three trades, you may not have an edge — you may have three lucky events with rules wrapped around them.
- A suspiciously high win rate on too few trades. Practitioners tend to raise an eyebrow at win rates above ~80% on fewer than ~100 trades: often a sign the rules were shaped to include winners and exclude losers after the fact.
- Too few trades overall. A dazzling Sharpe on 40 trades is a story about luck, not an edge — the evidence contract covers the trade-count math in depth.
- No logical market reason for the rules. If you cannot explain why the rule should work in market terms, the optimizer probably just found noise. (This becomes Test 5.)
AI and machine-learning models deserve one extra line here: they are overfitting machines by nature. A model with thousands of internal parameters will fit anything, including pure noise — spurious correlations that look like discovered edges but vanish the moment the data changes. Simplicity is the defense; complexity without validation is the trap.
Test 1 — The parameter cliff test: nudge every parameter and watch for the cliff
Here’s the signature test of this article — and the detective question to ask of any strategy, including ones you bought from someone else:
“Why 17.3 and not 20?”
If the answer is “because 17.3 backtests better,” you have learned nothing about the market and everything about the dataset. A robust edge is a flat-topped hill: change the parameter a little, and performance degrades a little, gracefully. An overfit edge is a single sharp spike: change the parameter a little, and performance falls off a cliff.
Run the nudge. For every parameter the optimizer tuned — the lookback length, the stop-loss multiple, the RSI threshold, all of them — shift it by ±10% and ±20% and re-run the backtest. Watch profit factor (the working metric here — the full breakdown lives in our profit factor guide):
- A robust setting stays comfortably profitable across the whole ±20% range — the curve degrades like a gentle hill.
- An overfit setting prints a great number at exactly the chosen value and collapses when nudged — the curve is a needle.
As a working practitioner rule of thumb, some traders use this bar: profit factor should not collapse below ~1.2 on a ±10% shift, and holding above ~1.3 across the full ±20% range signals a genuine plateau. That is a convention from practitioner scorecards, not a proven threshold — other practitioners use different bars (for example, the metric staying within ~70% of baseline).
The point is the shape, not the number: flat hill good, sharp spike bad.
The folk wisdom “prefer round numbers” fits here as color, not as law: an edge that needs 17.3 but not 20 or 15 is a confession; an edge that survives at 20, 25, and 30 is a candidate. Precise parameters are not a feature. They are a suspect list.
The test to run: the cliff protocol
- List every parameter you tuned — the lookback lengths, thresholds, stop-loss multiples, all of them.
- Re-run the backtest at −20%, −10%, +10%, and +20% of each chosen value.
- Record profit factor at each point and sketch the curve.
- Read the shape: graceful flat-topped degradation = plateau (candidate); vertical collapse = cliff (reject).
- Working bar (practitioner rule of thumb, not a law): profit factor should not collapse below ~1.2 on a ±10% shift.
Test 2 — The landscape test: pick the plateau, not the peak
The cliff test nudges one parameter at a time. The landscape test zooms out and reads the whole neighbourhood — and it’s the centrepiece of this article, because nobody should ever read the single best row of an optimization grid.
Open your optimization results as a grid or heatmap. Ignore the winner for a moment and look at the rows around it. You are asking one question: is the best result a peak or a plateau?
- The plateau: a profit factor of, say, 1.3 — surrounded on all sides by neighbors that are also profitable. Modest, boring, and surrounded by friends. This is a region of genuine edge.
- The isolated spike: a profit factor of 2.5 — surrounded by neighbors that lose money. Spectacular, lonely, and statistically indistinguishable from the optimizer finding the one combination that happened to match the noise.
Pick the plateau, not the peak. A PF 1.3 surrounded by profitable neighbors is worth more live than an isolated 2.5 surrounded by losses. The uncomfortable corollary: the setting you would most proudly show a friend — the optimizer’s top row — is the one you should trust least. The landscape is honest where the winner is not.
The test to run: the landscape protocol
- Open the full optimization grid — not just the top row, the whole table or heatmap.
- Find the winner. Now look at the 20–30 nearest neighbors: are most of them profitable?
- If yes — the winner sits on a plateau. Take the plateau’s centre (a round, unremarkable setting inside the profitable region), not the peak.
- If the winner is an island surrounded by red — reject the peak. Either pick the centre of the best profitable cluster, or accept that the grid has no robust answer.
Test 3 — The dice-count: how many times did you roll the dice?
This is the pub version of a serious statistical idea. Count how many strategy variants you tried — including the ugly ones you deleted. Every variant you tested and threw away counts against the winner, because the winner was picked from that pile.
The logic is simple: if you roll a die once and get a six, that is mildly interesting. If you roll a hundred times and report only the six, nobody should be impressed. A backtest “winner” pulled from 100 discarded tries is the six you reported. The more times you rolled, the higher the bar the winner must clear before it means anything.
Practitioners have turned this into a rough rule of thumb for the bar the winner’s Sharpe ratio must clear:
- ~100 variants tried → demand observed Sharpe ≥ ~2.5
- ~10 variants tried → demand Sharpe ≥ ~1.8
- 1 pre-registered hypothesis → Sharpe ≥ ~1.0 earns its nominal weight
That ladder is a practitioner translation of real order-statistics math (the expected best result among N tries grows roughly like the square root of the logarithm of N — the √(2 ln N) rule), but it is a rule of thumb, not a theorem.
Deflated Sharpe ratio explained
The formal version exists: the deflated Sharpe ratio, explained for retail traders, is this — a 2014-era peer-reviewed study by two quant researchers (Bailey & López de Prado, published in the Journal of Portfolio Management) asks not “is the Sharpe high?” but “given that I selected the best Sharpe out of N trials, what is the probability the true Sharpe is actually positive?” It deflates the winner for the number of trials, the sample length, the correlation among the trials, and the nastiness of the returns (skew and fat tails).
Third-party research, cited as such — not our invention, and not our data.
There is a related coin-flip test worth one line: the Probability of Backtest Overfitting (Bailey and co-authors, SSRN working paper 2013; published in the Journal of Computational Finance in 2017) estimates the chance that the strategy selected as best in-sample ends up below the median strategy out-of-sample. A value near 0.5 means the selection procedure is a coin flip — pure luck. Practitioners often use ~0.2 as a rough acceptance bar, but that line is a practitioner convention, not a finding of the paper.
And the cheapest fix of all is the one we made a contract about earlier: pre-registration. Write down your hypothesis, parameters, universe, and exit rules before you touch the data. A pre-registered single hypothesis carries a trial count of N = 1 — one die roll, an honest count.
That is why the dice-count only works if your N is honest, and why the evidence contract exists: it is what makes the count possible. If you cannot count how many variants you tried, your N is unknown — and the Sharpe is guilty until proven innocent.
The test to run: the dice-count protocol
- Write down N: every variant you tried, including the deleted and abandoned ones. Be honest — the optimizer’s history file is the witness.
- Match N to the bar: ~100 tries → the winner needs Sharpe ≥ ~2.5; ~10 tries → ≥ ~1.8; one pre-registered hypothesis → ~1.0.
- The Sharpe must clear its N-bar, not just look good in isolation.
- If you cannot reconstruct N, treat the result as guilty until proven innocent — re-run from a pre-registered hypothesis.
Test 4 — Walk-forward testing: make the strategy earn its future
This is the closest thing to real trading a backtest can produce — walk-forward testing. Optimise the parameters on an initial window of data, lock them, test the locked strategy unchanged on the next unseen slice, then roll both windows forward and repeat. Chain the out-of-sample segments together. At every point in that chained result, the strategy only ever saw data that was genuinely its future.
There is one hard rule, and it is where most retail traders quietly commit overfitting without knowing it: the contamination rule. The moment you peek at an out-of-sample slice to tweak the rules, it is no longer out-of-sample — the test is void. It is the practice test you graded before taking. An out-of-sample window may be spent exactly once, and never iterated on. Tweaking after seeing the result is just fitting to a slightly larger dataset.
How do you read the result? Practitioners compare the chained out-of-sample performance to the in-sample performance with a walk-forward efficiency ratio (annualized out-of-sample divided by annualized in-sample). The labels below are practitioner conventions — soften them in your head, never treat them as gates:
- Out-of-sample capturing roughly 70% or more of in-sample performance — practitioners read this as strong robustness.
- ~50–70% — acceptable; much of the edge survived.
- Below ~30–50% — the edge likely does not survive the future; overfitting is the leading suspect.
One caution that keeps this test honest: some out-of-sample degradation is normal. A strategy that drops from a great in-sample to a merely good out-of-sample is describing reality, not failing the test. Collapses driven by a market regime changing — a trend system meeting a choppy year — are a different problem from overfitting, and our backtest-to-live guide explains why some decay is expected.
Do not confuse a regime gap with a fitting failure; this test hunts the second one.
As for how much data to reserve out-of-sample: one common convention is ~20–30% of the dataset spanning different market regimes (bull, chop, crash), and the classic textbook split is roughly 70% train / 15% validate / 15% test. Those are conventions, not rules — pick one, state it, and never move the boundary after you have seen what is inside.
The test to run: the walk-forward protocol
- Split the data (one common convention: ~70% train / 15% validate / 15% test, or ~20–30% out-of-sample spanning different regimes — a convention, not a law).
- Optimize on the first window. Lock the parameters.
- Test the locked strategy unchanged on the next unseen slice. Roll both windows forward. Repeat.
- Chain the out-of-sample segments; compute efficiency = annualized OOS / annualized IS.
- Read it softly: ~70%+ strong, ~50–70% acceptable, below ~30–50% likely overfit.
- Hard rule: one peek at the test slice for tweaking voids the test. It is spent exactly once.
Test 5 — The rationale test: explain it to a trader friend
The final test needs no software. Explain the strategy, rule by rule, to a trader friend in plain words — and give the market reason for each rule. Not the Sharpe reason. The market reason.
- “We buy when the 20-day breaks above the 50-day” → why should that work? What market behavior does it capture — trend persistence, institutional rebalancing flows, something real?
- “The stop-loss is 1.8× ATR” → why 1.8? What is it protecting against?
- “We exit at 3:15 PM” → because of what? (If the answer is “because exits after 3:20 kept getting whipsawed in 2023,” that is a fitting artifact wearing a rule’s clothing.)
Any rule whose only justification is “the optimizer liked it” is a fitting artifact until proven otherwise — delete it, or validate it on genuinely unseen data and across a second asset or timeframe. An edge that is real shows some consistency across similar instruments: a NIFTY intraday edge that evaporates on BANKNIFTY intraday, with no reason why, memorized one instrument’s quirks.
(The full Indian-regime treatment of this is in the next section.)
“Prefer round numbers” earns its last appearance here as folk wisdom, not law: nobody’s market theory says the edge lives at exactly 17.3 and dies at 17. If the parameter cannot be defended with market logic, it does not belong in the strategy — no matter what the backtest says.
The test to run: the rationale protocol
- Write each rule and parameter in one plain-English sentence, with its market reason attached.
- Delete any rule whose only justification is “the optimizer liked it.”
- Explain the whole strategy to a trader friend. Any part that sounds like numerology gets cut.
- Sanity pass: check the edge on a second asset or timeframe. Memorized quirks rarely travel.
The Indian F&O angle: regime-fit, the cost stack, and expiry reality
This is where overfitting meets the Indian retail trader’s actual battlefield — and it is the angle no competitor writes about. Overfitting has a cousin: regime-fit. A strategy optimized on the 2020–21 post-COVID bull — relentless uptrends, cheap volatility, dips that always recovered — then traded into a 2022-style drawdown environment is not necessarily curve-fit to parameters. It is curve-fit to market weather. The rules memorized one regime. Walk-forward testing across different regimes is the defense, and the contamination rule applies here too: if you noticed the 2022 collapse and “adjusted,” you spent the window.
Then there’s the cost stack, and it’s where paper edges go to die. An over-optimised backtest with a gross edge of, say, ₹180 per trade can look robust through every test above — and still be a fantasy, because the Indian F&O cost stack takes its cut on every single round trip: STT on the sell leg, stamp duty on the buy leg, exchange charges, SEBI turnover fees, and GST on the brokerage and charges.
(The full schedule lives in our options charges guide — linked, not repeated here.)
The nastiest cost is the one most backtests never model at all: the option buyer’s bid-ask spread. A retail buyer lifting the offer on a weekly NIFTY option routinely pays several ticks of spread per leg — often the single largest cost of all, and completely invisible in a backtest that fills at mid-price or last-traded-price.
A strategy that churns — dozens of small trades, each tuned to capture ₹150 of “edge” — is exactly the profile where STT plus spread erases the paper profit and turns the live account red. Churning strategies are also exactly the profile where overfitting hides, because high trade counts make every metric look statistically confident. That combination — statistically confident backtest, negative live expectancy after costs — is the most expensive illusion in Indian retail options.
Expiry-week adds the last layer. Liquidity concentrates, spreads widen on strikes away from the money, gamma moves accelerate, and execution on Thursday afternoon bears little resemblance to the backtest’s assumptions. A strategy optimized on mid-week fills and traded into expiry is fitting one execution regime and trading another.
So the Indian version of the detection protocol has three extra questions: does the edge survive across regimes (not just across parameters)? Does it survive the real cost stack, spread included — or only the broker’s headline brokerage? And does it survive expiry-week execution, or only Tuesday-afternoon fills?
Overfitting vs look-ahead bias: two different lies
One precise paragraph, because traders confuse these constantly. Overfitting is fitting to past noise — the strategy learned the wrong lesson from history; the backtest is honest about what the rules did, but the rules are useless going forward. Look-ahead bias is using future information — the strategy cheated; the backtest shows what the rules would have done if they could see tomorrow. The classic retail example is a repainting indicator: one that redraws its past values as new bars arrive, so historical signals look perfectly timed — signals that could never have been traded live, because the information they used did not exist yet. Both make the backtest lie, in different directions: overfitting lies about the future, look-ahead bias lies about the past.
Why forward-testing isn’t the shortcut you want
At this point a reasonable trader asks: why not skip all five tests and just forward-test everything — paper trade it or run tiny size live and watch? Because forward-testing is honest and slow. A strategy that trades twice a month needs a year of forward data before the sample says anything.
The five tests above are the fast filter that decides which strategies deserve that year. (Our verdict framework and the paper-vs-real piece covers the honest endpoint: start small live and compare.)
Two honest one-liners to close the loop on common questions. Monte Carlo prices the path — the distribution of possible equity curves — not the honesty of the sample; it cannot detect overfitting by itself. (Full treatment arrives with our Monte Carlo piece.) And our own What-If Trade Simulator is a path-pricer, not a lie detector: it prices the path of an overfit-free sample, but feed it an overfit sample and you get priced garbage out — it cannot tell you the sample was dishonest.
How to detect overfitting in trading strategy: the Week-2 protocol, in order
You now own the complete detection kit. Here is the run order, distilled into a signature table built from this article’s five tests — our summary, in our words:
| Signal | Overfit signature | Robust signature |
|---|---|---|
| Parameter nudge (±10–20%) | Falls off a cliff — one exact value works | Flat-topped hill — degrades gracefully |
| Optimization landscape | Isolated 2.5 spike, losing neighbors | Plateau of 1.3s, profitable neighbors |
| Dice-count | Unknown N; winner clears no bar | Known N; Sharpe clears its N-bar |
| Walk-forward | Out-of-sample far below in-sample, efficiency below ~30–50% | Out-of-sample holds ~50%+ of in-sample |
| Cross-asset check | Works on one asset/timeframe only | Shows some consistency across similar instruments |
| Market rationale | “The optimizer liked it” | Every rule has a market reason |
| Equity curve | Suspiciously smooth, no real drawdowns | Has chop and drawdowns like a real market |
The run order:
- The cliff test — nudge every parameter ±10–20%; reject the cliffs.
- The landscape test — read the neighborhood; pick the plateau, not the peak.
- The dice-count — write down N; make the Sharpe clear its bar.
- The walk-forward test — optimize, lock, roll; never peek at the test slice.
- The rationale test — explain it to a friend; cut what you cannot justify.
And the Week-2 arc, for series readers running the full protocol: the verdict framework told you how to judge a strategy → the evidence contract told you what evidence counts → the backtest-to-live guide showed you the gaps between paper and reality → real expectancy gave you the honest number → this article asked whether the sample was honest in the first place.
Next: the Monte Carlo piece prices the path that honest sample can take, and the paper-vs-real piece runs the final proof — start small live and compare.
The question this article opened with has a plain answer now. A great backtest is a claim, not a finding. Run the five tests. Keep what survives. The market will test everything you didn’t.
Questions traders actually ask about overfitting
What is overfitting in trading?
Overfitting — often called curve fitting — is tuning a strategy’s rules and parameters so tightly to one historical dataset that they capture that dataset’s noise instead of a repeatable edge. The practice-test analogy: the strategy memorized the answers to one specific past paper instead of learning the subject. The result is a beautiful backtest with no predictive power — it tells you what worked on that data, not what will work next.
How do I know if my backtest is overfit?
Run the warning signs as a checklist, not a verdict: a suspiciously smooth equity curve with no real drawdowns; an edge that exists only at one precise parameter value; in-sample numbers that dazzle while out-of-sample numbers collapse; a strategy that works on exactly one asset or timeframe; more tuned parameters than the trade count can support; most of the profit coming from two or three trades; and no logical market reason for the rules. Tick three or more, and run the five tests in the article above. For the trade-count math behind “too few trades,” see the evidence contract.
What is the parameter-cliff test?
The parameter-cliff test — the signature detection test in this article — works like this: take every parameter the optimizer tuned and nudge each one ±10–20%, re-running the backtest at each step. A robust edge degrades gracefully, like a flat-topped hill. An overfit edge falls off a cliff — one exact value works and the neighbors collapse. As a working practitioner rule of thumb, profit factor should not collapse below ~1.2 on a ±10% shift; an edge that needs exactly 17.3 and dies at 20 is a confession, not an edge. (Profit factor itself is the metric, not the lesson — the profit factor guide covers it.)
What is walk-forward testing?
Walk-forward testing means optimizing a strategy on an initial window of data, locking the parameters, testing the locked strategy unchanged on the next unseen slice, then rolling both windows forward and chaining the out-of-sample segments together. At every point, the strategy only ever saw data that was genuinely its future — the closest thing to real trading a backtest can produce. Practitioners softly read the efficiency (out-of-sample ÷ in-sample): roughly 70%+ is strong, ~50–70% acceptable, below ~30–50% likely overfit. And the hard rule: peek at the test slice to tweak the rules, and the test is void.
How many strategies can I test before the winner stops meaning anything?
There is no fixed number — there is a rising bar. Every variant you tried and discarded counts against the winner, like dice rolls you are not allowed to hide. As a practitioner rule of thumb: if you tried ~100 variants, the winner needs an observed Sharpe of at least ~2.5 to mean anything; ~10 tries → ~1.8; one pre-registered hypothesis → ~1.0 earns its nominal weight. The formal version, a 2014-era peer-reviewed study (the Deflated Sharpe Ratio), asks: given N trials, what is the probability the true Sharpe is actually positive? And pre-registration — writing the hypothesis down before touching the data — is what makes your count of N honest; see the evidence contract.
My Sharpe ratio is 3 — is my strategy amazing?
Maybe — but practitioner consensus says a Sharpe that good is suspicious first and amazing second. Far more often, a 3+ Sharpe on a retail backtest means one of three things: the strategy is overfit, the trade count is too small for the number to mean anything, or costs were ignored (a backtest Sharpe computed on gross returns in Indian F&O, where STT and spreads bite, is a laboratory number — our charges guide shows the real stack). Run the cliff test and the dice-count before celebrating. For what Sharpe actually measures, see real expectancy.
What is backtest overfitting vs look-ahead bias?
Overfitting is fitting to past noise — the strategy learned the wrong lesson from history, so the backtest is honest about what the rules did but the rules are useless going forward. Look-ahead bias is using future information — the strategy cheated, so the backtest shows what the rules would have done if they could see tomorrow. The classic retail example is a repainting indicator that redraws past values, producing perfectly timed historical signals that could never have been traded live. Both make the backtest lie, in different directions: overfitting lies about the future, look-ahead bias lies about the past.
Can a simple strategy with few parameters still be overfit?
Yes. Parameter count is only one source of fitting — the other is selection. A two-rule strategy is no defense if you ran hundreds of simple variants and kept the winner; that winner is the luckiest draw of the pile, and the dice-count test (Test 3) catches it. A simple strategy can also be overfit by being tuned to one short or one-regime sample, which no parameter count can fix. The defense is the honest trial count: pre-register the hypothesis before touching the data (N = 1) so the selection step never happens.
Why does my strategy work on NIFTY but not on BANKNIFTY?
Treat it as a warning sign, not a verdict. The usual explanation is single-asset fitting: the rules memorized the quirks of one instrument’s history — its typical volatility, its intraday rhythm, its specific reactions to news — rather than capturing a repeatable market behavior. The cross-asset check from Test 5 is the cheap way to find out: an edge that is real tends to show some consistency across similar instruments. There is one honest exception: a rule with a genuine market reason to be asset-specific (say, a structure unique to how NIFTY weekly options are priced). If you cannot name that reason, the difference is probably fitting, not edge.
How do I avoid overfitting in backtesting?
Run the five tests in this article before trusting a backtest: the cliff test, the landscape test, the dice-count test, walk-forward testing, and the rationale test. A backtest that passes all five has found an edge; one that fails the cliff test has memorised the past.
Monks Of Market is an educational publication. Nothing here is financial advice. Backtesting detects lies in historical data; it cannot guarantee future results, and all trading involves risk of loss.