PerPeriodBaseTradeParameter

StockSharp.Algo.Statistics

Базовый класс для расчета параметров торговой статистики путем агрегирования сделок за согласованные периоды времени.

Наследует: BaseStatisticParameter<decimal>

Реализует: ITradeStatisticParameter, IStatisticParameter, IPersistable, 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
Дата сделки.

Возвращает: Согласованное значение.

Load
public override void Load(SettingsStorage storage)
perPeriodBaseTradeParameter.Load(storage)

Загрузить настройки.

storage
Хранилище настроек.
Reset
public override void Reset()
perPeriodBaseTradeParameter.Reset()

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

Save
public override void Save(SettingsStorage storage)
perPeriodBaseTradeParameter.Save(storage)

Сохраните настройки.

storage
Хранилище настроек.