Table of Contents

Interface IIndicator

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.BusinessEntities.dll

The interface describing indicator.

public interface IIndicator : IPersistable, ICloneable<IIndicator>, ICloneable
Inherited Members
Extension Methods

Properties

Color

Indicator color. If null then the color will be automatically selected.

Color? Color { get; }

Property Value

Color?

Container

The container storing indicator data.

IIndicatorContainer Container { get; }

Property Value

IIndicatorContainer

Id

Unique ID.

Guid Id { get; }

Property Value

Guid

InputType

Input values type.

Type InputType { get; }

Property Value

Type

IsFormed

Whether the indicator is set.

bool IsFormed { get; }

Property Value

bool

Measure

IndicatorMeasures Measure { get; }

Property Value

IndicatorMeasures

Name

Indicator name.

string Name { get; set; }

Property Value

string

NumValuesToInitialize

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals true). null if undefined.

int NumValuesToInitialize { get; }

Property Value

int

ResultType

Result values type.

Type ResultType { get; }

Property Value

Type

Style

Chart indicator draw style.

DrawStyles Style { get; }

Property Value

DrawStyles

Methods

CreateValue(DateTimeOffset, object[])

Convert to indicator value.

IIndicatorValue CreateValue(DateTimeOffset time, object[] values)

Parameters

time DateTimeOffset

Time

values object[]

ToValues()

Returns

IIndicatorValue

IIndicatorValue

Process(IIndicatorValue)

To handle the input value.

IIndicatorValue Process(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The new value of the 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).

void Reset()

Events

Changed

The indicator change event (for example, a new value is added).

event Action<IIndicatorValue, IIndicatorValue> Changed

Event Type

Action<IIndicatorValue, IIndicatorValue>

Reseted

The event of resetting the indicator status to initial. The event is called each time when initial settings are changed (for example, the length of period).

event Action Reseted

Event Type

Action