MaxProfitDateParameter

StockSharp.Algo.Statistics

Date of maximum profit value for the entire period.

Inherits: BasePnLStatisticParameter<DateTime>

Constructors

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

Date of maximum profit value for the entire period.

underlying
MaxProfitParameter

Methods

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

To add new data to the parameter.

marketTime
The exchange time.
pnl
The profit-loss value.
commission
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

Returns: Task

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

To reset the parameter value.

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

Returns: Task