DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);:(DIF-DEA)*2,COLORSTICK;周DIF:="MACD.DIF#WEEK";周DEA:="MACD.DEA#WEEK";周MACD:=(周DIF-周DEA)*2;周红:IF(周MACD>0,BARSLAST(OSS(周MACD,0)),DRAWNULL)+1,COLORYELLOW,NODRAW;DRAWTEXT(周红=1,0.2,'周金'),COLORYELLOW,DRAWABOVE;STICKLINE(周红,-0.7,-0.6,1,0),COLORYELLOW;周K:=".K#WEEK";周D:="J.D#WEEK";DRAWTEXT(CROSS(周K,周D),0,'KDJ周'),COLORYELLOW;