<MFI comes as an function in amibroker, this is the formula; in case of anyone wondering.
RMF = Avg * V; ///Avg = (High+Low+Close)/3 - so called "typical price"///RMF:Raw Money Flow///
PMF = IIf( Avg > Ref(Avg, -1), RMF, 0); ///PMF:Positive Money Flow///
NMF = IIf( Avg < Ref(Avg, -1), RMF, 0); ///nmf: Negative Money Flow///
periods = Param( "Periods", 14, 2, 200, 1 );
MFR = Sum(PMF, periods) / Sum(NMF, periods); ///MFR: Money Flow Ratio///
Plot(100 - (100 / ( 1 + MFR)), _DEFAULT_NAME(), ParamColor("Color", colorCycle ), ParamStyle("Style") );