SHORT:=105;
LONG:=360;
M:=35;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIFF,M);
macd:=2*(DIFF-DEA);
牛熊线:0,COLORWHITE,LINETHICK3;
AA:DIFF;
AA升:IF(AA>REF(AA,1),AA,DRAWNULL),COLORRED,LINETHICK2;
AA降:IF(AA
AB:DEA;
AB升:IF(AB>REF(AB,1),AB,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
AB降:IF(AB
DRAWICON(crOSS(DIFF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2);