ABC1:=(CLOSE*2+HIGH+LOW)/4;
ABC2:=EMA(ABC1,13)-EMA(ABC1,34);
ABC3:=EMA(ABC2,5);
ABC4:=(-2)*(ABC2-ABC3)*3.8;
ABC5:=2*(ABC2-ABC3)*3.8;
STICKLINE(ABC5>0,ABC5,8,1.0,0),COLORRED;
STICKLINE(ABC5< 0,ABC5,8,1.0,0),COLORGREEN;
ABC6:=CLOSE-MA(CLOSE,12.5);
STICKLINE(ABC6>0,ABC5,5,2.8,0),COLORYELLOW;
STICKLINE(ABC6< 0,ABC5,5,2.8,0),COLORGREEN;
ABC7:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
ABC8:=EMA(ABC7,9);
ABC9:=2*(ABC7-ABC8);
STICKLINE(ABC7< 0,ABC5,4,1,0),COLORGREEN;
STICKLINE(ABC7>=0,ABC5,4,1,0),COLORMAGENTA;
ACB1:=(CLOSE*2+HIGH+LOW)/4;
ACB2:=EMA(ACB1,13)-EMA(ACB1,34);
ACB3:=EMA(ACB2,5);
ACB4:=(-2)*(ACB2-ACB3)*3.8;
ACB5:=2*(ACB2-ACB3)*3.8;
短:=ACB5>0;
ACB11:=CLOSE-MA(CLOSE,12.5);
中:=ACB1>0;
ACB21:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
ACB22:=EMA(ACB21,9);
ACB23:=2*(ACB21-ACB22);
长:=ACB21>=0;
共振3:=短 AND 中 AND 长;
共振2:=短 AND 中 ;
DRAWICON(crOSS(共振2,0.6),7.5,5);
DRAWICON(CROSS(共振3,0.6),6.6,9);
DRAWTEXT(CROSS(共振3,0.6),6.8,' ★共振'),COLORWHITE;