Mass index - FXB.ta.MassIndex

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

Parameter

Description

period

Period for totalling, typically 25

subperiod

Period for moving averages, typically 9