TT:=TIME>=850&&TIME<1150;
MID:MA(CLOSE,26);//求N个周期的收盘价均线,称为布林通道中轨
TMP2:=STD(CLOSE,26);//求M个周期内的收盘价的标准差
TOP:MID+2*TMP2;//布林通道上轨
BOTTOM:MID-2*TMP2;//布林通道下轨
A:=EVERY(ISDOWN,2)&&TT&&HHVBARS(H,BARSLASTCOUNT(TT))=2&&C<REF(LLV(L,2),2)&&REF(L>TOP,2)&&C<TOP;
DRAWICON(A,H,5);
AX:=EVERY(ISUP,2)&&TT&&LLVBARS(L,BARSLASTCOUNT(TT))=2&&C>REF(HHV(H,2),2)&&REF(H<BOTTOM,2)&&C>BOTTOM;
DRAWICON(AX,H,4);