MFI (Money Flow Index)
Indicator Description
MFI (Money Flow Index) is a momentum indicator that combines price and volume to measure the strength of money flowing in and out of a security, similar to RSI but incorporating volume as a factor.
Function Information
- Function Name:
MFI - Input Parameters:
High: High priceLow: Low priceClose: Closing priceVolume: Volume
- Parameter Settings:
timeperiod: Calculation period, default 14
- Output: MFI value
Calculation Principle
MFI is calculated using the following formula:
Typical Price = (High + Low + Close) / 3
Money Flow = Typical Price * Volume
Positive Money Flow = Sum of Money Flow when price increases
Negative Money Flow = Sum of Money Flow when price decreases
MFI = 100 - (100 / (1 + Positive Money Flow / Negative Money Flow))
Usage Scenarios
- Money Flow Analysis
- Overbought/Oversold Analysis
- Trading Signal Generation
- Divergence Analysis
Usage Recommendations
- MFI > 80 indicates overbought conditions
- MFI < 20 indicates oversold conditions
- Watch for divergence patterns
- Pay attention to market environment changes