DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
macd:(DIF-DEA)*2,COLORSTICK;
周DIF:="MacD.DIF#WEEK";
周DEA:="MACD.DEA#WEEK";
周MACD:=(周DIF-周DEA)*2;
周红:IF(周MACD>0,BArslAST(crOSS(周MACD,0)),DRAWNULL)+1,COLORYELLOW,NODRAW;
DRAWTEXT(周红=1,0.2,'周金'),COLORYELLOW,DRAWAbovE;
STICKLINE(周红,-0.7,-0.6,1,0),COLORYELLOW;
周K:="kdj.K#WEEK";
周D:="kdJ.D#WEEK";
DRAWTEXT(CROSS(周K,周D),0,'KDJ周'),COLORYELLOW;