Skip to main content

ppo


PPO

Type: ppo • Category: indicators

Description

Percentage Price Oscillator

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringList of pricesno
fastperiodnumberno12
slowperiodnumberno26
matypenumberno0

Help

PPO (Percentage Price Oscillator)

=====================================

Description

The PPO (Percentage Price Oscillator) is a technical indicator used in financial markets to measure the relationship between two moving averages of a security's price.

What does this worker do?

This worker calculates the Percentage Price Oscillator (PPO) for a given set of price data. The PPO is a momentum indicator that shows the relationship between two moving averages (fast and slow) of a security's price.

How to interpret the results

The PPO is used to identify trends, buy and sell signals, and divergences. A positive PPO indicates that the fast moving average is above the slow moving average, suggesting an upward trend. A negative PPO indicates that the fast moving average is below the slow moving average, suggesting a downward trend. Traders can use the PPO to generate buy and sell signals, such as when the PPO crosses above or below a signal line (usually a 9-period moving average of the PPO).

Parameters

The following parameters can be passed to the PPO worker:

Parameters Schema (JSON)

{
"dataExp": {
"type": "string",
"description": "List of prices"
},
"fastperiod": {
"type": "number",
"default": 12
},
"slowperiod": {
"type": "number",
"default": 26
},
"matype": {
"type": "number",
"default": 0
}
}

Parameters List

  • dataExp: string - List of prices.
  • fastperiod: number (default: 12) - The period of the fast moving average.
  • slowperiod: number (default: 26) - The period of the slow moving average.
  • matype: number (default: 0) - The type of moving average (0 = Simple, 1 = Exponential, 2 = TimeSeries, 3 = Variable, 4 = Triangular, 5 = Modified, 6 = Linear).

Note that the matype parameter determines the type of moving average used in the calculation of the PPO. The default value of 0 corresponds to a Simple Moving Average (SMA).