Class PerPeriodBaseTradeParameter
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
Base class for calculating trade statistic parameters by aggregating trades over aligned time periods.
public abstract class PerPeriodBaseTradeParameter : BaseStatisticParameter<decimal>, INotifyPropertyChangedEx, INotifyPropertyChanging, IStatisticParameter<decimal>, ITradeStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
- Inheritance
-
PerPeriodBaseTradeParameter
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
PerPeriodBaseTradeParameter(StatisticParameterTypes)
Base class for calculating trade statistic parameters by aggregating trades over aligned time periods.
protected PerPeriodBaseTradeParameter(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.