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

Careymac With Accurate Buy Sell Signals



Careymac With Accurate Buy Sell Signals
Careymac With Accurate Buy Sell Signals


//www.aflcode.com
_SECTION_BEGIN("Trading CAREYMAC");

ST= (EMA(Avg,2)-EMA(Avg,10)) + (EMA(Avg,1)-EMA(Avg,5)) ;
MT= (EMA(Avg,6)-EMA(C,30)) + (EMA(Avg,3)-EMA(Avg,15)) ;

Plot(ST,"CAREYMAC/ST",2,4);
Plot(MT,"  CAREYMAC/MT",1,4);
Plot(MT,"",4,2+4);

Plot(0,"",IIf(C>EMA(C,34),6,4));

CondA= MT>0 AND (ST<0 OR Ref(ST,-1)<0) AND ST>Ref(ST,-2) 
AND Ref(ST,-1)<Ref(ST,-2) ;
PlotShapes( shapeSmallUpTriangle*CondA, 27) ;

CondB= MT<0 AND (ST>0 OR Ref(ST,-1)>0) AND ST<Ref(ST,-2) 
AND Ref(ST,-1)>Ref(ST,-2) ;
PlotShapes( shapeSmallDownTriangle*CondB, 4);
_SECTION_END();

Previous
Next Post »