A1:=EMA(CLOSE,12)-EMA(CLOSE,24);
分1:=CONST(LLV(A1,90)); 百1:=CONST(HHV(A1,90))-分1;
基点1:=CONST(LLV(L,90)); 基1:=CONST(HHV(H,90))-基点1;
CC比1:=(A1-分1)/百1; XCX1:=CC比1*基1+基点1;
DIF:XCX1;
DEA:EMA(DIF,6);
DEA30:EMA(DIF,30);
MACD:(DIF+DEA)/2.25,NODRAW;
STICKLINE(MACD>CONST(LLV(C,60)),MACD,CONST(LLV(C,60)),0.1,0),COLORRED;
STICKLINE(MACD<CONST(LLV(C,60)),MACD,CONST(LLV(C,60)),0.1,0),COLORCYAN;
DRAWBAND(DEA30,RGB(39,0,139),DIF,120);
DEA6:DEA,COLORYELLOW;
DEA9B:EMA(DEA,6),COLORMAGENTA;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);