Skip to content

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 average
  • optInSlowPeriod — Period of the slow moving average
  • optInMAType — 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

See Also

PPO · MACD · MA · EMA · SMA