Class PerBaseTradeParameter
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
Average trades count per one base.
public abstract class PerBaseTradeParameter : BaseStatisticParameter<decimal>, IStatisticParameter<decimal>, ITradeStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
- Inheritance
-
PerBaseTradeParameter
- Implements
-
IPersistable
- Derived
- Inherited Members
- Extension Methods
Constructors
PerBaseTradeParameter(StatisticParameterTypes)
Initialize PerMonthTradeParameter.
protected PerBaseTradeParameter(StatisticParameterTypes type)
Parameters
Methods
Add(PnLInfo)
To add information about new trade to the parameter.
public void Add(PnLInfo info)
Parameters
info
PnLInfoInformation on new trade.
Align(DateTime)
Align the specified date for exact period start.
protected abstract DateTime Align(DateTime date)
Parameters
date
DateTimeTrade date.
Returns
- DateTime
Aligned value.
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.