Optimizer

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference >

Optimizer

Previous page Return to chapter overview Next page

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

NumberOfIterations

Informs the Strategy Analyzer how many iterations of optimizing it needs to do.

OnOptimize()

This method must be overridden in order to optimize a strategy.

OptimizationParameters

The optimization parameters selected for the optimization run.

RunIteration()

Runs an iteration of backtesting for the optimizer.

SupportsMultiObjectiveOptimization

Informs the Strategy Analyzer if this Optimizer can do multi-objective optimizations.