Parameter Sensitivity Analysis: Find Robust Settings

Parameter Sensitivity Analysis: Find Robust Settings

Your best backtest is probably not your best strategy. Parameter sensitivity analysis is how you tell the difference. It asks one question: what happens to the result when you move each setting a little?

A strategy with good settings should survive small changes. A strategy that only works at one exact number probably found luck, not an edge.

This guide explains how to run the check, how to read it, and what to do with the answer.

What Is Parameter Sensitivity Analysis?

Parameter sensitivity analysis is a test of how much a strategy’s results depend on its exact settings. You take the settings you chose and change them one at a time. Then you see how far the results move.

A setting is any number in your rules. Examples include an RSI length, a moving-average period, a stop-loss distance or a breakout lookback.

It is different from parameter optimisation. Optimisation searches for the best settings. Sensitivity analysis checks whether the best settings deserve your trust.

Why Parameter Sensitivity Matters

Markets never repeat exactly. A 20-candle pattern last year may be a 23-candle pattern next year. Your rules need to cope with that drift.

If a strategy only works with a 20-period lookback, it depends on history repeating precisely. That is a fragile bet.

There is a second reason. Test enough settings and some will look good by chance. Researchers call this data snooping. The more combinations you try, the more likely your winner is a fluke.

Sensitivity analysis is a cheap defence. It does not need new data. It uses the same backtests you can already run.

Peaks Versus Plateaus

Picture your results plotted across one setting. The best value sits somewhere on that line. What matters is the shape around it.

A peak is a sharp spike. The best setting scores well, but its neighbours score poorly. Move the setting a few candles and the edge disappears.

A plateau is a broad, flat high area. Many nearby settings score about the same. The exact choice matters less.

Nudge the best setting 20% and the peak loses 85% of its scoreIllustration: two strategies scored across one setting, a lookback from 10 to 60 candles. Theblue one has a sharp peak; the cyan one has a broad plateau.102030405060Sharp peakBroad plateauBest setting ±20%: 19 to 29Lookback (candles)Illustration with made-up scores, not backtest results.
The peak scores higher at its best point. The plateau is the one that survives a nudge.

The peak often has the higher top score. That is exactly why it tempts traders. But a plateau is far more likely to hold up on new data.

What Counts as Too Sensitive?

There is no universal cut-off. A practical rule of thumb helps, though.

Move each setting about 10–20% either way. If returns or drawdown change dramatically, treat the setting as fragile. If they change gradually, the setting is probably stable.

Watch trade count too. A small change that halves the number of trades changes the strategy itself, not just its result.

How Do You Run a Sensitivity Test?

Start after you have a baseline backtest you like. Use the same pair, dates and fees for every run. Change only one thing at a time.

Sensitivity analysis in four steps, after the first backtestRun it on the same pair, dates and fees as the original test. Change one thing at a time.BaselineRecord the resultof your chosensettings1Nudge oneMove each setting10–20% up anddown2Grid twoTest the two mostimportantsettings together3Judge the shapeKeep plateaus,drop lone peaks4Process diagram.
Same data, same fees, one change per run.

Nudge One Setting at a Time

List every number in your strategy. For each one, run a backtest slightly above and slightly below your chosen value. Keep the others fixed.

Record the same metrics each time:

  • Net return after fees
  • Maximum drawdown
  • Number of trades
  • Average profit per trade

Test Two Settings Together

Some settings interact. A longer lookback might only work with a wider stop. Testing them one by one would miss that.

Pick your two most important settings. Test a small grid, such as five values each. That is 25 backtests.

The brightest cell stands alone. The useful region is the blockIllustration: a strategy scored on every pair of lookback and stop-loss settings. Brightermeans a higher score.Lookback (candles)102030405060Stop loss30%25%20%15%10%Lone spike: likely luckStable region: pick from the middleIllustration with made-up scores, not backtest results. Hover a cell.
Hover a cell. Pick settings from the middle of the stable region, not the lone bright cell.

Look for a warm region, not the single brightest cell. A lone bright cell surrounded by poor ones is the grid version of a peak.

Pick From the Middle

If you find a plateau, choose a setting near its centre. That gives the most room for the market to drift either way.

Settings at the edge of a plateau sit next to a cliff. A small change in market behaviour could push you off it.

How to Apply Parameter Sensitivity Analysis in Arrow Algo

Arrow Algo’s no-code visual builder makes the nudge step quick. Every setting lives in a block, such as an indicator period or a stop distance.

  1. Build your strategy with visual blocks and run a baseline backtest.
  2. Clone the strategy. Change one block’s setting and run the backtest again.
  3. Repeat for each setting, up and down.
  4. Use the Optimization tools to sweep two settings over a grid.
  5. Compare the results side by side and look for the plateau.

You can also ask an AI assistant connected to Arrow Algo to run the variants for you. Give it the exact settings to test and the metrics to report.

Sensitivity analysis pairs well with walk-forward analysis. Sensitivity checks the shape of your results. Walk-forward checks whether they hold on data the strategy has not seen.

What Are the Key Takeaways?

  • Parameter sensitivity analysis checks how much results change when you move each setting slightly.
  • Prefer broad plateaus over sharp peaks, even when the peak scores higher.
  • Nudge each setting 10–20% either way, one at a time, on the same data and fees.
  • Test your two most important settings together on a small grid.
  • Choose settings from the middle of a stable region, not its edge.
  • Treat a lone best result as a warning sign, not a discovery.

Disclaimer: This content is for educational purposes only and does not constitute financial advice. Trading involves significant risk and you should only trade with capital you can afford to lose. Past performance is not indicative of future results. Always conduct your own research before making any trading decisions.

Ready to build your own automated trading strategies without writing a single line of code? Start for free at Arrow Algo and join thousands of traders who've made the switch to systematic trading.

See Arrow Algo first on Google. Add us as a preferred source and our articles show up more in your Top Stories.

Add as a preferred source on Google