C1:=IF(C>O,H,L);
MAH:=MA(H,3);
MA20:=MA(C1,20);
MA60:=MA(C1,60);
DIF:=V1*MAH-V1*MA20,LINETHICK2;
DEA:=EMA(DIF,6),LINETHICK2;
MACD:(DIF-DEA)*2,COLORSTICK,COLORGREEN;
DIF2:=V1*MAH-V1*MA60;
DEA2:=EMA(DIF,6),LINETHICK2;
MACD2:(DIF2-DEA2)*2,COLORSTICK;
DRAWBAND(-DIF2,RGB(100,55,0),-DEA2,RGB(255,0,255));
DRAWBAND(DIF,RGB(255,255,0),DEA,RGB(0,255,0));
DRAWBAND(DEA,RGB(222,111,0),-DEA2,RGB(0,11,222));
升:=(-DIF2<-DEA2 AND DIF>DEA AND DEA>-DEA2);
STICKLINE(MACD>REF(MACD,1),MACD,REF(MACD,1),2,0),COLOR000080;
STICKLINE(MACD>REF(MACD,1),MACD,REF(MACD,1),0.1,0),COLOR0000FF;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),2,0),COLOR8C008C;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLORFF00FF;
STICKLINE(MACD0,MACD,REF(MACD,1),2,0),COLOR009D9D;
STICKLINE(MACD0,MACD,REF(MACD,1),0.1,0),COLOR00FFFF;
STICKLINE(MACD STICKLINE(MACD
STICKLINE(MACD2>REF(MACD2,1),-MACD2,-REF(MACD2,1),2,0),COLOR000080;
STICKLINE(MACD2>REF(MACD2,1),-MACD2,-REF(MACD2,1),0.1,0),COLOR0000FF;
STICKLINE(MACD2>REF(MACD2,1) AND MACD2<0,-MACD2,-REF(MACD2,1),2,0),COLOR8C008C;
STICKLINE(MACD2>REF(MACD2,1) AND MACD2<0,-MACD2,-REF(MACD2,1),0.1,0),COLORFF00FF;
STICKLINE(MACD20,-MACD2,-REF(MACD2,1),2,0),COLOR009D9D;
STICKLINE(MACD20,-MACD2,-REF(MACD2,1),0.1,0),COLOR00FFFF;
STICKLINE(MACD2 STICKLINE(MACD2
DRAWTEXT(升 AND COUNT(升,5)=1,MACD,'★升'),COLORWHITE;