Class BaseStatisticParameter<TValue>
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
The base statistics parameter.
public abstract class BaseStatisticParameter<TValue> : NotifiableObject, IStatisticParameter<TValue>, IStatisticParameter, IPersistable, INotifyPropertyChanged where TValue : IComparable<TValue>
Type Parameters
TValue
The type of the parameter value.
- Inheritance
-
BaseStatisticParameter<TValue>
- Implements
-
IStatisticParameter<TValue>IPersistable
- Derived
- Extension Methods
Constructors
BaseStatisticParameter(StatisticParameterTypes)
Initialize BaseStatisticParameter<TValue>.
protected BaseStatisticParameter(StatisticParameterTypes type)
Parameters
Properties
Category
Category.
public string Category { get; }
Property Value
Description
The parameter description.
public string Description { get; }
Property Value
DisplayName
The displayed parameter name.
public string DisplayName { get; }
Property Value
Name
Parameter name.
public string Name { get; }
Property Value
Order
Order.
public int Order { get; }
Property Value
Type
Type.
public StatisticParameterTypes Type { get; }
Property Value
Value
The current value of the parameter.
public virtual TValue Value { get; protected set; }
Property Value
- TValue
ValueType
Value type.
public Type ValueType { get; }
Property Value
Methods
Init(TValue)
Init by initial value.
public virtual void Init(TValue beginValue)
Parameters
beginValue
TValueInitial value.
Load(SettingsStorage)
To load the state of statistic parameter.
public virtual void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageStorage.
Reset()
To reset the parameter value.
public virtual void Reset()
Save(SettingsStorage)
To save the state of statistic parameter.
public virtual void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageStorage.
Events
ValueChanged
Value change event.
public event Action ValueChanged