MaxProfitDateParameter
StockSharp.Algo.Statistics
Datum des maximalen Gewinnwerts für die gesamte Periode.
Erbt von: BasePnLStatisticParameter<DateTime>
Konstruktoren
MaxProfitDateParameter
public MaxProfitDateParameter(MaxProfitParameter underlying)
maxProfitDateParameter = MaxProfitDateParameter(underlying)
Datum des maximalen Gewinnwerts für die gesamte Periode.
- underlying
- MaxProfitParameter
Methoden
Add
public override void Add(DateTime marketTime, decimal pnl, decimal? commission)
maxProfitDateParameter.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 = maxProfitDateParameter.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 = maxProfitDateParameter.SaveAsync(storage, cancellationToken)
To save the state of statistic parameter.
- storage
- Storage.
- cancellationToken
- CancellationToken
Rückgabe: Task