Join our facebook group for Amibroker afl code discussion https://www.facebook.com/groups/603980776889348

Accumulation Distribution Accurate afl


Accumulation Distribution Accurate afl
Accumulation Distribution Accurate afl

//www.aflcode.com
  R = ((HHV(H,13) - C) /(HHV (H,13) -LLV (L,13))) *-100;
Period = 13;
EMA1 = EMA(R,Period);
EMA2 = EMA(EMA1,13);
selisih = EMA1 - EMA2;
nirjeda = EMA1 + selisih;
PR = 0-abs(nirjeda);
ratagerak = MA(PR,5);

//warna
naik = PR>=ratagerak AND PR>=Ref(PR,-1) ;
turun = (PR < ratagerak) OR PR>= ratagerak AND PR< Ref(PR,-1) ;
barcolor = IIf( turun,colorRed, IIf( naik, colorBrightGreen, 7));

Graph0 = PR;
Graph1 = ratagerak;
Graph0BarColor = ValueWhen( barcolor != 0, barcolor );

Previous
Next Post »

2 Comments

Write Comments
tu
AUTHOR
September 14, 2018 at 9:47 PM delete

How to you that afl code ? Tks

Reply
avatar
noob
AUTHOR
April 10, 2019 at 12:35 AM delete

can you explain how to use this indcator?

Reply
avatar