PPO

The gap between a fast and a slow exponential average as a percent, with a signal line.

Percentage Price Oscillator: ppo = (EMA(x, fast) − EMA(x, slow)) ÷ EMA(x, slow) × 100; signal = EMA(ppo, signal); histogram = ppo − signal. Needs fast < slow; not ready when the slow EMA is 0. Mirror: signed for all three.

Settings

SettingDefaultRangeWhat it does
fast121 to 500Fast EMA length.
slow262 to 500Slow EMA length.
signal91 to 500Signal EMA length.

What it gives

OutputWhat it is
PPO linePPO, % of the slow EMA.
Signal lineSignal line.
HistogramHistogram = ppo − signal.

What it reads

It reads open, high, low, close, hl2, hlc3, ohlc4, hlcc4, close by default.

Warm-up

With its default settings, PPO needs 140 closed candles before its first value. A backtest loads them before its start date, so the first trade can already use it.

Test it

Copy this sentence into the Algonney chat to backtest it:

Backtest a strategy on BTC that uses PPO with its default settings