Class BasePnLStatisticParameter<TValue>
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
The base profit-loss statistics parameter.
public abstract class BasePnLStatisticParameter<TValue> : BaseStatisticParameter<TValue>, IStatisticParameter<TValue>, IPnLStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged where TValue : IComparable<TValue>
Type Parameters
TValue
The type of the parameter value.
- Inheritance
-
BaseStatisticParameter<TValue>BasePnLStatisticParameter<TValue>
- Implements
-
IStatisticParameter<TValue>IPersistable
- Derived
- Inherited Members
- Extension Methods
Constructors
BasePnLStatisticParameter(StatisticParameterTypes)
Initialize BasePnLStatisticParameter<TValue>.
protected BasePnLStatisticParameter(StatisticParameterTypes type)
Parameters
Methods
Add(DateTimeOffset, decimal, decimal?)
To add new data to the parameter.
public virtual void Add(DateTimeOffset marketTime, decimal pnl, decimal? commission)
Parameters
marketTime
DateTimeOffsetThe exchange time.
pnl
decimalThe profit-loss value.
commission
decimal?Commission.