n:=10;
p:=3;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWTEXTABS(5,5,'公式指标网 .cn'),linethick1,COLOR00EEff;
UPR:=BBI+P*STD(BBI,N);
DWN:=BBI-P*STD(BBI,N);
爆发临界:=upr-dwn;
选股:bbi>ref(bbi,1) and llv(爆发临界,3)=爆发临界 and cross(c,upr),COLOR3D;