Class RecoveryFactorParameter
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
Recovery factor (net profit / maximum drawdown).
[Display(ResourceType = typeof(LocalizedStrings), Name = "RecoveryFactor", Description = "RecoveryFactorDesc", GroupName = "PnL", Order = 9)]
public class RecoveryFactorParameter : BasePnLStatisticParameter<decimal>, INotifyPropertyChangedEx, INotifyPropertyChanging, IStatisticParameter<decimal>, IPnLStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
- Inheritance
-
RecoveryFactorParameter
- Implements
- Inherited Members
- Extension Methods
Remarks
Initialize RecoveryFactorParameter.
Constructors
RecoveryFactorParameter(MaxDrawdownParameter, NetProfitParameter)
Recovery factor (net profit / maximum drawdown).
public RecoveryFactorParameter(MaxDrawdownParameter maxDrawdown, NetProfitParameter netProfit)
Parameters
maxDrawdownMaxDrawdownParameternetProfitNetProfitParameter
Remarks
Initialize RecoveryFactorParameter.
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.