strateva.

Articles

Parameter stability: a plateau says more than a peak

In this article

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

  1. 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.

The best parameter moves; the plateau does notSharpe of the rule "invested when the S&P 500 is above its N-month average", for N from 2 to 24, in each half of the history. In 1873–1948 the maximum is at 3 months (0.91); in 1948–2026, at 11 months (1.26). No value stands out from its neighbours: what repeats is a wide zone, not a point. The series uses monthly averages of daily closes, which flatters all these rules equally.
0.60.81.01.226101418223 months11 months

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:

  1. 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.
  2. 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.
  3. 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:

  1. Decide the range before looking. For example, the chosen value and 10% and 20% above and below. Write it down.
  2. Show the whole zone, not the maximum. What gets reported is the result across the range: the worst, the median and the best.
  3. 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".
  4. Count these tests as variants. If you change something anyway, every combination you looked at goes into the variant log.
  5. 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 parameterReading
The result changes little across the rangeStable in that range
It falls gently as you move awayReasonable; note how far it holds
It changes sign with a small stepFragile: the chosen value is not reliable
The best value is at the edge of the rangeThe range tested does not contain the good zone, or there is none
Each half of the history prefers a different valueNormal 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.

All articles

CONTACT

Tell me about your strategy. I will say whether it fits within 48 business hours.

Tell me what you want checked, the asset, the frequency and what you have: rules, a report or code. I will tell you whether it fits and which plan it would be.

What to include in your email

  • Market, instruments and frequency (Spot only).
  • What you want checked, and the period.
  • Language and approximate code size, without pasting the code.
  • What data you have, and whether you need an NDA.

Do not send private code, keys or passwords.

stan@strateva.ai

Reply within 48 h (business days). No private material in the first message. No obligation to commission work.

Who replies

I am Filip Stanciu. I have an MSc in Quantitative Finance from the University of Alcalá, a degree in Finance from the Complutense University of Madrid, and a MiFID II certificate. I have worked in quantitative research for an asset manager, validating stock and ETF strategies. I read and reply to every email myself.

I am not a certification body and I am not a large team. I am one person, and I say so.

Nicolae Filip Stanciu