N:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100-50;
K:SMA(RSV,3,1),COLORCYAN,DOTLINE;
D:SMA(K,3,1),COLORCYAN,DOTLINE;
J:=3*K-2*D,COLORCYAN,DOTLINE;
ZH:=80,COLORGREEN,DOTLINE;
ZL:=20,COLORGREEN,DOTLINE;
{红年:IF(C>=EMA(C,250),ZL,DRAWNULL),COLORLIGRAY,LINETHICK1;}
红半年:IF(C>=EMA(C,60),0,DRAWNULL),COLORLIGRAY,LINETHICK1;
{过5,10,60均线指示红}
红5:=IF(C>=EMA(C,5),J,DRAWNULL),COLORLIRED;
红10:IF(C>=EMA(C,5),K,DRAWNULL),COLORRED,LINETHICK1;
红60:IF(C>=EMA(C,10),D,DRAWNULL),COLORRED,LINETHICK2;