Class Acceleration
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Acceleration / Deceleration Indicator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "AD", Description = "AccDecIndicator")]
[Doc("topics/api/indicators/list_of_indicators/a_d.html")]
public class Acceleration : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
Acceleration
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Constructors
Acceleration()
Initializes a new instance of the Acceleration.
public Acceleration()
Acceleration(AwesomeOscillator, SimpleMovingAverage)
Initializes a new instance of the Acceleration.
public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma)
Parameters
aoAwesomeOscillatorAwesome Oscillator.
smaSimpleMovingAverageThe moving average.
Properties
Ao
Awesome Oscillator.
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "AO", Description = "AwesomeOscillator", GroupName = "General")]
public AwesomeOscillator Ao { get; }
Property Value
Measure
public override IndicatorMeasures Measure { get; }
Property Value
NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals true). null if undefined.
public override int NumValuesToInitialize { get; }
Property Value
Sma
The moving average.
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "MA", Description = "MovingAverage", GroupName = "General")]
public SimpleMovingAverage Sma { get; }
Property Value
Methods
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
inputIIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
ToString()
public override string ToString()