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:
- Parameter search — Find stable regions in the parameter space
- Walk-Forward Analysis — Validate with rolling out-of-sample windows
- 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:
| Target | Description |
|---|---|
| Sharpe Ratio | Risk-adjusted return (recommended default) |
| Profit Factor | Gross profit / gross loss |
| Total Return | Net percentage return |
| Win Rate | Percentage of profitable trades |
| Calmar Ratio | Return relative to worst drawdown |
Sharpe Ratio is usually the best target because it penalizes high-variance results.
Next Steps
- Running Optimization — Step-by-step optimization guide
- Walk-Forward Analysis — Out-of-sample validation
- Adaptive Flow — Post-deployment monitoring
optimizationparameterssearchplateaustability