OptimizerSettings

StockSharp.Algo.Strategies.Optimization

优化设置.

继承自: MarketEmulatorSettings

属性

BatchSize
public int BatchSize { get; set; }
value = optimizerSettings.BatchSize
optimizerSettings.BatchSize = value

同时测试的战略数量。

MaxIterations
public int MaxIterations { get; set; }
value = optimizerSettings.MaxIterations
optimizerSettings.MaxIterations = value

最大可能的重复数。 0 表示选项被忽略 。

MaxMessageCount
public int MaxMessageCount { get; set; }
value = optimizerSettings.MaxMessageCount
optimizerSettings.MaxMessageCount = value

返回测试时处理的信件的最大数量。 负值表示选项被忽略 。

方法

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = optimizerSettings.LoadAsync(storage, cancellationToken)

To load the state of paper trading parameters.

storage
Storage.
cancellationToken
CancellationToken

返回值: Task

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = optimizerSettings.SaveAsync(storage, cancellationToken)

To save the state of paper trading parameters.

storage
Storage.
cancellationToken
CancellationToken

返回值: Task