DirectionalIndex

StockSharp.Algo.Indicators

Welles Wilder Directional Movement Index.

Inherits: BaseComplexIndicator<IDirectionalIndexValue>

Constructors

DirectionalIndex
public DirectionalIndex()
directionalIndex = DirectionalIndex()

Initializes a new instance of the DirectionalIndex.

Properties

Length
public int Length { get; set; }
value = directionalIndex.Length
directionalIndex.Length = value

Period length.

Measure
public override IndicatorMeasures Measure { get; }
value = directionalIndex.Measure

IndicatorMeasures.

Minus
public DiMinus Minus { get; }
value = directionalIndex.Minus

DI-.

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

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

Plus
public DiPlus Plus { get; }
value = directionalIndex.Plus

DI+.

Methods

CreateValue
protected override IDirectionalIndexValue CreateValue(DateTime time)
result = directionalIndex.CreateValue(time)

Create .

time
Time
Load
public override void Load(SettingsStorage storage)
directionalIndex.Load(storage)

Load settings.

storage
Settings storage.
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = directionalIndex.OnProcess(input)

To handle the input value.

input
The input value.

Returns: The resulting value.

Save
public override void Save(SettingsStorage storage)
directionalIndex.Save(storage)

Save settings.

storage
Settings storage.
ToString
public override string ToString()
result = directionalIndex.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.