mfi
Money Flow Index (Volume-weighted momentum oscillator)
mfi(period)
Parameters
| Name | Type | Description |
|---|---|---|
period |
int | Number of periods for money flow calculation |
Formula
```
MFI = 100 - (100 / (1 + Money Flow Ratio))
Where:
- Money Flow Ratio = Positive Money Flow / Negative Money Flow
- Raw Money Flow = Typical Price * Volume
- Typical Price = (High + Low + Close) / 3
- Positive Flow = Money flow when typical price rises
- Negative Flow = Money flow when typical price falls
```
Examples
mfi(14); # Standard 14-period MFI
mfi(10); # More sensitive 10-period MFI
mfi(14) > 80; # Overbought with volume confirmation
mfi(14) < 20; # Oversold with volume confirmation
Returns
MFI value ranging from 0 to 100 ## References - TradingView: `ta.mfi()` - Developed by Gene Quong and Avrum Soudack ## Notes - Values > 80 indicate overbought with strong buying pressure - Values < 20 indicate oversold with strong selling pressure - More reliable than price-only oscillators due to volume weighting - Returns 100 when negative flow is 0, returns 0 when positive flow is 0