SchaffTrendCycle
StockSharp.Algo.Indicators
Schaff Trend Cycle (STC) indicator.
Inherits: ExponentialMovingAverage
Constructors
SchaffTrendCycle
public SchaffTrendCycle()
schaffTrendCycle = SchaffTrendCycle()
Initializes a new instance of the SchaffTrendCycle.
Properties
Macd
public MovingAverageConvergenceDivergenceSignal Macd { get; }
value = schaffTrendCycle.Macd
Convergence/divergence of moving averages.
Measure
public override IndicatorMeasures Measure { get; }
value = schaffTrendCycle.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = schaffTrendCycle.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
StochasticK
public StochasticK StochasticK { get; }
value = schaffTrendCycle.StochasticK
StochasticK.
Methods
CalcIsFormed
protected override bool CalcIsFormed()
result = schaffTrendCycle.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
Load
public override void Load(SettingsStorage storage)
schaffTrendCycle.Load(storage)
Load settings.
- storage
- Settings storage.
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = schaffTrendCycle.OnProcessDecimal(input)
To handle the input value.
- input
- The input value.
Returns: The new value of the indicator.
Reset
public override void Reset()
schaffTrendCycle.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)
schaffTrendCycle.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = schaffTrendCycle.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.