MFI with interpretation for Amibroker (AFL)
ibrahimatm about 16 years ago Amibroker (AFL)
MFI with interpretation. Exactly tell you when it is bullish or bearish or when to go out of the market.
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("MFI");
periods = Param( "Periods", 14, 2, 200, 1 );
Plot( vmfi = MFI(periods), _DEFAULT_NAME(), ParamColor("Color", colorCycle ), ParamStyle("Style") );
Buy = Cross( vmfi, 20 );
Sell = Cross( 80, vmfi );
Title = StrFormat("\\c02 {{NAME}} | {{DATE}} | Open : %g | High : %g | Low : %g | Close : %g | Change = %.1f%% | Volume = " +WriteVal( V, 1.0 ) +" {{VALUES}}",O, H, L, C, SelectedValue( ROC( C, 1 )) )
+"\n"+("MFI Comment = ")+WriteIf(Vmfi<30 AND vmfi>LLV(Vmfi,14),EncodeColor(colorLime)+"Safe in, Buy",
WriteIf(Vmfi<30 AND Vmfi<HHV(Vmfi,14),EncodeColor(colorGreen)+"Safe in, but see the trend",
WriteIf(Vmfi<50 AND Vmfi>LLV(Vmfi,4),EncodeColor(colorWhite)+" Bullish ",
WriteIf(Vmfi<50 AND Vmfi<HHV(Vmfi,4),EncodeColor(colorRed)+" Bearish ",
WriteIf(Vmfi<79.99 AND Vmfi>LLV(Vmfi,4),EncodeColor(colorPaleBlue)+" bullish see the trend and if bearish sale",
WriteIf(Vmfi<79.99 AND Vmfi<HHV(Vmfi,4),EncodeColor(colorOrange)+" bearish gate out",
WriteIf(Vmfi>80, EncodeColor(colorRed)+"Caution","")))))));
_SECTION_END();
_SECTION_BEGIN("Name");
GfxSetOverlayMode(1);
GfxSelectFont("Tahoma", Status("pxheight")/20 );
GfxSetTextAlign( 6 );// center alignment
//GfxSetTextColor( ColorRGB( 200, 200, 200 ) );
GfxSetTextColor( ColorHSB( 100, 100, 100 ) );
GfxSetBkMode(0); // transparent
GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/12 );
GfxSelectFont("Tahoma", Status("pxheight")/12 );
GfxTextOut( "", Status("pxwidth")/2, Status("pxheight")/3 );
GfxSelectFont("Tahoma", Status("pxheight")/17 );
GfxTextOut( "AKBAR", Status("pxwidth")/2, Status("pxheight")/2 );
_SECTION_END();1 comments
Leave Comment
Please login here to leave a comment.
Hi,
Thanks a lot for this interpretation.
cnbondre