Skip to main content

Colourful Chaikin Money Flow for Amibroker (AFL)

nizamshah about 13 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 3)
  • Tags:
    chaikin, oscillator, amibroker

This is the Afl for the Chaikin Money Flow indicator, with the addition of colouring to indicate bearish and bullish money flow.

Indicator / Formula

Copy & Paste Friendly
_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);

dynamic_color = IIf( Graph0> 0, colorGreen, colorRed ); 

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

}

r1=Param("Periods", 21);
CMF(r1);

0 comments

Leave Comment

Please login here to leave a comment.