N:=9;
M:=3;
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M);
D:MA(K,M),COLORWHITE;
观望区:20,POINTDOT,COLORRED;
风险区:80,POINTDOT,COLORGREEN;
50,POINTDOT,COLORWHITE;
上升:IF(K>=D,K,DRAWNULL),COLORRED,LINETHICK1;
下降:IF(K80,60,80),COLORFFFF50;
VAR2↑:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),20,40,8,0),COLORGREEN;
VAR2↓:STICKLINE(FILTER(REF(VAR2,1)>80 AND VAR2[REF(VAR2,1),5),40 ,'买入' ),COLORGREEN;
DRAWTEXT(FILTER(REF(VAR2,1)>80 AND VAR2] |