bw_mfi

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.bw_mfi(high: ArrayLike,low: ArrayLike,volume: ArrayLike) -> dict[str, np.ndarray]

Market facilitation index: mfi = (high - low) / volume, in price units.

Parameters

NameType
highArrayLike
lowArrayLike
volumeArrayLike

Indicator: Market facilitation index

NaN where the volume is 0 or a price is missing. phase is MetaTrader 5's colour: 0 green (MFI up, volume up), 1 fade (down, down), 2 fake (MFI up, volume down), 3 squat (MFI down, volume up). The two directions start up and change only on a strict change from the previous bar; a bar with no MFI leaves them as they were and has no phase, and neither does bar 0.