Skip to main content

Ac AO for Amibroker (AFL)

fxfisherman168 over 14 years ago Amibroker (AFL)

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

Supports William’s Alligator Trend Following system

Indicator / Formula

Copy & Paste Friendly

outsidebar = Outside();
insidebar = H <= Ref(H,-1) AND L >= Ref(L,-1);
upbar = H > Ref(H,-1) AND L >= Ref(L, -1);
downbar = L < Ref(L,-1) AND H <= Ref(H,-1);
barcolor=IIf(outsidebar, 1, 
               IIf(downbar,   4, 
               IIf(upbar,        5, 
               IIf(insidebar,6, 0 ) ) ) );

var1=MA( A , 34);
var2=MA( A,5);
var3=var2-var1;
var4=var3-MA(var3,5);
Graph0=var4;
Graph0Style=2+4;
Graph1=Wilders(var4,5);
Graph1Style=5;
Graph0BarColor=Barcolor;

3 comments

1. morgen
over 14 years ago

Where is “A” definition?
What is “A”?
Thank you

2. sam21
over 14 years ago

“A” should be replaced with AVG….

var1=MA;
var2=MA;

I hope its clear now.

Leave Comment

Please login here to leave a comment.