Momentum

The Momentum is the change of the price over a fixed number of periods in price units, the simplest measure of the speed of a move. It answers the same question as the Rate of Change, how far the price moved over the window, in the currency of the price instead of as a share.

The formula for the Momentum subtracts the closing price n periods earlier from the closing price:

\[\text{Momentum} = \text{Close} - \text{Close}_{t-n}\]

The Momentum is read like the Rate of Change: above zero the price is higher than n periods ago, below zero lower, and momentum that falls while the price still rises says the move slows down. Because it is in price units, its level scales with the price: it cannot be compared between assets, and for the same asset a move of the same share gives a larger Momentum at a higher price.

Also known as: MOM, price momentum.

In the Finance Toolkit this is get_rate_of_change with method="absolute", the same function as Rate of Change (ROC).

Example · GCUSD, SIUSD · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_rate_of_change(method="absolute")

Which returns:

References

  • Paper Murphy, J.J. (1999). “Technical Analysis of the Financial Markets.” New York Institute of Finance.
  • Paper Pring, M.J. (1991). “Technical Analysis Explained.” 3rd ed. McGraw-Hill.
  • Library Referenced against TA-Lib’s MOM (Momentum)
Share