DIF:EMA(CLOSE,7)-EMA(CLOSE,21);
DEA:EMA(DIF,5);
MACD:(DIF-DEA)*2,COLORSTICK;
VAR1:=EMA(CLOSE,7)-EMA(CLOSE,43);
VAR2:=EMA(VAR1,2);
VAR3:=VAR1>VAR2;
VAR4:=VAR1<VAR2;
牛熊分界:0,COLORYELLOW,LINETHICK3,POINTDOT;
STICKLINE(VAR3,VAR1,VAR2,2,0),COLORRED;
STICKLINE(VAR4,VAR1,VAR2,2,0),COLORGREEN;