VAR1:=EMA(CLOSE,12) - EMA(CLOSE,26);
VAR2:=EMA(VAR1,9);
VAR3:=EMA(CLOSE,6)-EMA(CLOSE,10);
VAR4:=EMA(VAR3,4);
长macd:2*(VAR1-VAR2);
长快:VAR1;
长慢:VAR2;
★短macd:2*(VAR3-VAR4);
★短快:VAR3;
★短慢:VAR4;
zero:0;
VERLINE(CROSS(VAR3,VAR4),2),colorred;
VERLINE(CROSS(VAR1,VAR2),2),colorgreen;
DRAWTEXT(VAR3>=0 AND REF(var3,1)<=0 AND VAR4<=VAR3,zero-0.02,"↑"),colorred;
DRAWTEXT(VAR1>=0 AND REF(VAR1,1)<=0 AND VAR2<=VAR1,zero-0.02,"↑"),colorgreen;
DRAWICON(VAR2>=0 AND REF(VAR2,1)<=0 AND VAR2<=VAR1,zero-0.02,23),colorgreen;