PerPeriodBaseTradeParameter
StockSharp.Algo.Statistics
取引統計パラメータを集計して、取引を一直線に計算するための基礎クラス。
継承元: BaseStatisticParameter<decimal>
実装: ITradeStatisticParameter, IStatisticParameter, IAsyncPersistable, INotifyPropertyChanged, IDisposable
コンストラクター
PerPeriodBaseTradeParameter
protected PerPeriodBaseTradeParameter(StatisticParameterTypes type)
perPeriodBaseTradeParameter = PerPeriodBaseTradeParameter(type)
取引統計パラメータを集計して、取引を一直線に計算するための基礎クラス。
- type
- 仕様
メソッド
Add
public void Add(PnLInfo info)
perPeriodBaseTradeParameter.Add(info)
パラメータに新しい取引に関する情報を追加する。
- info
- 新規取引に関する情報
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