APO
Summary
Absolute Price Oscillator: the difference between a fast and a slow moving average of the input, in price units. Measures short- vs long-term momentum. Positive when fast MA > slow MA (upward momentum); negative otherwise.
Formula
\(APO = MA_{fast}(inReal) - MA_{slow}(inReal)\), both MAs of type optInMAType
Inputs
inReal— Source data series
Outputs
outReal— Fast MA minus slow MA
Parameters
optInFastPeriod— Period of the fast moving averageoptInSlowPeriod— Period of the slow moving averageoptInMAType— Moving-average type used for both MAs
Implementation
TA-Lib Definition: apo.c · apo.yaml
| Native | File |
|---|---|
| C | ta_APO.c |
| Rust | apo.rs |
| Java | Core.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Absolute Price Oscillator