HullMovingAverage

StockSharp.Algo.Indicators

Hull Moving Average.

Inherits: DecimalLengthIndicator

Constructors

HullMovingAverage
public HullMovingAverage()
hullMovingAverage = HullMovingAverage()

Initializes a new instance of the HullMovingAverage.

Properties

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

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

SqrtPeriod
public int SqrtPeriod { get; set; }
value = hullMovingAverage.SqrtPeriod
hullMovingAverage.SqrtPeriod = value

Period of resulting average. If equal to 0, period of resulting average is equal to the square root of HMA period. By default equal to 0.

Methods

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

Calc IsFormed.

Returns: IsFormed

Load
public override void Load(SettingsStorage storage)
hullMovingAverage.Load(storage)

Load settings.

storage
Settings storage.
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = hullMovingAverage.OnProcessDecimal(input)

To handle the input value.

input
The input value.

Returns: The new value of the indicator.

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

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

Save settings.

storage
Settings storage.