ReturnParameter

StockSharp.Algo.Statistics

Relative income for the whole time period.

Inherits: BasePnLStatisticParameter<decimal>

Constructors

ReturnParameter
public ReturnParameter()
returnParameter = ReturnParameter()

Initialize ReturnParameter.

Methods

Add
public override void Add(DateTime marketTime, decimal pnl, decimal? commission)
returnParameter.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 = returnParameter.LoadAsync(storage, cancellationToken)

To load the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Returns: Task

Reset
public override void Reset()
returnParameter.Reset()

To reset the parameter value.

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

To save the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Returns: Task