Money Flow Divergence
Aug 26, 2024

The Money Flow Divergence indicator identifies periods of significant divergence between the growth of the U.S. M2 money supply and the S&P 500 index (SPX) to highlight potential macroeconomic market turning points.
Usage
The Money Flow Divergence tool is primarily used by long-term investors to assess whether market liquidity is supporting current equity prices. By analyzing the "growth gap" between the M2 money supply and the SPX, traders can identify two primary states:
- Bullish Signals (Green Histogram): Occur when M2 growth outpaces SPX growth. This suggests there is excess liquidity in the financial system relative to stock performance, often signaling a favorable environment for upward momentum.
- Bearish Signals (Red Histogram): Occur when SPX growth outpaces M2 growth. This indicates the market may be overextended relative to available liquidity, serving as a warning for potential corrections or downturns.
While the tool supports various timeframes, the monthly (M) setting is generally considered the most effective for filtering out short-term noise and focusing on broader macroeconomic trends.
Details
The script calculates the percentage growth of both the S&P 500 (SPX) and the U.S. M2 Money Supply using data requested from external feeds (FRED:M2 and SP:SPX). The "Growth Gap" or "Delta" is then derived by subtracting the SPX growth percentage from the M2 growth percentage.
This relationship is rooted in the concept that stock market performance is often driven by the availability of money in the economy. When the money supply expands faster than the market, it creates a "liquidity buffer." Conversely, when the market rises significantly faster than the money supply, the market may be becoming "expensive" in liquidity terms.
Settings
- Time Frame: Determines the interval used for calculating the growth rates (e.g., Monthly, Weekly, Daily). Changing this affects how frequently the delta is updated and the sensitivity of the histogram.
FAQ
How do I interpret the histogram colors?
Green bars indicate that the U.S. M2 money supply is growing faster than the S&P 500, suggesting a healthy liquidity environment. Red bars indicate the S&P 500 is growing faster than the money supply, which may signal overvaluation.
Which timeframe is best for this indicator?
Macroeconomic data like the M2 money supply is typically reported on a monthly basis, so the Monthly (M) timeframe usually provides the most accurate and reliable signals.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

