APO-Absolute Price Oscillator (PO-Price Oscillator)

Category: Indicators By: robertogozzi Created: January 12, 2021, 4:23 PM
January 12, 2021, 4:23 PM
Indicators
2 Comments

APO Absolute Price Oscillator (also simply called: PO – Price Oscillator) is pretty much like MACD it’s a difference between a faster and a slower Moving Average.
Zero line crossings are to be intended as Bullish or Bearish signals.

Calculation:
input     = price, user defined, default is Midpoint
method = moving average (ma), user defined, default is SMA
period   = user defined, default is 10
period2 = user defined, default is 30
index    = current bar number

MA1 = ma(method, index, period, input);
MA2 = ma(method, index, period2, input);
Plot: diff = MA1-MA2;

FastMA = 12
SlowMA = 26
MAtype = 0   //(sma)
// --------
FastMA   = max(1,min(999,FastMA))
SlowMA   = max(FastMA + 1,min(999,SlowMA))
MAtype   = max(0,min(8,MAtype))
src      = CustomClose
APO      = Average[FastMA,MAtype](src) - Average[SlowMA,MAtype](src)
RETURN APO AS "Absolute Price Oscillator",0 AS "Zero"

Download
Filename: APO-Absolute-Price-Oscillator.itf
Downloads: 91
robertogozzi Master
Roberto https://www.ots-onlinetradingsoftware.com
Author’s Profile

Comments

Logo Logo
Loading...