N1:=5;N2:=10;N3:=20;N4:=30;EMA7:=EMA(C,7);:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;过渡:IF(BBI,10,DRAWNULL),colorwhite,LINETHICK9;:IF(C>BBI AND BBI>REF(BBI,1),10,DRAWNULL), colorred,LINETHICK9;:IF(C<=BBI AND BBI<=REF(BBI,1),10,DRAWNULL),colorgreen,LINETHICK9;DRAWICON(OSS(EMA7,BBI),7,1);DRAWICON(CROSS(BBI,EMA7),0,2);RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;a=(RSV,3,1);b=SMA(a,3,1);e=3*a-2*b;IF(a<0 a=0;IF(a>100) a=100;IF(b<0 b=0;IF(b>100) b=100;IF(e<0 e=0;IF(e>100)