xbj

Money Flow with moving average (MAMFI)

Money Flow with moving average, use this like MACD to show by point and sell point
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.

Disclaimer

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?
//
// @author xbjconan
// Money Flow with moving average
// 


study(title="Money Flow with moving average", shorttitle="MFI & MAMFI")
length = input(title="MFI Length", type=integer, defval=14, minval=1, maxval=2000)
src = hlc3
upper = sum(volume * (change(src) <= 0 ? 0 : src), length)
lower = sum(volume * (change(src) >= 0 ? 0 : src), length)
mf = rsi(upper, lower)
plot(mf, color=#459915)
overbought=hline(80, title="Overbought", color=#c0c0c0)
oversold=hline(20, title="Oversold", color=#c0c0c0)
fill(overbought, oversold, color=#9915ff, transp=90)
len = input(6, minval=1, title="MAMFI Length")
out = sma(mf, len)
plot(out, color=blue, title="MA")