fix(docs): correct .md documentation across errors, dynamics, filters, forecasts, momentum, numerics, oscillators, reversals, statistics, trends, volatility, volume
2026-03-10 18:38:23 -07:00
|
|
|
// Licensed under the Apache License, Version 2.0
|
|
|
|
|
// © mihakralj
|
2026-02-26 22:02:52 -08:00
|
|
|
//@version=6
|
fix(docs): correct .md documentation across errors, dynamics, filters, forecasts, momentum, numerics, oscillators, reversals, statistics, trends, volatility, volume
2026-03-10 18:38:23 -07:00
|
|
|
indicator("Market Facilitation Index (MARKETFI)", "MARKETFI", overlay=false)
|
2026-02-26 22:02:52 -08:00
|
|
|
|
|
|
|
|
// Bill Williams' Market Facilitation Index (BW MFI)
|
|
|
|
|
// Measures price movement efficiency per unit of volume.
|
|
|
|
|
// High MFI + rising volume = strong trend (green)
|
|
|
|
|
// Low MFI + falling volume = squat / accumulation (brown)
|
|
|
|
|
// Guard: volume == 0 produces 0.0 (no market activity = no MFI)
|
|
|
|
|
|
|
|
|
|
mfi = volume != 0 ? (high - low) / volume : 0.0
|
|
|
|
|
|
|
|
|
|
plot(mfi, title="MARKETFI", color=color.blue, linewidth=2)
|
|
|
|
|
hline(0, "Zero", color=color.gray, linestyle=hline.style_dashed)
|