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

Reset
public override void Reset()
perPeriodBaseTradeParameter.Reset()

Сбросить состояние.

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