DIFF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIFF,9); : (DIFF-DEA)*2,COLORSTICK; CDA:=MACD
[0; CDB:=MACD>=REF(MACD,1) AND MACD>0; CDC:=MACD>REF(MACD,1) AND MACD<0 CDD:=MACD XX:=EMA(MA(LOW,3)*0.96,30); DIFF:=IF(OSS(DIFF,DEA)>0 AND MACD>=REF(MACD,1) AND DIFF<=0,1,0); DRAWTEXT(DIFF金叉=1,DIFF*1.5,'DIFF金叉'),COLORCDFFBB; 周DIFF:="MACD.DIF#WEEK"; 周DEA:="MACD.DEA#WEEK"; 周MACD:="MACD.MACD#WEEK"; 周DIF金叉:=CROSS(周DIFF,周DEA); MACD:=CROSS(周MACD,周DIFF) AND 周MACD>=(0-0.05) AND 周MACD<=0
]