DetrendedSyntheticPrice

StockSharp.Algo.Indicators

Detrended Synthetic Price indicator.

Inherits: BaseIndicator

Constructors

DetrendedSyntheticPrice
public DetrendedSyntheticPrice()
detrendedSyntheticPrice = DetrendedSyntheticPrice()

Initializes a new instance of the DetrendedSyntheticPrice.

Properties

Length
public int Length { get; set; }
value = detrendedSyntheticPrice.Length
detrendedSyntheticPrice.Length = value

Length of the indicator.

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

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

Methods

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

Calc IsFormed.

Returns: IsFormed

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

To handle the input value.

input
The input value.

Returns: The resulting value.

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

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

Returns: A string representing the tuple's values.