Skip to content

charton API


charton API / @chart-on/ta / ppo

Function: ppo() ​

ppo(values, fast, slow, signal, out?, state?): Ppo

Defined in: oscillators.ts:34

Percentage price oscillator: the gap between a fast and a slow ema in percent of the slow one (its absolute value, so the sign follows the gap for negative series too), with a signal line and their difference. Like macd but comparable across prices. Lookback max(fast, slow) + signal - 2. NaN where the slow average is 0.

Pass state to keep the two averages for ppoAt.

Parameters ​

values ​

Series

fast ​

number

slow ​

number

signal ​

number

out? ​

Ppo

state? ​

PpoState

Returns ​

Ppo