Centre of Gravity - FXB.ta.COG

The FXB.ta.COG class calculates Centre of Gravity. 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

period

Rolling period for the calculation