PEAK1:=LLV(MA((LOW),5),30);
箱底:PEAK1,COLORLIMAGENTA;
PEAK2:=HHV(MA((HIGH),6),30);
箱顶:PEAK2,COLORLIBLUE;
TROUGHBARS1:=(箱顶+箱底)/2;
平衡:TROUGHBARS1,COLORFF00FF;
TROUGHBARS2:=EXPMEMA(C,5);
操作线:TROUGHBARS2,COLORWHITE;
TROUGHBARS3:=EXPMEMA(C,12);
趋势线:TROUGHBARS3,COLORBLUE;
zig1:=平衡>=REF(平衡,1) AND 趋势线>=REF(趋势线,1) AND REF(操作线,1)<REF(操作线,2) AND 操作线>REF(操作线,1) AND 操作线>趋势线 AND 趋势线>平衡 AND 操作线/趋势线<1.01;
暴涨:ZIG1,COLORRED,NODRAW;
ZIG2:=crOSS(操作线,趋势线) AND 平衡>=REF(平衡,1);
启动:ZIG2,COLORYELLOW,NODRAW;
STICKLINE(趋势线>平衡,平衡,趋势线,0,-1),COLORRED;
STICKLINE(平衡>趋势线,趋势线,平衡,0,-1),COLORGREEN;
STICKLINE(启动,箱底,箱顶,0,0),COLORYELLOW;
STICKLINE(暴涨,箱底,箱顶,0,0),COLORRED;
DRAWICON(CROSS(箱顶,操作线),箱顶*1.02,2);