Definition
The Percentage Price Oscillator shows the percentage difference between two exponential moving averages.
Syntax
PPO(int fast, int slow, int smooth)
PPO(IDataSeries inputData, int fast, int slow, int smooth)
Returns default value
PPO(int fast, int slow, int smooth)[int barsAgo]
PPO(IDataSeries inputData, int fast, int slow, int smooth)[int barsAgo]
Returns smoothed value
PPO(int fast, int slow, int smooth).Smoothed[int barsAgo]
PPO(IDataSeries inputData, int fast, int slow, int smooth).Smoothed[int barsAgo]
Return Type
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
|
Parameters |
|
|
fast |
The number of bars to calculate the fast EMA |
|
slow |
The number of bars to calculate the slow EMA |
|
smooth |
The number of bars to calculate the EMA signal line |
|
inputData |
Indicator source data (?) |
Examples
|
// Prints the current value of a 20 period Percentage Price Oscillator
|
Source Code
You can open up the indicator source code via the NinjaScript Editor.