DocsOptimization

Optimization Overview

Optimization searches your strategy's parameter space to find values that produce good, stable results — not just the highest return on historical data.

Why Optimize

A strategy with hard-coded parameters is a guess. Optimization replaces guessing with a systematic search that reveals:

  • Which parameter regions produce consistent results
  • Whether the strategy is robust or fragile
  • How sensitive the results are to small parameter changes

The Danger of Overfitting

The biggest risk in optimization is overfitting — finding parameters that look great on historical data but fail on new data.

Quanthop addresses this through:

  • Plateau detection — Identifying broad stable regions rather than single peak values
  • Stability scoring — Measuring how consistent a parameter region is
  • Walk-Forward Analysis — Testing on data the optimizer never saw
  • Cross-asset validation — Checking if the idea works beyond one symbol

Optimization Pipeline

The recommended workflow has three stages:

  1. Parameter search — Find stable regions in the parameter space
  2. Walk-Forward Analysis — Validate with rolling out-of-sample windows
  3. Adaptive Flow — Monitor the strategy after deployment

Each stage filters out strategies that are not robust enough for the next.

Optimization Targets

You can optimize for different metrics:

TargetDescription
Sharpe RatioRisk-adjusted return (recommended default)
Profit FactorGross profit / gross loss
Total ReturnNet percentage return
Win RatePercentage of profitable trades
Calmar RatioReturn relative to worst drawdown

Sharpe Ratio is usually the best target because it penalizes high-variance results.

Next Steps

optimizationparameterssearchplateaustability