DIF:EMA(CLOSE,12)-EMA(CLOSE,150);
DEA:EMA(DIF,9);{爱股网 WWW.72GU.COM}
MACD:(DIF-DEA)*2,COLORSTICK;
VAR1:=MACD 0 AND MACD REF(MACD,1);
VAR2:=REF(MACD,1) REF(MACD,2);
VAR3:=REF(MACD,2) REF(MACD,3);
VAR4:=REF(MACD,3) REF(MACD,4);
VAR6:=MACD REF(MACD,1) AND MACD
VAR7:=VAR1 AND VAR2 AND VAR3 AND VAR4;
STICKLINE(VAR7,0.4,MACD,2,0),COLORYELLOW;
STICKLINE(VAR6,0,MACD,1.8,0),COLOR000055;
STICKLINE(VAR6,0,MACD,1.1,0),COLOR000099;
STICKLINE(VAR6,0,MACD,0.6,0),COLOR0000BB;
NOTEXT0:0,COLORYELLOW;
DRAWICON(VAR7,2,11);