RSVB:=(CLOSE/REF(C,1)-LLV(LOW/REF(L,1),9))/(HHV(HIGH/REF(H,1),9)-LLV(LOW/REF(L,1),9))*100;
KB:=MA(RSVB,3);
DB:=MA(KB,3);
JB:(3*KB-2*DB)/100;
JJ:(C/REF(C,1))*(MA(JB,10)*2)/2,COLORRED;
STICKLINE(NOT(JA<0.5 AND JB<0.5 AND JJ<0.5),1.25,1.375,1,0),COLORLIBLUE;
STICKLINE(JA>0.25 AND JB>0.25 AND JJ>0.25,1.25,1.375,1,0),COLORLIRED;
STICKLINE(JA>0.5 AND JB>0.5 AND JJ>0.5,1.5,1.375,1,0),COLORRED;
STICKLINE(JA<0.5 AND JB<0.5 AND JJ<0.5,-0.25,-0.5,1,0),COLORGREEN;
AA:=NOT(JA<0.5 AND JB<0.5 AND JJ<0.5);
CC:=JA>0.25 AND JB>0.25 AND JJ>0.25;
DRAWICON(CROSS(AA,0.2) OR (AA=1 AND CC<1) AND C<=REF(C,1) ,1.15,1);{买入信号}
DRAWICON(JA<0.5 AND JB<0.5 AND JJ<0.5,-0.1,2);{卖出信号}
1;
0.2;
0.5;