MID:MA(CLOSE,26);//求N个周期的收盘价均线,称为布林通道中轨
TMP2:=STD(CLOSE,26);//求M个周期内的收盘价的标准差
TOP:MID+2*TMP2;//布林通道上轨
BOTTOM:MID-2*TMP2;//布林通道下轨
C>BOTTOM&&L<BOTTOM&&ISUP,BK;
H>TOP&&C<TOP&&ISDOWN,SK;
C<=MAX(REF(L,BARSBK),BKPRICE-30*MINPRICE)&&BKVOL>0,CLOSEOUT;//www.cxh99.com
C>=MIN(REF(H,BARSSK),SKPRICE+30*MINPRICE)&&SKVOL>0,CLOSEOUT;
C>=BKPRICE+2*(BKPRICE- MAX(REF(L,BARSBK),BKPRICE-30*MINPRICE))&&BKVOL>0,CLOSEOUT;
C<=SKPRICE-2*(MIN(REF(H,BARSSK),SKPRICE+30*MINPRICE)-SKPRICE)&&SKVOL>0,CLOSEOUT;
AUTOFILTER;
SETDEALPERCENT(90);
PROFIT<=-0.2*MONEYTOT,CLOSEOUT;