Matana Labs

Parameter sensitivity test: the “Parameter shift” check

A parameter sensitivity test changes each number in a strategy a little, one at a time, and reruns it. Good logic lives on a plateau: nearby values give a similar result. If a small nudge flips the result to a loss, the original value was a lucky peak found by fitting.

What it checks

A peak instead of a plateau is overfitting. Good logic doesn't die from shifting a threshold by a tenth.

The question behind it: Is it overfitted to history? In the app it is in Analysis Lab → Checks, stage “Required”. Can you trust the result at all? They come first and make up most of the score.

How it works

Each number from the strategy blocks (thresholds, periods, stops, sizes) is shifted ±10% and ±20% one at a time, the rest untouched. Each combination is a run. The base isn't shifted.

How it gets its status

These are the app’s own rules, shown on the check’s card:

With fewer than 30 trades or 20 days in the run, the check still shows its numbers, but its status is at most “with a caveat” and the result is marked as unreliable.

How to read the result

The Parameter shift check in Matana Labs: a table with each strategy number and the result and drawdown when it is shifted down and up
“Parameter shift” on a test data set: one row per number in the strategy, one column per shift.

In the score out of 100

When it has a status, it counts toward the overall score with weight 1.5: “holds” earns full points, “with a caveat” half and “broke down” none; “can’t compute” is left out.

Every plan, the free one included, can run it; any engine runs it needs are counted in backtest-years.

If it breaks down

Take values from the middle of a wide positive zone, not from the peak — this is visible on the “Two optimization maps”.

This is the app’s own suggestion; under Improvement the app tests candidate changes on the engine before it shows them.

Screenshots show the real app on a test data set. Backtests and simulations are not real trading, and past results don’t guarantee future ones. Not investment advice.

Keep reading

See Matana Labs plans, from free

Questions

Which numbers are shifted?

The numbers in the strategy’s blocks: indicator periods, thresholds, stops, targets and sizes. Each is shifted on its own while everything else stays the same.

How is this different from the optimization map?

This check moves one number at a time around your current values. The “Two optimization maps” check varies two numbers together and tests the best cell on held-back data.

Whole-number settings can’t move by a tenth. What happens?

They are rounded to whole numbers, and if rounding gives the same value the app steps by one instead, so the neighbour is always different from the base.