Class AbsolutePriceOscillator
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
This indicator computes the Absolute Price Oscillator (APO) The Absolute Price Oscillator is calculated using the following formula: APO[i] = FastMA[i] - SlowMA[i]
public class AbsolutePriceOscillator : MovingAverageConvergenceDivergence, IIndicator, IUpdatable
- Inheritance
-
AbsolutePriceOscillator
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
The Absolute Price Oscillator is the same as a MACD with the signal period equal to the slow period.
Constructors
AbsolutePriceOscillator(int, int, MovingAverageType)
Initializes a new instance of the AbsolutePriceOscillator class using the specified parameters.
public AbsolutePriceOscillator(int fastPeriod, int slowPeriod, MovingAverageType movingAverageType = MovingAverageType.Simple)
Parameters
fastPeriodintThe fast moving average period
slowPeriodintThe slow moving average period
movingAverageTypeMovingAverageTypeThe type of moving average to use
AbsolutePriceOscillator(string, int, int, MovingAverageType)
Initializes a new instance of the AbsolutePriceOscillator class using the specified name and parameters.
public AbsolutePriceOscillator(string name, int fastPeriod, int slowPeriod, MovingAverageType movingAverageType = MovingAverageType.Simple)
Parameters
namestringThe name of this indicator
fastPeriodintThe fast moving average period
slowPeriodintThe slow moving average period
movingAverageTypeMovingAverageTypeThe type of moving average to use