> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Optimizer

Custom Optimizers can be used to optimize your Strategy through different algorithms. These may allow you to make trade offs like being able to find adequate results quickly as opposed to trying to find the absolute best result but through a time consuming process. The methods and properties covered in this section are unique to custom Optimizer development.

## In this section

| Name                                                                                                                 | Description                                                                           |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [NumberOfIterations](/developer/desktop-sdk/references/optimizer/numberofiterations)                                 | Informs the Strategy Analyzer how many iterations of optimizing it needs to do.       |
| [OnOptimize()](/developer/desktop-sdk/references/optimizer/onoptimize)                                               | This method must be overridden in order to optimize a strategy.                       |
| [OptimizationParameters](/developer/desktop-sdk/references/optimizer/optimizationparameters)                         | The optimization parameters selected for the optimization run.                        |
| [RunIteration()](/developer/desktop-sdk/references/optimizer/runiteration)                                           | Runs an iteration of backtesting for the optimizer.                                   |
| [SupportsMultiObjectiveOptimization](/developer/desktop-sdk/references/optimizer/supportsmultiobjectiveoptimization) | Informs the Strategy Analyzer if this Optimizer can do multi-objective optimizations. |