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
| Setting | Default | Range | What it does |
|---|---|---|---|
| fast | 12 | 1 to 500 | Fast EMA length. |
| slow | 26 | 2 to 500 | Slow EMA length. |
| signal | 9 | 1 to 500 | Signal EMA length. |
What it gives
| Output | What it is |
|---|---|
| PPO line | PPO, % of the slow EMA. |
| Signal line | Signal line. |
| Histogram | Histogram = 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