Gradient Money Flow Divergence Detector

JohannCoffee Updated   
The "Gradient Money Flow Divergence Detector" indicator has several use cases for traders. Let's explore the main use cases:

1. Money Flow Analysis: The primary purpose of this indicator is to analyze money flow in a particular asset. The Money Flow Index (MFI) is a momentum indicator that uses price and volume data to assess the buying and selling pressure in a market. Traders can use the MFI to identify overbought and oversold conditions, potential trend reversals, and divergences between the MFI and price movement.

2. Divergence Detection: The indicator incorporates a divergence detection mechanism for multiple timeframes (micro, sub-mid, mid, and macro). Divergence occurs when the price movement and an indicator (MFI in this case) move in opposite directions, signaling a potential shift in the price trend. Traders can use divergences to anticipate trend reversals or trend continuation.

3. Multiple Lookback Analysis: The indicator allows traders to assess divergences and money flow trends across various time horizons by providing divergence detection for different lengths. This can help traders identify confluence areas where divergences align on multiple timeframes, strengthening the potential signal.

4. Overbought and Oversold Conditions: The indicator plots horizontal lines at MFI levels of 20, 50, and 80. These levels can be used to identify overbought (MFI above 80) and oversold (MFI below 20) conditions. Traders may look for potential reversal signals when the MFI reaches extreme levels.

5. Confirmation of Price Trends: The indicator's color gradient visually represents the MFI value, which can help traders confirm the strength of a prevailing price trend. For example, an uptrend with a consistently high MFI might suggest strong buying pressure, reinforcing the bullish bias.

6. Fine-Tuning Divergence Signals: Traders can adjust the parameters of divergence detection (e.g., pivot points, rangeUpper, rangeLower) to fine-tune the sensitivity of the divergence signals. This allows for greater customization based on individual trading preferences.

7. Combining with Other Indicators: The indicator can be used in combination with other technical indicators or price action analysis to strengthen trading decisions. For example, traders may look for divergences in conjunction with support and resistance levels or chart patterns to increase the probability of successful trades.

8. Trend Reversal Confirmation: When a divergence is detected, it may indicate a potential trend reversal. Traders can use other confirmation signals (e.g., candlestick patterns, trendline breaks) to validate the reversal before making trading decisions.

Remember that no single indicator should be used in isolation, and it's essential to use the indicator in combination with other confirmations such as support and resistance, and analysis methods for more robust trading strategies. Additionally, thorough backtesting and practice in a demo environment are recommended before using the indicator in live trading.
Release Notes:
New div alerts added
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?