MaxProfitDateParameter

StockSharp.Algo.Statistics

Дата максимального значения прибыли за весь период.

Наследует: BasePnLStatisticParameter<DateTime>

Конструкторы

MaxProfitDateParameter
public MaxProfitDateParameter(MaxProfitParameter underlying)
maxProfitDateParameter = MaxProfitDateParameter(underlying)

Дата максимального значения прибыли за весь период.

underlying
MaxProfitParameter

Методы

Add
public override void Add(DateTime marketTime, decimal pnl, decimal? commission)
maxProfitDateParameter.Add(marketTime, pnl, commission)

Чтобы добавить новые данные в параметр.

marketTime
Время обмена.
pnl
Значение прибыли-убытка.
commission
Комиссия.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = maxProfitDateParameter.LoadAsync(storage, cancellationToken)

To load the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Возвращает: Task

Reset
public override void Reset()
maxProfitDateParameter.Reset()

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

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = maxProfitDateParameter.SaveAsync(storage, cancellationToken)

To save the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Возвращает: Task