VortexPart

StockSharp.Algo.Indicators

The part of the Vortex indicator.

Inherits: DecimalLengthIndicator

Constructors

VortexPart
public VortexPart(bool isPositive)
vortexPart = VortexPart(isPositive)

Initializes a new instance of the VortexPart.

isPositive
IsPositive

Properties

IsPositive
public bool IsPositive { get; }
value = vortexPart.IsPositive

Is this the positive (+VI) or negative (-VI) part.

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = vortexPart.NumValuesToInitialize

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

Methods

CalcIsFormed
protected override bool CalcIsFormed()
result = vortexPart.CalcIsFormed()

Calc IsFormed.

Returns: IsFormed

OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = vortexPart.OnProcessDecimal(input)

To handle the input value.

input
The input value.

Returns: The new value of the indicator.

Reset
public override void Reset()
vortexPart.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).