Klinger volume oscillator - FXB.ta.KVO

The FXB.ta.KVO class calculates the Klinger volume oscillator. It is a bar-based calculation, and requires candle data as an input. Parameters are as follows:

Parameter

Description

fast

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

slow

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

signal

Signal/smoothing period (e.g. 9)

maType

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

smoothingType

Type of moving average for the smoothing of the differences. Defaults to a simple moving average (sma / 0).

The oscillator sets both primary and signal outputs.