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

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = hullMovingAverage.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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).

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task