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

Accurate Buy Sell Zone ADI

Accurate Buy Sell Zone ADI
Accurate Buy Sell Zone ADI

//www.aflcode.com
Adv = Cum(IIf(EMA(C,5)-EMA(C,35)>0,(EMA(C,5)-EMA(C,35)-Ref(EMA(C,5)-EMA(C,35),-1)),0));
Dec = Cum(IIf(EMA(C,5)-EMA(C,35)<0,(EMA(C,5)-EMA(C,35)-Ref(EMA(C,5)-EMA(C,35),-1)),0));
ADI = Adv+Dec;

Plot(Adv, "Relatively Good",colorGreen, styleArea, styleNoLabel| styleOwnScale | styleThick);
Plot(Dec, "Relatively Evil", colorRed, styleArea, styleNoLabel| styleOwnScale | styleThick);

Plot(ADI, "Beyond Good & Evil", colorWhite, styleThick | styleOwnScale);

GraphZOrder = 1;
Previous
Next Post »