Sometime aga a Ninja compiled the Market Faciliation Index script.
Up until recently I've been using the services of esignal. I'm now going back to Ninjatrader.
I use the Market Facilitation Index extensively, but before I completely jump ship I compared the results from the Ninja script and Esignal and there is a big gap between the results.
After much investigation I noticed the following line of code in Ninjas script:
mfi[0]=(Math.Abs(Open[0]-Close[0]))/(Volume[0]*TickSize);
This differs widely from esignals implementation, which is:
if (Vol > 0) MFI = Range / Vol * 1000000000;
I was wondering if someone could let me which one is correct.
Cheers
Attached is the full script
Comment