Skip to main content

AC (Acceleration Oscillator) Indicator for Amibroker (AFL)

rajeevj about 14 years ago Amibroker (AFL)

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

AC (Acceleration Oscillator) Indicator code.
Please note this is another indicator to support Alligator Trend Following system.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Acceleration Oscillator");

MAAvg34 = MA(Avg, 34);
MAAvg5 = MA(Avg, 5);
MADiff = MAAvg5 - MAAvg34;
AC = MA(MADiff - MA(MADiff, 5), 5);

ACUpBar = AC > Ref(AC, -1);
ACDownBar = AC < Ref(AC, -1);

Plot(AC,"AC",IIf(ACUpBar,colorGreen,colorRed),styleHistogram|styleThick);

Plot(0,"",15);

_SECTION_END();

1 comments

about 14 years ago

add some related pics so it will be easy to understand the work by a quick look…

Leave Comment

Please login here to leave a comment.