Market facilitation index

bw_mfibill_williamsForge API 1

Price range per unit of volume, with Bill Williams' four colours.

Inputs

NameTypeDefault
volumevolumetick

Outputs

NameTypeRequiredDescription
mfivalueOptionalcolor theme.accent, style columns
phasevalueOptionalcolor theme.accent, style line, width 1
Warm-up
1 bars (1 at the defaults)
Repaints
No
Parity
MetaTrader 5, within 1e-12

Formula

MFI = (high - low) / volume, empty where the volume is 0

phase: 0 green (MFI up, volume up), 1 fade (down, down), 2 fake (MFI up, volume down), 3 squat (MFI down, volume up). The directions start up and change only when the value strictly changes from the previous bar.