Volume Index - FXB.ta.VolumeIndex

The FXB.ta.VolumeIndex class calculates positive and negative volume index. It is a bar-based calculation, and requires candle data as an input. Parameters are as follows:

Parameter

Description

member

Candle member. Defaults to the close (c)

The primary output values - GetValue() etc - are set to the positive volume index. The signal values - GetSignalValue() etc - are set to the negative volumed index.

Note: the absolute current value of the indexes changes depending on the starting point/length of candle history. It is therefore mostly useful as a relative measure, not as an absolute value.