Stock Portfolio Organizer
The ultimate porfolio management solution.
Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
MFI Band for Amibroker (AFL)
Rating:
3 / 5 (Votes 2)
Tags:
oscillator, amibroker
Convert MFI into Band
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("Market Facilitation Index");
function MarketFacilitationIndex()
{
return ( High - Low )/Volume;
}
// Buat pita MFI
//MA5 = MA(NBSAValue_Cum,5);
//MA20 = MA(NBSAValue_Cum,20);
//NCum = NBSAValue_Cum ;
MFI1 = MarketFacilitationIndex();
MFI0 = Ref(MarketFacilitationIndex(), -1);
V0= Ref(V,-1);
V1= V;
//Definisi
Hijau = ((MFI1-MFI0 >=0) AND (V1-V0 >=0));
Merah = ((MFI1-MFI0 <=0) AND (V1-V0 <=0));
Kuning = ((MFI1-MFI0 >=0) AND (V1-V0 <=0)); // change from Biru to Gold
Biru = ((MFI1-MFI0 <=0) AND (V1-V0 >=0)); // change from Pink to Blue
ZoneColorMFI = IIf ( Hijau, colorGreen, IIf( Biru, colorBlue, IIf( Merah, colorRed, IIf (Kuning, colorGold, 0 ))));
PlotZoneMFI = ParamToggle("Plot Pita MFI?","Tidak|Ya",0);
if (PlotZoneMFI) Plot ( 2,"Zone MFI", ZonecolorMFI ,styleOwnScale|styleArea|styleNoTitle, -0.5, 100 );
1 comments
1.
szgolyas
dont work
Report as Spam
Leave Comment
Please login here to leave a comment.
Back