NetProfitPercentParameter

StockSharp.Algo.Statistics

Nettogewinn für den gesamten Zeitraum in Prozent.

Erbt von: BasePnLStatisticParameter<decimal>

Implementiert: IBeginValueStatisticParameter

Konstruktoren

NetProfitPercentParameter
public NetProfitPercentParameter()
netProfitPercentParameter = NetProfitPercentParameter()

Initialisieren Sie NetProfitPercentParameter.

Eigenschaften

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

Der Anfangswert des Parameters.

Methoden

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

Um neue Daten zum Parameter hinzuzufügen.

marketTime
Die Austauschzeit.
pnl
Der Gewinn-Verlust-Wert.
commission
Kommission.
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

Rückgabe: 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

Rückgabe: Task