Thursday, October 10, 2024

AFL CODE- CHAIKIN MONEY FLOW (COLOR)


_SECTION_BEGIN("Chaikin Money Flow");


function CMF(r1)

{

Graph0=Sum(IIf( H>L && V>0,((( C-L )-( H-C )) / ( H-L ))*V,0),r1) / Sum(V,r1);

OBthreshold = Param("OBthreshold", 0.1, 0, 3, 0.01);

OSthreshold = Param("OSthreshold", -0.1, -3, 0, 0.01);

dynamic_color = IIf( Graph0>= OBthreshold, colorGreen, IIf(Graph0>0, colorLime, IIf(Graph0< OSthreshold, colorRed, colorRose ))); 


Plot(Graph0, "Chaikin Money Flow ("+r1+")", dynamic_color, styleHistogram | styleThick); 



PlotGrid(OBthreshold, colorBlue);// 8, 1, False);

PlotGrid(OSthreshold, colorRose);//, 8, 1, False);

}


r1=Param("Periods", 21);

CMF(r1);

👉Tải tại đây

https://drive.google.com/file/d/17yhJAU_saHRa2kH8KaqnJL_ynEf6bdD-/view?usp=drive_link

Cách sử dụng AFL  cho Amibroker  

Tải xuống tệp Amibroker AFL. 

Bây giờ hãy sao chép tệp afl và dán vào vị trí cài Amibroker  

D:\A KY PC\Win\Amibroker\Formulas\VIP free


1 comment: