MID:MA(CLOSE,26);//求N個(gè)周期的收盤(pán)價(jià)均線,稱為布林通道中軌
TMP2:=STD(CLOSE,26);//求M個(gè)周期內(nèi)的收盤(pán)價(jià)的標(biāo)準(zhǔn)差
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;//m.kzuj.com.cn
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;
?