xbj

Money Flow with moving average (MAMFI)

mfi
60 1 8
mfi
Money Flow with moving average , use this like MACD to show by point and sell point
Remove from Favorite Scripts Add to Favorite Scripts
//
// @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")
andreas73
2 years ago
good idea, but in my charts the indicator is only black
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out