PPO (Function)

image\trumpet2.gif Disclaimer

The PPO (percentage price oscillator) series function returns the difference between a fast and slow exponential moving average based on the same Price. The difference between the two averages is expressed as a percentage of the value of the slower average.

Syntax

PPO(Price, FastLength, SlowLength)

Returns (Double)

A numeric value containing PPO value for the current bar.

Parameters

Name

Type

Description

Price

Numeric

Specifies the value to be averaged.

FastLength

Numeric

Sets  the number of bars used in the calculation of the fast average.

SlowLength

Numeric

Sets  the number of bars used in the calculation of the slow average.

Remarks

FastLength and SlowLength refer to the number of bars used in the moving averages. These values should not vary on a bar-by-bar basis. FastLength, by definition, should be less than SlowLength. If the specified length of FastLength is greater than that of the SlowLength, the oscillator will invert.

Example

Plot1( PPO( Close, 16, 26), "PPOValue" );