mfi

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.mfi(high: ArrayLike,low: ArrayLike,close: ArrayLike,volume: ArrayLike,period: int = 14) -> np.ndarray

Money flow index: RSI built from the typical price times volume, from 0 to 100.

Parameters

NameTypeDefault
highArrayLike
lowArrayLike
closeArrayLike
volumeArrayLike
periodint14

Indicator: Money flow index

The typical price times volume is positive flow on a bar whose typical price rose, negative on one that fell, and counts in neither when it did not move. 100 * positive / (positive + negative) over period bars: 100 when only positive flow is left and 50 when there is none. The first value is on bar period.

Classpython
forge.ta.MFI(**inputs: Any) -> None

RSI built from price times volume, from 0 to 100.

Inputs

NameTypeDefaultRange
periodint141 to 5000
volumevolumetick

The typical price times volume is positive flow on a bar whose typical price rose and negative flow on one that fell; it counts in neither when it did not move

MFI = 100 * positive / (positive + negative) over the last period bars

Only positive flow reads 100, no flow reads 50.