Your strategy uses a 20-session average and gives a great result. What about 18? And 22? If you don't know, you don't yet know whether you have found anything.
This check is one of the cheapest there is and one of the most decisive. The risk is doing it badly: using it to hunt for an even better value, which is exactly the problem it was meant to detect.
Peak and plateau, in one sentence
- A peak is a parameter value that gives a very good result surrounded by much worse neighbours. Change 20 to 19 and the edge is gone.
- A plateau is a wide zone where the result barely changes. 18, 20 or 22 make no difference.
If an idea is real, it normally doesn't depend on an exact number. Markets don't know you chose
- An isolated peak is almost always a value that happened to fit that particular history.
An example with 153 years of markets
We took a very simple rule on the S&P 500: be invested when the index is above its N-month average and out when it isn't. We ran it with every value of N from 2 to 24, in two halves of the history separately.
Length of the average, in months
- 1873–1948
- 1948–2026
- Maximum of each half
Source: Robert Shiller’s monthly S&P 500 series, with dividends. No risk-free rate deducted; time out of the market earns zero.
Three readings:
- The best value moves. In 1873–1948 the maximum is at 3 months. In 1948–2026 it is at 11. Anyone who had optimised on the first half and applied the result to the second would have got a Sharpe of 1.11, below every length between 7 and 14 months.
- No maximum stands out. Over the whole period the best length is 9 months, with a Sharpe of 1.03. Its neighbours, 8 and 10 months, give 1.01 and 1.00. Every length between 2 and 14 months falls between 0.94 and 1.03.
- What repeats is the shape. In both halves there is a wide zone of short and medium lengths with similar results, and a gentle slope down towards the longer ones. That is a plateau.
The honest conclusion is not "the optimal average is 9 months". It is "averages from a few months to a little over a year behave similarly, and choosing one or another inside that zone changes almost nothing".
How to run the check without optimising again
The danger lies in the next step. You look at the curve, see that 11 gives a little more than 10 and change the parameter. You have just optimised again, now with one more test on the list.
To avoid it:
- Decide the range before looking. For example, the chosen value and 10% and 20% above and below. Write it down.
- Show the whole zone, not the maximum. What gets reported is the result across the range: the worst, the median and the best.
- Don't change the parameter because of what you see. The check is there to confirm or discard the value you already had. If the neighbours contradict it, the result is "not stable", not "the good one was next door".
- Count these tests as variants. If you change something anyway, every combination you looked at goes into the variant log.
- With several parameters, move them together. A strategy can be stable in each parameter on its own and fragile when two move at once.
Which result builds confidence and which doesn't
| What you see when moving the parameter | Reading |
|---|---|
| The result changes little across the range | Stable in that range |
| It falls gently as you move away | Reasonable; note how far it holds |
| It changes sign with a small step | Fragile: the chosen value is not reliable |
| The best value is at the edge of the range | The range tested does not contain the good zone, or there is none |
| Each half of the history prefers a different value | Normal if the zone is wide; worrying if the maxima are peaks |
Honest limits
- A plateau doesn't prove there is an edge. It only says the result doesn't depend on an exact value. Every length can share the same flaw. In this example they do: the series uses the monthly average of daily closes, which smooths prices and flatters any trend rule, whatever its length.
- A plateau can be overfitted too. If you try many families of rules and keep the one with the prettiest zone, you have chosen by looking at the result again.
- It doesn't replace an out-of-sample test. It complements one. The right way to choose parameters is still walk-forward.
- Some parameters have no neighbours. A yes-or-no filter, or the choice between two assets, has no values in between. There the equivalent check is to remove the piece and see what is left.
What to ask if someone shows you an optimised strategy
- What result does it give with the parameter a little higher and a little lower?
- Was the range of that check fixed before running it?
- Is the chosen value the maximum of the search? How much better is it than the median?
- Were the parameters moved together or one at a time?
Where it fits in a validation
Our validation can include a sensitivity analysis around the declared parameters: the range is agreed before anything is run and the result of the whole zone is reported, not that of the best point. If the edge exists at one value only, the report says so.
These tests are part of the quantitative validation. At Strateva we validate strategies in stocks, ETFs, spot crypto and spot FX, always unleveraged and with no margin. We don't take engagements on CFDs, futures, perpetuals or options.
To ask whether yours fits, write to stan@strateva.ai with the market (stocks, ETFs, crypto or FX, spot), the frequency, how many parameters your strategy has and how you chose them. Don't send private code or passwords in the first email.
Educational and research content. Not investment advice. Our own calculation on Robert Shiller's monthly S&P 500 series, with dividends, from 1873 to 2026, split in November 1948. Rule: invested when the index is above its N-month average, with the signal applied the next month; time out of the market earns zero and neither costs nor the risk-free rate are deducted. Sharpe ratios are annualised from monthly returns.