Price Oscillator - FXB.ta.PO

The FXB.ta.PO class calculates the "price oscillator": the difference between fast and slow moving averages divided into the slow moving average. It is a value-based calculation, and can be applied to any series of values including the output of another FXB.ta calculation. Parameters are as follows:

Parameter

Description

fast

Period for fast moving average (e.g. 12)

slow

Period for slow moving average (e.g. 26)

maType

Type of moving average for the fast and slow averages. Defaults to an exponential moving average (ema / 1).