Table of Contents

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
IPersistable
ICloneable<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 IEnumerable<IIndicator> InnerIndicators { get; }

Property Value

IEnumerable<IIndicator>

Mode

Embedded indicators processing mode. The default equals to Parallel.

[Browsable(false)]
public ComplexIndicatorModes Mode { get; protected set; }

Property Value

ComplexIndicatorModes

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

int

ResultType

Result values type.

public override Type ResultType { get; }

Property Value

Type

Methods

AddInner(IIndicator)

protected void AddInner(IIndicator inner)

Parameters

inner IIndicator

Indicator.

CalcIsFormed()

Calc IsFormed.

protected override bool CalcIsFormed()

Returns

bool

IsFormed

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The resulting value.

RemoveInner(IIndicator)

Remove from InnerIndicators.

protected void RemoveInner(IIndicator inner)

Parameters

inner IIndicator

Indicator.

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 SettingsStorage

Settings storage.