TradingView
LazyBear
22 Apr 2014 pukul 02.44

Indicator: Market Facilitation Index [MFIndex] 

Microsoft CorporationNASDAQ

Huraian

[Updated: July 02, 2014]

***** NOTE: You may see all GREEN circles (it is due to a recent TV update). To work around this issue, change the "Circles" to "Cross" via Format -> Style *****

Market Facilitation Index, by Bill Williams, plots the effectiveness of price movement by computing the price movement per volume unit.

4 possible combinations of MFIndex and Volume are:

Green [indicated by GREEN dot]:
---------------------------------
MFIndex increases and the volume increases. This means that the amount of participants entering the market increases, therefore the volume increases and the fresh incoming players align their positions in the direction of candlestick growth.

Fade [indicated by BLUE dot]:
------------------------------
MFIndex falls and volume falls. It means that the market participants are indifferent and the price movement is small on small volumes. This usually happens at the end of a trend.

Fake [indicated by GRAY dot]:
------------------------------
MFIndex increases, but the volume falls. It is highly likely that the market is being supported by broker speculation and not any significant client volume.

Squat [indicated by RED dot]:
--------------------------------
MFIndex falls, but the volume increases. In this particular situation bulls and bears are fighting between themselves to see who will dominate the next trend. These battles are noticeable by the large sell and buy volumes. However, the price does not change appreciably since the strengths are equal. One of the competing parties either the buyers or the sellers will ultimately triumph in the battle. Usually, the fracture of such a candle indicates if this particular candle determines the continuation of the trend, or terminates the trend.

More info: en.wikipedia.org/wiki/Market_facilitation_index

Code: pastebin.com/Y9qYTW2R
Komen
CA2015Wb
Thanks for the starting point! I wanted an indicator that showed a histogram on the bottom, so modified your original code as follows to do it:

//@version=2
study("Market Facilitation Index", shorttitle="MFIndex_CSA")
p_range=roc((high-low)/volume,1)
plt_range=(high-low)
plt_mfi=(plt_range/volume)
t_volume=roc(volume,1)
green_wdw= (p_range > 0) and (t_volume > 0)
fade_wdw=(p_range < 0) and (t_volume < 0)
fake_wdw=(p_range > 0) and (t_volume < 0)
squat_wdw=(p_range < 0) and (t_volume > 0)
b_color = green_wdw ? green : fade_wdw ? blue : fake_wdw ? gray : squat_wdw ? red : na
plot(plt_mfi, color=b_color, style=histogram, linewidth=4)

This would have been a far more difficult task had I not had your model to start with. Thanks again!!

Chuck
MartisDon
@CA2015Wb, thx man
KarlenSarkisyan
@CA2015Wb, thanks a lot!!!
etzilla
@CA2015Wb, Thanks a lot!
QuantitativeExhaustion
Nice job on this one.

Would be much easier to read this if we had candle volume chart type.
LazyBear
Thx
cooney_s
Great indicator! Can we please request the option to be added which allows the colorization of the price bars? How about the standard MFI histogram with the colorization? Thank You !
LazyBear
Here you go..this version will color bars or draw histo (based on HL ROC) - pastebin.com/Kwbv7qrT

Sample chart:
cooney_s
Perfect! Thanks LB
LazyBear
yw :)
Lebih