DIFF:(EMA(CLOSE,12) - EMA(CLOSE,26))*20,COLORFFFFFF,LINETHICK1;DEA:EMA(DIFF,9),COLOR00FFFF,LINETHICK1;:2*(DIFF-DEA), COLORSTICK;MACD1:2*(DIFF-DEA),COLORRED,LINETHICK0;MACD2:SMA(MACD1,0,3),COLORFFFF00,LINETHICK0;STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),COLORRED;STICKLINE(MACD1>MACD2 AND MACD1<0 MACD1,2,0),COLOR00FFFF;STICKLINE(MACD1
=0);S3:=BARSLAST(OSS(DIFF,DEA));S4:=REF(S3,S3+1);S5:=DEA>REF(DEA,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA) AND S5;下成立