{破位反转--主图}
中轨:=MA(CLOSE,20);
上轨:中轨+2*STD(CLOSE,20);
下轨:中轨-2*STD(CLOSE,20);
DRAWKLINE(H,O,L,C);
DRAWICON(CROSS(H,上轨),L,1);
DRAWICON(CROSS(下轨,C),H,2);
IF(C>中轨,中轨,DRAWNULL),COLORYELLOW,LINETHICK3;
IF(C<中轨,中轨,DRAWNULL),COLORGREEN,LINETHICK3;
HGW1:=REF(CLOSE,1)< REF(O,1);
HGW2:=MA(CLOSE,10)DOTLINE;
HGW3:=REF(VOL,1)>REF(VOL,2);
HGW4:=CLOSE>REF(HIGH,1);
HGW5:=C>MA(C,10);
HGW6:=HGW1 AND HGW3 AND HGW4 AND HGW5;
STICKLINE(HGW6,O,C,2,0),COLORRED;
DRAWICON(HGW6,LOW,34);
DRAWTEXT(HGW6,HIGH*1.008,' ★短线反转'),COLORFF00FF;
HGW7:=EMA(VOL,5);
HGW8:=EMA(VOL,10);
HGW9:=HGW7>HGW8 AND VOL>1.5*REF(VOL,1);
HGW10:=MA(CLOSE,20);
HGW11:=HGW10+2*STD(CLOSE,20);
HGW12:=HGW10-2*STD(CLOSE,20);
HGW13:=CLOSE<HGW12 AND CLOSE>REF(CLOSE,1);
HGW14:=CROSS(C,HGW12);
HGW15:=HGW14 AND HGW9;
DRAWICON(HGW15,L,9);
DRAWTEXT(HGW15,L*0.99,' ●破位反转'),COLOR00FFFF;