diff:=EMA(C,5)-EMA(C,21);
dea:=EMA(diff,8);
smamacd:SMA(4*(diff-dea),2,1)*8,COLORSTICK;
dmacd:SMA(smamacd,2,1),colorff00ff;
kmacd:EMA(4*(diff-dea),2)*8,color00ff00;
drawicon(CROSS(kmacd,dmacd) AND kmacd<=1,kmacd,1);
drawicon(CROSS(kmacd,dmacd) AND kmacd>=1,kmacd,1);
drawicon(CROSS(dmacd,kmacd) AND dmacd>=1,dmacd,2);
drawicon(CROSS(dmacd,kmacd) AND dmacd<=1,dmacd,2);
0,colorffa2af; |