JurikMovingAverage

StockSharp.Algo.Indicators

Jurik Moving Average.

Inherits: DecimalLengthIndicator

Constructors

JurikMovingAverage
public JurikMovingAverage()
jurikMovingAverage = JurikMovingAverage()

Initializes a new instance of the JurikMovingAverage.

Properties

Phase
public int Phase { get; set; }
value = jurikMovingAverage.Phase
jurikMovingAverage.Phase = value

Phase.

Methods

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = jurikMovingAverage.OnProcessDecimal(input)

To handle the input value.

input
The input value.

Returns: The new value of the indicator.

Reset
public override void Reset()
jurikMovingAverage.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 = jurikMovingAverage.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

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

Returns: A string representing the tuple's values.