Run an Optimization Job
Set up a parameter optimization job, define constraints, interpret trial results, and avoid the overfitting trap.
Optimization systematically searches over a parameter space to find the configuration that maximises a performance objective. Instead of manually adjusting stop loss levels and indicator periods, you define ranges and let the engine search. The key skill is interpreting results without overfitting.
Open the Optimization panel
Select your objective metric
- Sharpe Ratio (recommended) — balances return and risk
- Total Return % — maximises raw gains but prone to overfitting
- Calmar Ratio — optimises for best drawdown-adjusted return
Define parameter ranges
- Stop Loss % min=1, max=5, step=0.5 → 9 candidate values
- RSI period min=7, max=21, step=2 → 8 candidates
Toggle section optimisation
Set constraints
- Max Drawdown must be below 30%
- Win Rate must be above 40%
- Trade Count must be above 50
Submit the job
Review trials
Check for robustness
Import the winning configuration
Never pick the #1 trial by return %. Instead, find the parameter region where multiple nearby trials produce consistently good Sharpe ratios. A configuration at the centre of a stable region will outperform a spike-optimal configuration in live trading.
Optimizing on the same date range you'll use for final evaluation is data snooping. Reserve the last 20% of your data as an out-of-sample test set. Run optimisation on the first 80%, then validate the winning config on the reserved 20% before activating.
What's Next