Class MaxProfitDateParameter
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
Date of maximum profit value for the entire period.
[Display(ResourceType = typeof(LocalizedStrings), Name = "MaxProfitDate", Description = "MaxProfitDateDesc", GroupName = "PnL", Order = 3)]
public class MaxProfitDateParameter : BasePnLStatisticParameter<DateTimeOffset>, INotifyPropertyChangedEx, INotifyPropertyChanging, IStatisticParameter<DateTimeOffset>, IPnLStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
- Inheritance
-
MaxProfitDateParameter
- Implements
- Inherited Members
- Extension Methods
Remarks
Initialize MaxProfitDateParameter.
Constructors
MaxProfitDateParameter(MaxProfitParameter)
Date of maximum profit value for the entire period.
public MaxProfitDateParameter(MaxProfitParameter underlying)
Parameters
underlyingMaxProfitParameter
Remarks
Initialize MaxProfitDateParameter.
Methods
Add(DateTimeOffset, decimal, decimal?)
To add new data to the parameter.
public override void Add(DateTimeOffset marketTime, decimal pnl, decimal? commission)
Parameters
marketTimeDateTimeOffsetThe exchange time.
pnldecimalThe profit-loss value.
commissiondecimal?Commission.
Load(SettingsStorage)
To load the state of statistic parameter.
public override void Load(SettingsStorage storage)
Parameters
storageSettingsStorageStorage.
Reset()
To reset the parameter value.
public override void Reset()
Save(SettingsStorage)
To save the state of statistic parameter.
public override void Save(SettingsStorage storage)
Parameters
storageSettingsStorageStorage.