大智慧大箱体副图指标
源码
{N:3,120,30;
N:表示统计周期,短期10,中期30,长期60;P:表示限制箱体高度;}
{大箱体指标使用说明:类似平台突破
阶段形成大箱体,趋势帮你判高低;
一旦突破有好戏,箱体越长越牛B!}
DRAWGBKLAST(1,STRIP(RgB(20,50,80),RGB(50,50,50),0));
周期: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);