N:=10;P:=3;
VAR1:=(C+L+H)/3;
VAR2:=Ema(VAR1,6);
VAR3:=ema(VAR2,5);
VAR4:=EMA(VAR3,12);
VAR5:=EMA(VAR4,5);
STICKLINE(VAR2>=VAR3,VAR2,VAR3,4,1),LINETHICK2,COLORWHITE;
STICKLINE(VAR2<VAR3,VAR2,VAR3,4,1),LINETHICK2, COLORBLUE;
STICKLINE(VAR4>=VAR5,VAR4,VAR5,4,1),LINETHICK2,COLORWHITE;
STICKLINE(VAR4<VAR5,VAR4,VAR5,4,1),LINETHICK2, COLORBLUE;
强弱分界: MA(CLOSE,27),LINETHICK1,CIRCLEDOT,COLORGREEN;
卖: 强弱分界+2*STD(CLOSE,27),LINETHICK1,CIRCLEDOT,COLORLIMAGENTA;
买: 强弱分界-2*STD(CLOSE,27),LINETHICK1,CIRCLEDOT,COLORYELLOW;
bbi:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,DOTLINE,COLORRED;
UPR:BBI+P*STD(BBI,N),DOTLINE,COLORWHITE;
DWN:BBI-P*STD(BBI,N),DOTLINE,COLORCYAN;