Acceleration
StockSharp.Algo.Indicators
Acceleration / Deceleration Indicator.
Inherits: BaseIndicator
Constructors
Acceleration
public Acceleration()
acceleration = Acceleration()
Initializes a new instance of the Acceleration.
Acceleration
public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma)
acceleration = Acceleration(ao, sma)
Initializes a new instance of the Acceleration.
- ao
- Awesome Oscillator.
- sma
- The moving average.
Properties
Measure
public override IndicatorMeasures Measure { get; }
value = acceleration.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = acceleration.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 = acceleration.CalcIsFormed()
Calc IsFormed.
Returns: IsFormed
Load
public override void Load(SettingsStorage storage)
acceleration.Load(storage)
Load settings.
- storage
- Settings storage.
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = acceleration.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
Save
public override void Save(SettingsStorage storage)
acceleration.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = acceleration.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.