mfi
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.mfi(high: ArrayLike,low: ArrayLike,close: ArrayLike,volume: ArrayLike,period: int = 14) -> np.ndarrayMoney flow index: RSI built from the typical price times volume, from 0 to 100.
Parameters
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| low | ArrayLike | |
| close | ArrayLike | |
| volume | ArrayLike | |
| period | int | 14 |
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) -> NoneRSI built from price times volume, from 0 to 100.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| period | int | 14 | 1 to 5000 |
| volume | volume | tick |
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.