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
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = directionalIndex.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

To handle the input value.

input
The input value.

Returns: The resulting value.

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = directionalIndex.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.