MID:MA(CLOSE,26);TMP2:=STD(CLOSE,26);TOP:MID+2*TMP2;BOTTOM:MID-2*TMP2;AA:=H TOP NOT(CROSSDOWN(C,MID)) COUNT(H TOP NOT(CROSSDOWN(C,MID)),BARSLAST(CROSSDOWN(C,MID)||CROSSDOWN(L,BOTTOM))+1)=1;BB:=(L BOTTOM NOT(CROSS(C,MID))) COUNT((L BOTTOM),BARSLAST(CROSS(C,MID)||CROSS(H,TOP))+1)=1;DRAWSL(REF(CROSSDOWN(C,MID) COUNT(CROSSDOWN(C,MID),BARSLAST(AA)+1)=1,1)||ISLASTBAR BARSLAST(H TOP) BARSLAST(L BOTTOM),HHV(H,BARSLAST(AA)+1),0,-BARSLAST(AA),0,COLORRED),LINETHICK2;DRAWSL(REF(CROSS(C,MID) COUNT(CROSS(C,MID),BARSLAST(BB)+1)=1,1)||ISLASTBAR BARSLAST(H TOP) BARSLAST(L BOTTOM),LLV(L,BARSLAST(BB)+1),0,-BARSLAST(BB),0,COLORGREEN),LINETHICK2;DRAWSL((REF(CROSSDOWN(C,MID) COUNT(CROSSDOWN(C,MID),BARSLAST(AA)+1)=1,1)||ISLASTBAR BARSLAST(H TOP) BARSLAST(L BOTTOM)) BARSLAST(AA) =3,HHV(H,BARSLAST(AA)+1),0,3,0,COLORRED),LINETHICK2;DRAWSL((REF(CROSS(C,MID) COUNT(CROSS(C,MID),BARSLAST(BB)+1)=1,1)||ISLASTBAR BARSLAST(H TOP) BARSLAST(L BOTTOM)) BARSLAST(BB) =3,LLV(L,BARSLAST(BB)+1),0,3,0,COLORGREEN),LINETHICK2;HH:=VALUEWHEN(REF(CROSSDOWN(C,MID) COUNT(CROSSDOWN(C,MID),BARSLAST(AA)+1)=1,1)||ISLASTBAR BARSLAST(H TOP) BARSLAST(L BOTTOM),REF(HHV(H,BARSLAST(AA)+1),1));LL:=VALUEWHEN(REF(CROSS(C,MID) COUNT(CROSS(C,MID),BARSLAST(BB)+1)=1,1)||ISLASTBAR BARSLAST(H TOP) BARSLAST(L BOTTOM),REF(LLV(L,BARSLAST(BB)+1),1));DRAWTEXT(CROSS(C,HH),H, 多 DRAWTEXT(CROSSDOWN(C,LL),L, 空 ),VALIGN0;REF(CROSS(C,HH),1),NOTICE( 多 REF(CROSSDOWN(C,LL),1),NOTICE( 空