RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
BACKGROUNDSTYLE(1);
K:SMA(RSV,3,1);
D:SMA(K,6,1);
DRAWCOLORLINE(K>REF(K,1),K,COLORYELLOW,COLORGREEN),LINETHICK3;
DRAWCOLORLINE(D>REF(D,1),D,COLORYELLOW,COLORCYAN),LINETHICK3;
//如果当根5日均线的值大于前一根5日均线的值,MA1画红线,否则画绿线
STICKLINE(K>D,K,D,COLORRED,0);
STICKLINE(K<D,K,D,COLORGREEN,0);
90,COLORGREEN,LINETHICK1;
10,COLORRED,LINETHICK1;
JC:=CROSS(K,D);
SC:=CROSSDOWN(K,D);
HH:=CROSS(BACKSET(ISLASTBAR&&K>D||REFX(SC,1),HHVBARS(K,BARSLAST(JC)+1)+1),0.5);
LL:=CROSS(BACKSET(ISLASTBAR&&K<D||REFX(JC,1),LLVBARS(K,BARSLAST(SC)+1)+1),0.5);
VERTLINE(HH,COLORGREEN),DOT;
VERTLINE(LL,COLORWHITE),DOT;
DRAWGBK1(BARSLAST(HH)<=BARSLAST(LL),COLORRED);
DRAWGBK1(BARSLAST(HH)>BARSLAST(LL),COLORGREEN);
DRAWICON(HH,K,1);
DRAWICON(LL,K,2),VALIGN0;