RAVI - FXB.ta.RAVI

The FXB.ta.RAVI class calculates RAVI: very similar to the Price Oscillator except that the numerator in the calculation is the absolute difference between the averages rather than a directional positive/negative. 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).