{改良MACD}
LC:=REF(C,1);
预量:=IF(ISLASTBAR,V*240/FROMOPEN,V),NODRAW;
量比:=预量/MA(REF(V,1),5),NODRAW;
JJ:=(L+H+C*2)/4;
DI:(EMA(C,12)-EMA(C,26))/C*500,COLORFF00FF;
DE:EMA(DI,9),LINETHICK1,COLORFFFFFF;
STICKLINE(DI>REF(DI,1) AND DI>DE AND MA(C,20)>REF(MA(C,20),1),-15,15,1,0),COLOR000066;
MACD:(DI-DE)*2,COLORSTICK,COLORFFAA00;
金:IF(((MACD<=-50 OR (MACD<=-30 AND MA(C,11)>REF(MA(C,11),1) AND MA(C,20)>REF(MA(C,20),1)
AND MA(C,60)>REF(MA(C,60),1)) AND (H>LC OR C
DOWNNDAY(C,2) AND NDAY(O,C,2) AND 预量LC*0.9015
AND H
低:IF(MACD<-26 AND HHV(DE,10)-DE>25 AND HHV(DI,250)<10 AND ((C=LLV(C,11) AND (L=LLV(L,15) OR C
预量
买:IF((LLV(DI,5)<-50) AND C
低2:IF(((MACD<-35 AND C
15,0),LINETHICK3,STICK,COLORFFAA00;
买2:IF((HHV(REF(金,1),12)=10 AND C=LLV(C,10) AND (L=LLV(L,15) OR C
高:IF(MACD>35 AND MACD>REF(MACD,1) AND C
DRAWICON(LLV(MACD,5)<-30 AND C>LC*0.9014 AND C<=O AND C=LLV(C,10) AND L=LLV
(L,10),MACD,9);
DRAWTEXT_FIX(ISLASTBAR AND DI>REF(DI,1) AND DI>DE AND C>MA(C,20),0.97,0.05,1,'上涨持股'),COLORYELLOW;