Skip to main content

Acceleration / Deceleration (AC) indicator for Amibroker (AFL)

Spioch over 15 years ago Amibroker (AFL)

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

Oscillator Acceleration / Deceleration (AC) Bill Williams is a technical analysis indicator used for measuring the strength of the market.
The indicator is calculated as the difference between the current value of index Awesome Oscillator and a 5-regular simple moving average of the index Awesome Oscillator:

AC = AO – SMA (AO, 5)

Screenshots

Indicator / Formula

Copy & Paste Friendly
SetChartOptions( 0, chartShowArrows|chartShowDates );

_SECTION_BEGIN("Acceleration / Deceleration (AC) Bill Williams");
/*** The trend indicators ***/

P= ParamList("Price", "Close|(H+L)/2|(H+C+L)/3",1);

if (P=="Close")
   A = C;
   
else
if (P=="(H+C+L)/3")
   A = (H+C+L)/3;
else
  A = (H+L)/2;

AO=MA(A,5)-MA(A,34);
AOcolor=IIf(AO>Ref(AO,-1),colorGreen,colorRed);

AC=AO-MA(AO,5);
ACcolor=IIf(AC>Ref(AC,-1),colorGreen,colorRed);

Plot(AC,"AC",ACcolor,styleHistogram|styleThick);

_SECTION_END();

2 comments

about 14 years ago

Will check and get back soon.Seems quite different from the Awesome ind.
Thanks once again
Prasad

Leave Comment

Please login here to leave a comment.