Functions
talib.mfi()
Money Flow Index for `source` over `length` bars. There is no volume argument in the signature.
Syntax
talib.mfi(series float source, series int length) → series float
Arguments
source required series float The series the index is calculated on. length required series int How many bars the calculation covers. Return Type
series float Example
indicator("Money Flow Index (MFI)", overlay=false)
length = input(14, "MFI Length")
seres = input(close,"Series")
mfi = talib.mfi(seres, length)
plot(mfi, color=color.blue, title="MFI")
hline(80, "Overbought", color=color.red)
hline(20, "Oversold", color=color.green)