AC (Acceleration Oscillator) Indicator for Amibroker (AFL)
rajeevj about 14 years ago Amibroker (AFL)
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
Leave Comment
Please login here to leave a comment.
add some related pics so it will be easy to understand the work by a quick look…