NetProfitPercentParameter

StockSharp.Algo.Statistics

Net profit for whole time period in percent.

Inherits: BasePnLStatisticParameter<decimal>

Implements: IBeginValueStatisticParameter

Constructors

NetProfitPercentParameter
public NetProfitPercentParameter()
netProfitPercentParameter = NetProfitPercentParameter()

Initialize NetProfitPercentParameter.

Properties

BeginValue
public decimal BeginValue { get; set; }
value = netProfitPercentParameter.BeginValue
netProfitPercentParameter.BeginValue = value

The initial value of the parameter.

Methods

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

To load the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Returns: Task

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

To save the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Returns: Task