Table of Contents

Class DirectionalIndex

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

Welles Wilder Directional Movement Index.

[Display(ResourceType = typeof(LocalizedStrings), Name = "DMI", Description = "WellesWilderDirectionalMovementIndex")]
[Doc("topics/api/indicators/list_of_indicators/dmi.html")]
public class DirectionalIndex : BaseComplexIndicator, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
DirectionalIndex
Implements
Derived
Inherited Members
Extension Methods

Remarks

Constructors

DirectionalIndex()

Initializes a new instance of the DirectionalIndex.

public DirectionalIndex()

Properties

Length

Period length.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Period", Description = "IndicatorPeriod", GroupName = "General")]
public int Length { get; set; }

Property Value

int

Measure

public override IndicatorMeasures Measure { get; }

Property Value

IndicatorMeasures

Minus

DI-.

[Browsable(false)]
public DiMinus Minus { get; }

Property Value

DiMinus

NumValuesToInitialize

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

public override int NumValuesToInitialize { get; }

Property Value

int

Plus

DI+.

[Browsable(false)]
public DiPlus Plus { get; }

Property Value

DiPlus

Methods

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.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string