Class MaxDrawdownDateParameter
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
Date of maximum absolute drawdown during the whole period.
[Display(ResourceType = typeof(LocalizedStrings), Name = "MaxDrawdownDate", Description = "MaxDrawdownDateDesc", GroupName = "PnL", Order = 6)]
public class MaxDrawdownDateParameter : BasePnLStatisticParameter<DateTimeOffset>, IStatisticParameter<DateTimeOffset>, IPnLStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
- Inheritance
-
MaxDrawdownDateParameter
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
MaxDrawdownDateParameter(MaxDrawdownParameter)
Initialize MaxDrawdownDateParameter.
public MaxDrawdownDateParameter(MaxDrawdownParameter underlying)
Parameters
underlying
MaxDrawdownParameter
Methods
Add(DateTimeOffset, decimal, decimal?)
To add new data to the parameter.
public override void Add(DateTimeOffset marketTime, decimal pnl, decimal? commission)
Parameters
marketTime
DateTimeOffsetThe exchange time.
pnl
decimalThe profit-loss value.
commission
decimal?Commission.
Load(SettingsStorage)
To load the state of statistic parameter.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageStorage.
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
storage
SettingsStorageStorage.