PerPeriodBaseTradeParameter
StockSharp.Algo.Statistics
通过汇总交易在相应时间段的汇总计算贸易统计参数的基准类别。
继承自: BaseStatisticParameter<decimal>
实现: ITradeStatisticParameter, IStatisticParameter, IAsyncPersistable, INotifyPropertyChanged, IDisposable
构造函数
PerPeriodBaseTradeParameter
protected PerPeriodBaseTradeParameter(StatisticParameterTypes type)
perPeriodBaseTradeParameter = PerPeriodBaseTradeParameter(type)
通过汇总交易在相应时间段的汇总计算贸易统计参数的基准类别。
- type
- 类型
方法
Align
protected abstract DateTime Align(DateTime date)
result = perPeriodBaseTradeParameter.Align(date)
将指定日期对齐, 以准确开始时间 。
- date
- 交易日期。
返回值: 相通相值相通相通相通相相通相通相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = perPeriodBaseTradeParameter.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 = perPeriodBaseTradeParameter.SaveAsync(storage, cancellationToken)
To save the state of statistic parameter.
- storage
- Storage.
- cancellationToken
- CancellationToken
返回值: Task