Step 02: Parameter Optimization

This step tests the full parameter grid on the research period and extracts metric winners: the best parameter set for each target metric or metric blend. Unfiltered and filtered winners are shown separately so both specialists and cleaner candidates remain visible.

InputFull parameter grid, research-period market data, metric-winner definitions, and optional winner-quality filters.
OutputOptimization surface, unfiltered metric winners, filtered metric winners, parameter-sensitivity plots, and metric-winner profiles.
Used laterMetric winners become the base set for SL/TP optimization and are also available to robustness shortlist construction.
Configuration
Research period01.01.2022-01.01.2024
MetricstopEfficiency, topSharpeTradeBased, topSharpe, topSortinoTradeBased, topSortino, topProfit, topMaxDrawdown, topProfitDrawdown, topExpectancy, topProfitFactor, topWinRate, topDDDuration, topProfitQuality, topBalanced, topMaxDrawDownRelative

Optimization surface

Filtered metric winners

Filtersrows=0.0/1520.0
trades>=20, profit_total>=0, profit_factor>=1, expectancy>=0, sharpe>=0, sortino>=0, win_rate>=0.35, max_drawdown<=0.5

No filtered metric winners found.

Unfiltered metric winners

Candidate IdBuy Ema ShortBuy Ema LongSelection ReasoniTradesiProfit TotaliProfit absiWin rateiFinal BalanceiSharpeiSharpe Trade BasediSortinoiSortino Trade BasediProfit FactoriExpectancyiProfit DrawdowniMax DrawdowniMax Drawdown RelativeiDrawdown Duration PctiUnderwater MeaniTime Below EntryiEfficiency ScoreiBalanced ScoreiProfit Quality ScoreiBenchmark Profit TotaliAlpha vs BenchmarkiBeta Adjusted AlphaiCorrelation to BenchmarkiBeta to BenchmarkiUpside CaptureiDownside CaptureiAccount Profit TotaliAccount Max Drawdowni
Parameter sensitivity details

Metric winner definitions

For more information see Appendix: Scores.