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,COLORRED;
STICKLINE(VAR2<VAR3,VAR2,VAR3,4,1),LINETHICK2, COLORYELLOW;
STICKLINE(VAR4>=VAR5,VAR4,VAR5,4,1),LINETHICK2,COLORRED;
STICKLINE(VAR4<VAR5,VAR4,VAR5,4,1),LINETHICK2, COLORYELLOW;
强弱分界: MA(CLOSE,27),LINETHICK1,CIRCLEDOT,COLORCYAN;
卖: 强弱分界+2*STD(CLOSE,27),LINETHICK1,CIRCLEDOT,COLORMAGENTA;
买: 强弱分界-2*STD(CLOSE,27),LINETHICK1,CIRCLEDOT,COLORBLUE;
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,DOTLINE,COLORWHITE;
UPR:BBI+P*STD(BBI,N),DOTLINE,COLORRED;
DWN:BBI-P*STD(BBI,N),DOTLINE,COLORGREEN;