MFI (Money Flow Index)
Is volume backing the move?
Like RSI, but each day's move is weighted by the money traded, so heavy-volume days count more.
MFI on a chart of past prices
Settings: move a slider and the chart redraws
How many days of money flow are added up. 14 is the standard.
The rule sells when MFI drops back below this.
The rule buys when MFI climbs back above this.
What it measures
A day's money flow is its typical price, (high + low + close) ÷ 3, times the shares traded: roughly the ₹ value that changed hands.
If the typical price rose from the day before, that day's money flow counts as positive; if it fell, negative. MFI adds up the positive and the negative flows of the last 14 days and turns their ratio into a 0 to 100 gauge, the same way RSI does with gains and losses.
So a rise on heavy volume lifts MFI more than the same rise on thin volume.
How traders read it
- Above 80: heavy buying pressure, often called “overbought”. Below 20: heavy selling, often called “oversold”.
- The classic rule, tested here: buy when MFI climbs back above 20, sell when it drops back below 80. Marked on the chart.
- MFI falling while the price rises suggests the rise is happening on lighter money.
The traps
The same traps as RSI
“Overbought” can stay “overbought” in a strong trend, and “oversold” can get more “oversold”.
One big day distorts it
A block deal or an index rebalancing day can swing MFI for two weeks, until that day leaves the window.
It needs real volume
For an instrument without reliable volume figures, MFI means nothing.
Test the classic rule: MFI reversal
Waiting for prices…
Quick check
Waiting for prices…
Use it in a script
function run(bars, ta, helpers) {
const mfi = ta.moneyFlowIndex(bars, 14);
const up = helpers.crossover(mfi, 20), down = helpers.crossunder(mfi, 80);
const signals = [];
for (let i = 0; i < bars.length; i++) {
if (up[i]) signals.push(helpers.buy(i)); // climbs back above 20
else if (down[i]) signals.push(helpers.sell(i)); // drops back below 80
}
return helpers.finalize(signals);
}This is the rule tested above, with the settings on your sliders, and it gives exactly the same buy and sell candles. Paste it into the Scripts drawer of the chart workbench, or save it and compare it across stocks in the Strategy Lab. New to scripts? The Writing strategies track starts from zero.
In the reference:ta.moneyFlowIndexhelpers.crossoverhelpers.crossunder