XetaAI Traders Toolbox
  • The XetaAI Traders ToolBox & Backtester
    • Understanding the XetaAI Traders Toolbox
      • Indicators Breakdown
        • Super Trend
          • Super Trend Advanced Settings
        • Half Trend
          • Half Trend Advanced Settings
        • VWAP (Volume Weighted Average Price)
          • Page VWAP (Volume Weighted Average Price) Advanced Settings
        • MA Signals (Moving Averages)
          • MA Signals (Moving Averages) Advanced Settings
      • Filters Breakdown
        • Super Trend to Filter Half Trend
        • Half Trend to Filter Super Trend
        • Super Trend to Filter VWAP
        • Half Trend to Filter VWAP
        • Fast/Slow MA to Filter VWAP
        • Super Trend to Filter Fast/Slow MA
        • Half Trend to Filter Fast/Slow MA Signals
      • Additional Filters
        • RSI (Relative Strength Index)
          • RSI (Relative Strength Index) Advanced Settings
        • MFI (Money Flow Index)
          • MFI (Money Flow Index) Advanced Settings
        • Stochastic Oscillator
          • Stochastic Oscillator
        • HTF Super Trend 1 & 2
          • HTF Super Trend 1 & 2 Advanced Settings
        • PSAR Trend Filter 1 & 2 (Parabolic SAR)
          • PSAR Trend Filter 1 & 2 (Parabolic SAR) Advance Settings
        • Volume Filter
          • Volume Filter Advances Settings
        • HullSuite Filter
          • HullSuite Filter Advance Settings
        • MACD (Moving Average Convergence Divergence)
          • MACD (Moving Average Convergence Divergence) Advance Settings
        • Hawkeye
          • Hawkeye Advance Settings
        • ADX Range (Average Directional Index)
          • ADX Range (Average Directional Index) Advance Settings
        • TTM Squeeze Momentum
          • TTM Squeeze Momentum Advanced Settings
        • Divergence
          • Divergence Advanced Settings
        • VWAP Above/Below
          • VWAP Above/Below Advanced Settings
        • MA Above/Below
          • MA Above/Below Advanced Settings
        • Support and Resistance Filter Settings
    • The XetaAI Backtester
      • Inputs
      • Properties
      • Style
      • Visibility
    • Linking XetaAI Bot Manager, Traders Toolbox, and Backtester
      • Add the XetaAI Toolbox to TradingView
      • Linking XetaAI Bot Manager with TradingView Alerts
      • Adding the XetaAI Backtester to Your TradingView Chart
Powered by GitBook
On this page
  1. The XetaAI Traders ToolBox & Backtester
  2. Understanding the XetaAI Traders Toolbox
  3. Additional Filters
  4. MFI (Money Flow Index)

MFI (Money Flow Index) Advanced Settings

Money Flow Index (MFI) - Advanced Settings

The Money Flow Index (MFI) is a momentum oscillator that incorporates both price and volume to assess the strength of price movements and potential overbought or oversold conditions. It is similar to the RSI but differs by including volume in its calculation, which gives a more complete view of market activity.

MFI values range from 0 to 100, and typical interpretation rules are:

  • Above 80: Overbought conditions (potential sell signal).

  • Below 20: Oversold conditions (potential buy signal).

MFI can be customized with parameters such as timeframe, length, and thresholds for buy and sell conditions to better tailor it to a specific trading strategy.


Key MFI Parameters:

1. MFI Timeframe

  • Definition: The timeframe refers to the period in which MFI values are calculated. For example, a daily timeframe will calculate MFI based on daily price and volume data, while a 1-hour timeframe will calculate it on hourly data.

  • How It Works:

    • The timeframe determines the range of price and volume data used in the MFI calculation. Adjusting the timeframe affects the sensitivity of MFI.

    • Shorter timeframes (e.g., 5-minute or 15-minute) make MFI more reactive to short-term price and volume changes.

    • Longer timeframes (e.g., 1-hour, 4-hour, or daily) provide a smoother, more long-term perspective on market strength.

  • Use Case:

    • Shorter timeframes are useful for intraday or scalping strategies where quick price movements are expected.

    • Longer timeframes are better for swing or trend-following traders who want to assess broader market momentum.

2. MFI Length

  • Definition: The length refers to the number of periods used to calculate the MFI. The default length is typically 14 periods, similar to the RSI.

  • How It Works:

    • The length determines how many bars or candles are considered in the MFI calculation. A shorter length makes MFI more sensitive to recent changes, while a longer length makes it less reactive and smoother.

    • Common lengths are 7, 14, and 21 periods, but this can be customized based on the trader’s strategy.

  • Use Case:

    • Shorter length (e.g., 7) increases sensitivity, making it better for fast-moving markets.

    • Longer length (e.g., 21) smooths out market noise, suitable for trend-following strategies.

3. Buy Max / Buy Min

  • Definition: These settings define the thresholds at which the MFI signals buy opportunities. When the MFI drops below the Buy Min, it signals oversold conditions, indicating a potential buy signal.

  • How It Works:

    • The Buy Min value defines the threshold for when an asset is considered oversold and might be due for a price increase. Common values for Buy Min are 20 or 25.

    • The Buy Max can be set to a value above the Buy Min to refine the buy conditions. For example, Buy Max could be set to 50 to ensure the asset is not only oversold but also showing a significant rebound.

  • Use Case:

    • Buy Min = 20: Identifies when the asset is oversold and may reverse.

    • Buy Max = 40: Filters out signals where the MFI is still not significantly in oversold territory, reducing the risk of buying too early.

  • Example:

    • Buy Min = 25, Buy Max = 40: This would only trigger a buy signal when the MFI has dropped below 25 but has rebounded to a maximum of 40, confirming a price reversal from oversold conditions.

4. Sell Max / Sell Min

  • Definition: The sell max and sell min values define the thresholds at which the MFI signals sell opportunities. When the MFI rises above the Sell Min, it suggests overbought conditions, indicating a potential sell signal.

  • How It Works:

    • The Sell Min value defines the threshold for when an asset is considered overbought and might be due for a price decline. Common values for Sell Min are 70 or 75.

    • The Sell Max is often set just above the Sell Min to filter out less significant overbought conditions. For instance, Sell Max might be set to 85 to only trigger sell signals when the asset is in an extreme overbought state.

  • Use Case:

    • Sell Min = 70: Indicates that the asset is overbought and might be due for a pullback.

    • Sell Max = 85: Filters out minor overbought signals to focus on more significant sell opportunities.

  • Example:

    • Sell Min = 70, Sell Max = 85: The signal only triggers a sell when the MFI is within the overbought range (70-85), ensuring a more confirmed reversal.


MFI Filtering Example:

  • Timeframe: 1-Hour

  • Length: 14 periods (default setting) — analyzes the last 14 periods (bars or candles) for price and volume.

  • Buy Min: Set to 25 (to identify oversold conditions).

  • Buy Max: Set to 40 (filter out minor signals).

  • Sell Min: Set to 70 (to identify overbought conditions).

  • Sell Max: Set to 85 (filter out weaker sell signals).

This would trigger a buy signal when the MFI drops below 25 and starts moving upward (within the 25-40 range) and would trigger a sell signal when the MFI rises above 70 and starts moving downward (within the 70-85 range).


Use Cases for These Settings:

  1. Scalping or Short-Term Trading:

    • Shorter length (7-14) for quicker signals.

    • Buy Min and Sell Max are kept close to extreme levels (e.g., 20 for buy and 75 for sell) to capture short-term reversals.

  2. Swing Trading or Trend Reversal:

    • Moderate length (14-21) for a more balanced approach.

    • Buy Min at 20-30 and Sell Min at 70-80 to filter out more significant oversold or overbought conditions before entering.

  3. Long-Term Trading:

    • Longer length (21+) for smoother signals.

    • Buy Min and Sell Min set further apart (e.g., 15 for buy and 85 for sell) to avoid overreacting to minor price movements and focusing on stronger trends.


Summary of Key MFI Settings:

  • Timeframe/Length: Adjusting these parameters defines how reactive MFI is to price and volume changes.

  • Buy Min/Max: Customizes the threshold for when the market is oversold, providing safer buy opportunities.

  • Sell Min/Max: Customizes the threshold for when the market is overbought, offering more reliable sell signals.

  • Adjustability: The MFI parameters can be fine-tuned based on your trading strategy, allowing for more precise and filtered signals.

By adjusting these parameters, you can enhance the effectiveness of MFI in your trading strategy and better assess the strength of price movements with the added dimension of volume.

PreviousMFI (Money Flow Index)NextStochastic Oscillator

Last updated 3 months ago