Class BaseComplexIndicator
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
The base indicator, built in form of several indicators combination.
public abstract class BaseComplexIndicator : BaseIndicator, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
BaseComplexIndicator
- Implements
-
IPersistableICloneable<IIndicator>
- Derived
- Inherited Members
- Extension Methods
Constructors
BaseComplexIndicator(params IIndicator[])
Initializes a new instance of the BaseComplexIndicator.
protected BaseComplexIndicator(params IIndicator[] innerIndicators)
Parameters
innerIndicators
IIndicator[]Embedded indicators.
Properties
InnerIndicators
Embedded indicators.
[Browsable(false)]
public IReadOnlyList<IIndicator> InnerIndicators { get; }
Property Value
Mode
Embedded indicators processing mode. The default equals to Parallel.
[Browsable(false)]
public ComplexIndicatorModes Mode { get; protected set; }
Property Value
NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals true). null if undefined.
[Browsable(false)]
public override int NumValuesToInitialize { get; }
Property Value
ResultType
Result values type.
public override Type ResultType { get; }
Property Value
Methods
AddInner(IIndicator)
Add to InnerIndicators.
protected void AddInner(IIndicator inner)
Parameters
inner
IIndicatorIndicator.
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
ClearInner()
Clear InnerIndicators.
protected void ClearInner()
CreateEmpty(IIndicator, DateTimeOffset)
Create empty value.
protected virtual IIndicatorValue CreateEmpty(IIndicator indicator, DateTimeOffset time)
Parameters
indicator
IIndicatortime
DateTimeOffsetTime
Returns
- IIndicatorValue
Empty value.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Process(IIndicatorValue)
To handle the input value.
public override IIndicatorValue Process(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The new value of the indicator.
RemoveInner(IIndicator)
Remove from InnerIndicators.
protected void RemoveInner(IIndicator inner)
Parameters
inner
IIndicatorIndicator.
Reset()
To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).
public override void Reset()
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.