周期:N,COLORFFFF00,POINTDOT,LINETHICK0;
BDGD:=HHV(C,N);
BDDD:=LLV(C,N);
趋势:(C/BDDD-1)*100,COLORFFFFFF;
箱高:(BDGD-BDDD)/BDDD*100,COLOR0088FF;
大箱体:IF((BDGD-BDDD)/BDDD*100<P,P-2,p),COLOR00FF00;
启动:CROSS(趋势,0.5),COLORFFFFFF,POINTDOT,LINETHICK0;
TP:=趋势=箱高 AND REF(趋势<箱高,1);
突破:IF(FILTER(TP,N/4),箱高,P),COLORFF00FF;
牛股:FILTER(COUNT(大箱体=P-2,N/4)>=N/4-1 AND TP,N/4),COLOR0000FF,POINTDOT,LINETHICK0;
{以下设置副图显示方式}
STICKLINE(大箱体=P-2,P,P-2,4,1),COLOR00FF00;
DRAWTEXT(突破=箱高 AND 箱高>REF(箱高,1),P,'●'),COLORYELLOW;
DRAWTEXT(突破=箱高 AND 箱高>REF(箱高,1),P,'¤'),COLORYELLOW;
DRAWTEXT(启动,5,'↑'),COLOR00FF00;
DRAWICON(牛股,P,1);