KnowSureThing
StockSharp.Algo.Indicators
Know Sure Thing (KST) indicator.
Inherits: BaseComplexIndicator<IKnowSureThingValue>
Constructors
KnowSureThing
public KnowSureThing()
knowSureThing = KnowSureThing()
Initializes a new instance of the KnowSureThing.
Properties
Measure
public override IndicatorMeasures Measure { get; }
value = knowSureThing.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = knowSureThing.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
Sma1
public SimpleMovingAverage Sma1 { get; }
value = knowSureThing.Sma1
Simple Moving Average applied to ROC #1.
Sma2
public SimpleMovingAverage Sma2 { get; }
value = knowSureThing.Sma2
Simple Moving Average applied to ROC #2.
Sma3
public SimpleMovingAverage Sma3 { get; }
value = knowSureThing.Sma3
Simple Moving Average applied to ROC #3.
Sma4
public SimpleMovingAverage Sma4 { get; }
value = knowSureThing.Sma4
Simple Moving Average applied to ROC #4.
Methods
CalcIsFormed
protected override bool CalcIsFormed()
result = knowSureThing.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
CreateValue
protected override IKnowSureThingValue CreateValue(DateTime time)
result = knowSureThing.CreateValue(time)
Create .
- time
- Time
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = knowSureThing.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
Reset
public override void Reset()
knowSureThing.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).