Optimization, funding & costs

Which metric to prioritize, how to simulate a funding challenge, realistic costs and quality filters.

Costs tab with the per-instrument table
The «Costs» tab: spread, commission, slippage and swap per instrument. Realistic backtest = don't lower these to «improve» the numbers.

An exploration tests thousands of indicator and parameter combinations, but which result is «the best»? That depends on the objective you choose and how realistic the costs applied to the backtest are. In this article you'll fine-tune both: the optimization criterion and the cost parameters, so the algorithms the exploration delivers are aligned with your real goal — whether passing a funding challenge or building a solid long-term equity curve.

Optimization objective

The optimization objective is the metric the exploration tries to maximize (or minimize) when comparing combinations. Choosing it well makes the difference between finding a robust algo and one that only looks good on paper.

ObjectiveWhat it maximizes / minimizes
Balanced score (default)Weighted blend of Sharpe, drawdown and profit factor. Good for general-purpose goals.
Highest Sharpe RatioReturn adjusted by total volatility of daily returns.
Highest SortinoLike Sharpe, but only penalizes downside volatility (ignores positive volatility).
Highest CalmarAnnualized return divided by maximum drawdown. Ideal if controlling drawdowns is a priority.
Highest absolute PnLTotal profit in USD, unadjusted for risk. May favor aggressive algos.
Lowest DrawdownMinimizes the worst drop from peak equity. Useful for prop firm accounts with DD limits.
Highest Profit FactorGross profit divided by gross loss. Greater than 1 means you earn more than you lose in total.
Highest ExpectancyAverage profit per trade. Favors algos with high signal quality, even if they have few trades.
Highest Win RatePercentage of winning trades. High win rate doesn't guarantee profitability if losses are too large.
Highest Recovery FactorTotal PnL divided by maximum drawdown. Measures how much you earned per dollar of maximum drop.
Highest funding pass ratePercentage of funding challenge simulations that would be approved. Requires enabling the «Funding» section.

If your goal is to pass a prop firm challenge, choose «Highest funding pass rate» and configure the challenge rules in the «Funding» tab. For general robustness, the balanced score (default) is the best starting point.