PPO Oscillator (Indicator)

Disclaimer

Input Information

Name Expression Default Description
Price Numeric Close Price or expression used tor calculate the oscillator values.
FastLength Numeric 12 Number of bars to include in calculation of the fast exponential average.
SlowLength Numeric 26 Number of bars to include in calculation of the slow exponential average.
PPOSignalLength Numeric 9 Number of bars used to smooth the PPO value.
AlertIfCrossUp Numeric 1 Set to 1 for an alert to be triggered when the PPO histogram's value crosses from below 0 to above 0; Otherwise, set to 0 for no alert to be triggered in this case.
AlertIfCrossDown Numeric 1 Set to 1 for an alert to be triggered when the PPO histogram's value crosses from above 0 to below 0; Otherwise, set to 0 for no alert to be triggered in this case.
PPODiff_Up_Color Numeric UpColorDefault Color for positive values of PPODiff.
PPODiff_Down_Color Numeric DownColorDefault Color for negative values of PPODiff.
BackgroundColorAlertCell Numeric DarkGray Color for grid cell background when alert criteria is met. Note that the MyColors function provides additional colors, if desired.

Market Synopsis

The PPO indicator calculates 2 exponential moving averages of the lengths specified by the inputs FastLength and SlowLength. The difference between these 2 averages is then plotted as percentage of the Slow moving average. This value is also averaged for the number of bars specified by the input PPOLength and then plotted as the PPOAvg. Finally, the difference between the PPO and the PPO average is calculated and plotted as the PPODiff.

Plot Information

Number Name Default Color Description
Plot1 PPO Yellow Plots the PPO value.
Plot2 PPOAvg Cyan Plots the PPO exponential average.
Plot3 PPODiff Red Plots the difference between the PPO and PPOAvg as a histogram.
Plot4 ZeroLine Dark Green Plots a reference line at zero.
Plot5 CrossBarsAgo Default In a grid, plots the number of bars ago that the last cross of PPODiff over or under 0 occurred.

When applied to a chart, this indicator displays four plots in a separate subgraph from the price data. In a grid, displays five plots.

Related Functions

PPO

XAverage