DIFF:(EMA(CLOSE,8) - EMA(CLOSE,13)),colorred,linethick3;
DEA:EMA(DIFF,9),colorff00ff;
MACD:2*(DIFF-DEA), COLORSTICK;
MACD1:2*(DIFF-DEA), COLORffffff;
stickline(macd>0 and macd>ref(macd,1),macd,0,5,0),colorff99ff,stick;
stickline(macd<0 and macd>ref(macd,1),macd,0,5,0),colorffffff,stick;
v1:if(diff<0,diff,0),coloryellow,linethick2;
v2:if(diff<0,0,diff),colorred,linethick2;
v3:if(diff<dea,diff,dea),color00ff00,linethick2;
v4:if(diff>dea,dea,dea),colorff00ff,linethick2;
aa:=cross(diff,dea);
DRAWICON(aa,-0.02,1);
202108211210.jpg
|