Twiggs Money Flow

The Twiggs Money Flow (TMF) is a refinement of the Chaikin Money Flow by Colin Twiggs. It places the close within the true range, which includes a gap from the previous close, instead of within the high-low range, so a gap does not show up as a close at the top or bottom of a narrow range. And it smooths the money flow volume and the volume with Wilder’s moving average instead of summing them over a window, so a period of large volume does not make the indicator jump when it leaves the window.

The formula for the Twiggs Money Flow starts from the true high and the true low, the high and the low of the period extended to the previous close when the price gapped:

\[\text{True High} = \max\left(\text{High}, \text{Close}_{t-1}\right)\] \[\text{True Low} = \min\left(\text{Low}, \text{Close}_{t-1}\right)\]

The money flow volume weights the volume with the position of the close within that true range, from 1 at the true high to -1 at the true low:

\[\text{Twiggs Money Flow Volume} = \frac{\text{Volume} \cdot ((\text{Close} - \text{True Low}) - (\text{True High} - \text{Close}))}{\text{True High} - \text{True Low}}\]

The TMF divides Wilder’s moving average of that money flow volume over the last n periods by that of the volume, Wilder’s moving average being an exponential moving average with a smoothing factor of 1 / n:

\[\text{TMF} = \frac{\text{Wilder MA}(\text{Twiggs Money Flow Volume}, n)}{\text{Wilder MA}(\text{Volume}, n)}\]

Twiggs uses \(n = 21\). Like the Chaikin Money Flow, it runs between -1 and 1, above zero when buying pressure dominates and below zero when selling pressure does. Twiggs used crossings of zero and divergences from the price as signals.

Also known as: TMF, Colin Twiggs’ Money Flow.

In the Finance Toolkit this is get_chaikin_money_flow with method="twiggs", the same function as Chaikin Money Flow (CMF).

Example · ETHUSD, SOLUSD · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_chaikin_money_flow(method="twiggs")

Which returns:

References

Share