Class Acceleration
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
Acceleration / Deceleration Indicator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "AD", Description = "AccDecIndicator")]
public class Acceleration : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
- Inheritance
-
Acceleration
- Implements
-
IPersistableICloneable<IIndicator>
- 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
ao
AwesomeOscillatorAwesome Oscillator.
sma
SimpleMovingAverageThe 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
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.