N:=20;
涨幅:=100*(C-REF(C,1))/REF(C,1);
振幅:=100*(H-L)/L;
最低价:=LLV(L,120);
一百二日涨幅:=100*(H-最低价)/最低价,NODRAW,COLORWHITE;
三日涨幅:=100*(C-REF(C,3))/REF(C,3);
boll:MA(CLOSE,N);
上轨:BOLL+2*STD(CLOSE,N);
下轨:BOLL-2*STD(CLOSE,N);
突破上轨:IF(crOSS(C,上轨) AND 涨幅>=2 AND vol>=REF(VOL*1.2,1),C,DRAWNULL);
DRAWTEXT(EXIST(突破上轨,3) AND EVERY(C>上轨,3) AND NOT(EXIST(一百二日涨幅>=50,50)) AND 三日涨幅<=20 ,上轨,'突破有效');
DRAWKLINE(H,O,L,C);