箱顶:=ma(REF(HHV(C,30),1),2),LINETHICK2,COLORYELLOW;
箱底:=MA(REF(LLV(C,30),1),2),LINETHICK1,COLORCYAN;
中轨:=EMA(C,20),LINETHICK2,COLORGREEN;
MID:=MA(C,20);
VART1:=POW((C-中轨),2);
VART2:=MA(VART1,20);
VART3:=SQRT(VART2);
UPPER:=中轨+2*VART3;
LOWER:=中轨-2*VART3;
boll:=REF(中轨,1),COLORFFFFFF;
上轨:=REF(UPPER,1),COLORRED,LINETHICK2;
下轨:=REF(LOWER,1),COLORRED,LINETHICK1;
量比:=vol/REF(MA(VOL,5),1),COLORFFFFFF;
起爆点:(C>箱顶 AND C>上轨 AND 量比>1.8) AND COUNT(C>箱顶 AND C>上轨 AND 量比>1.8,7)=1;