Skip to main content

Color MACD for Amibroker (AFL)

jnwr25 about 16 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    oscillator, macd, amibroker, histogram

Amibroker comes with the standard MACD. I change this MACD, so that we can easily see each increase and decrease in the histogram

Indicator / Formula

Copy & Paste Friendly
His = MACD() -  EMA(MACD(),9) ;

dinamic = IIf( His > Ref(His, -1) , colorGreen, colorRed);

Plot(MACD(),"MACD", colorRed );
Plot(EMA(MACD(),9),"Siganal (9)",colorBlue);

Plot( MACD() -  EMA(MACD(),9), "Histogram", dinamic, styleHistogram | styleThick );

0 comments

Leave Comment

Please login here to leave a comment.