{新多空BBI}
n:=26;P:=2;
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
BBB:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR1:=CROSS(C,BBB); {上穿BBI}
VAR2:=CROSS(BBB,C); {下穿BBI}
VAR3:=C>BBB; {均线之上}
VAR4:=C<BBB; {均线之下}
VAR5:=REF(VAR1,1);
VAR6:=REF(VAR2,1);
{VAR7:=REF(VAR3,1);
VAR8:=REF(VAR4,1); 确认穿越收线后做这一段去掉}
VAR7:=VAR3;
VAR8:=VAR4;
{DRAWTEXT(VAR5,L,''),COLORYELLOW;}
{DRAWTEXT(VAR6,L,''),COLORYELLOW;}
STICKLINE(VAR7,O,C,8,0),COLORRED;
STICKLINE(VAR7,H,L,0.1,0),COLORRED;
STICKLINE(VAR8,O,C,8,0),COLORBLUE;
STICKLINE(VAR8,H,L,0.1,0),COLORBLUE;