{N:5,30,8;ZF:1,10,5;}
放量上涨:CLOSE/REF(CLOSE,1)>=1.01 AND VOL/REF(VOL,1)>=1.5 AND VOL>MA(VOL,5) AND REF(VOL,1)/REF(MA(VOL,5),1)<=1.8,STICK,COLORYELLOW,LINETHICK3;
箱体形成:((HHV(CLOSE,3)/LLV(CLOSE,N)-1)*100<=ZF AND (HHV(CLOSE,N)/LLV(CLOSE,3)-1)*100<=ZF)*0.3,COLOR00FF00,STICK,LINETHICK2;
STICKLINE(箱体形成 ,0 ,0.3 ,5 ,1 ),COLOR00FF00;
接近箱顶:(CLOSE/REF(HHV(CLOSE,N),2)<=1.02 AND HIGH/REF(HHV(CLOSE,N),2)>=0.98)*0.5,COLORWHITE,LINETHICK1;
P1:=BARSLAST(箱体形成);
P2:=BARSLAST(接近箱顶);
期待突破:(放量上涨>0 AND 接近箱顶>0 AND P1<=3 AND P2<=1)*2,COLORRED,LINETHICK2;
关注:(放量上涨>0 AND 接近箱顶>0),COLORFF00FF,LINETHICK2;
DRAWTEXT(期待突破>0 ,1.5 , '★买'),COLORYELLOW,LINETHICK2;
DRAWTEXT(关注 ,0.8 , '关注'),COLORWHITE,LINETHICK2;
趋势向上:(MA(CLOSE,30)>REF(MA(CLOSE,30),1))*0.2,STICK,COLOR0066FF,LINETHICK2;