Class DirectionalIndex
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Welles Wilder Directional Movement Index.
[Display(ResourceType = typeof(LocalizedStrings), Name = "DMI", Description = "WellesWilderDirectionalMovementIndex")]
public class DirectionalIndex : BaseComplexIndicator, IComplexIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
DirectionalIndex
- Implements
-
IPersistableICloneable<IIndicator>
- 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
Measure
public override IndicatorMeasures Measure { get; }
Property Value
Minus
DI-.
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "DiMinus", Description = "DiMinusLine", GroupName = "General")]
public DiMinus Minus { get; }
Property Value
Plus
DI+.
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "DiPlus", Description = "DiPlusLine", GroupName = "General")]
public DiPlus Plus { get; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()