BacktestSettings
public BacktestSettings BacktestSettingsGets or sets the BacktestSettings instance used for the optimization.
API documentation, members, signatures, and C# examples.
Find classes, members, and documentation.
OptimizationRunnerBase is the base class for objects that conduct optimizations in WL9. It provides common access to the historical data, compiled Strategy, Optimizer, Position Size, Backtest Settings, host interface, and optimizable Parameters used during an optimization.
public BacktestSettings BacktestSettingsGets or sets the BacktestSettings instance used for the optimization.
public StrategyBase CompiledStrategyGets or sets the compiled StrategyBase-derived instance being optimized.
public ParameterList OptimizableParametersReturns the ParameterList containing the Parameters that are being optimized. The value is obtained from the OptimizableParameters property of OptimizerHost.
public OptimizerBase OptimizationMethodGets or sets the OptimizerBase-derived instance used to perform the optimization.
public IOptimizerHost OptimizerHostGets or sets the IOptimizerHost instance that allows the optimization process to communicate with its host.
public virtual void PerformOptimization(IOptimizerHost host, PositionSize posSize, BacktestSettings bts, bool resuming)Performs initialization common to optimization runners before an optimization begins. The host parameter is assigned to OptimizerHost, posSize is assigned to PositionSize, and bts is assigned to BacktestSettings. Derived classes override this method to perform their specific optimization processing.
public PositionSize PositionSizeGets or sets the PositionSize instance used for the optimization.
public void ReportEstimatedCompletion(double value)Reports the estimated percentage completion of the optimization to the host by calling OptimizerHost.ReportProgress. The value parameter should represent a completion percentage from 0 through 100.
public Strategy Strategypublic List<BarHistory> SymbolDataGets or sets the historical data being optimized, represented as a List of BarHistory instances.
Ask the community or explore custom development services.