ProfitFactorParameter
StockSharp.Algo.Statistics
赢出交易的平均利润与输出交易的平均损失的比例.
继承自: BaseStatisticParameter<decimal>
实现: ITradeStatisticParameter, IStatisticParameter, IAsyncPersistable, INotifyPropertyChanged, IDisposable
构造函数
ProfitFactorParameter
public ProfitFactorParameter()
profitFactorParameter = ProfitFactorParameter()
Initialize ProfitFactorParameter.
方法
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = profitFactorParameter.LoadAsync(storage, cancellationToken)
To load the state of statistic parameter.
- storage
- Storage.
- cancellationToken
- CancellationToken
返回值: Task
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = profitFactorParameter.SaveAsync(storage, cancellationToken)
To save the state of statistic parameter.
- storage
- Storage.
- cancellationToken
- CancellationToken
返回值: Task