WaveTrendOscillator

StockSharp.Algo.Indicators

Wave Trend Oscillator.

Inherits: BaseComplexIndicator<IWaveTrendOscillatorValue>

Constructors

WaveTrendOscillator
public WaveTrendOscillator()
waveTrendOscillator = WaveTrendOscillator()

Initializes a new instance of the WaveTrendOscillator.

Properties

AveragePeriod
public int AveragePeriod { get; set; }
value = waveTrendOscillator.AveragePeriod
waveTrendOscillator.AveragePeriod = value

Average period for WT2.

DPeriod
public int DPeriod { get; set; }
value = waveTrendOscillator.DPeriod
waveTrendOscillator.DPeriod = value

D period.

EsaPeriod
public int EsaPeriod { get; set; }
value = waveTrendOscillator.EsaPeriod
waveTrendOscillator.EsaPeriod = value

ESA period.

Measure
public override IndicatorMeasures Measure { get; }
value = waveTrendOscillator.Measure

IndicatorMeasures.

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

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

Wt1
public WaveTrendLine Wt1 { get; }
value = waveTrendOscillator.Wt1

WT1 line.

Wt2
public WaveTrendLine Wt2 { get; }
value = waveTrendOscillator.Wt2

WT2 line.

Methods

CreateValue
protected override IWaveTrendOscillatorValue CreateValue(DateTime time)
result = waveTrendOscillator.CreateValue(time)

Create .

time
Time
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = waveTrendOscillator.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = waveTrendOscillator.OnProcess(input)

To handle the input value.

input
The input value.

Returns: The resulting value.

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

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

Returns: A string representing the tuple's values.