LogoMalgotDocs
Sign In

5 · Sensitivity

Roadmap
Is your edge a broad plateau or a knife-edge? Robust systems degrade gracefully.
On the roadmap — not shipped yet
This stage is designed but not yet built into Malgot. The page below teaches the methodology so you can practise it manually today and recognise the feature when it lands. Anything describing a concrete Malgot screen is marked accordingly.

Optimization hands you a best parameter set. Sensitivity analysis asks the more important question: what happens to performance when you're slightly wrong about those parameters? A trustworthy system sits on a broad plateau — nudging a knob barely moves the result. A fragile one sits on a spike — the "best" setting is a statistical accident and its neighbours are losers.

Plateau, not peak

Prefer the middle of a plateau over the tip of a peak

A slightly lower backtest score in a wide flat region beats a slightly higher score on a lonely spike. The plateau will still be there next year; the spike won't.

The reason is simple: your parameters are estimates, and markets drift. If moving entry_z from 1.25 to 1.4 collapses the return, then the real world — which never hands you exactly 1.25 — will collapse it for you.

How to test it

1
One-at-a-time sweeps

Hold everything fixed, vary one parameter across its range, and plot the objective. You want a smooth, flat-topped curve — not a single tall bar.

2
Neighbourhood check

Around the chosen point, perturb each parameter by ±10–20% and confirm performance stays acceptable. If several small perturbations combine to wreck it, that's a red flag.

3
Heatmaps for interactions

For two interacting knobs, a 2-D heatmap of the objective reveals whether the good region is a connected plateau or scattered islands (islands = luck).

Relationship to the other stages

Sensitivity is the natural companion to Optimization: the optimizer finds candidates, sensitivity tells you whether a candidate is a real region or a mirage. It differs from Robustness, which perturbs the world (costs, data, regimes) rather than your parameters.

In Malgot

Beta
Create a Sensitivity Study in the Object Explorer (section Sensitivity Studies). It evaluates one trading system at many parameter points and keeps only the metrics of each run — no time series, so even a large sweep stays light.

What you can vary. Any parameter of the trading system: strategy parameters, indicator parameters (per sleeve — two sleeves with the same indicator are two independent axes) and signal-allocator parameters. A single strategy is just a trading system with one sleeve.

Three designs, because the right sweep depends on how many knobs you turn:

| Design | What it runs | Use it for | |---|---|---| | One at a time | Each parameter alone, the others stay as they are | Finding which knobs matter at all | | Grid | All combinations of two parameters | The heatmap: plateau or islands? | | Random sample | Points drawn around the current values, all parameters moved together; seed makes it reproducible | Three or more parameters |

Run 0 is always your current setting — the reference everything else is read against.

Axes can be a range with a step, an explicit list, a neighbourhood around the current value (± a fraction, clamped to the parameter's own bounds), or all options of a boolean or selection. Constraints like fast period < slow period drop invalid combinations before anything is queued.

Cost. Every simulation counts against the same monthly quota as any other run, and a study is capped at 200 points. Preview cost shows the exact number — and what the constraints removed — before you start. Points dropped by constraints are not billed.

Read the shape, not the best point

The result view shows each parameter against the metric of your choice, with your current setting marked. A flat region around it is robust; a lone spike is noise.

An AI agent connected via MCP can read studies and results and start an existing study (subject to its autonomy level and your quota). Defining or changing a study is reserved for you.

Sweeping many points and picking the best one is itself a form of multiple testing — a sensitivity study is for judging a chosen candidate, not for finding a new one.


Previous

4 · Optimization

Next

6 · Robustness