Cumulative Force Index

The Cumulative Force Index (CFI) is the running total of the Force Index: it adds up the smoothed force of the buyers and sellers over time, as On-Balance Volume adds up the volume, but weighted with the size of each move. A heavy session that barely moves the price adds little to it.

The formula for the Cumulative Force Index starts from the force of each period, the change of the close times the volume:

\[\text{Force} = (\text{Close} - \text{Close}_{t-1}) \cdot \text{Volume}\]

The CFI adds the exponential moving average of that force over the last n periods to its value of the period before:

\[\text{CFI} = \text{CFI}_{t-1} + \text{EMA}(\text{Force}, n)\]

With \(n = 1\) there is no smoothing and the Cumulative Force Index is the Weighted On-Balance Volume. As with On-Balance Volume, the level of the Cumulative Force Index depends on where the running total starts and on the number of shares traded; only its direction and its divergences from the price carry meaning: a CFI that rises while the price falls shows that the heavy volume comes with the up moves.

Also known as: CFI, Weighted On-Balance Volume, WOBV.

In the Finance Toolkit this is get_force_index with method="cumulative", the same function as Force Index.

Example · TLT · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_force_index:

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["TLT"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_force_index(method="cumulative")

Which returns:

References

  • Library Referenced against finta’s CFI (Cumulative Force Index)
  • Library Referenced against finta’s WOBV (Cumulative Force Index)
Share