RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100-0;
K:Sma(RSV,9,1),COLORFFFFFF,LINETHICK2;
D:SMA(K,3,1),COLOR00FF00,LINETHICK2;
J:ema(K,9),DOTLINE,COLORFF2400;
VARK:K,COLORRED,LINETHICK2;
上升K:IF(VARK>REF(VARK,1),VARK,DRAWNULL),COLORWHITE,LINETHICK2;
走平K:IF(VARK=REF(VARK,1),VARK,DRAWNULL),COLORFFFFFF,LINETHICK2;
下降K:IF(VARK<REF(VARK,1),VARK,DRAWNULL),COLORFF2400,LINETHICK2;
VARD:D,COLORRED,LINETHICK2;
上升D:IF(VARD>REF(VARD,1),VARD,DRAWNULL),COLORFF00FF,LINETHICK2;
走平D:IF(VARD=REF(VARD,1),VARD,DRAWNULL),COLORFFFFFF,LINETHICK2;
下降D:IF(VARD<REF(VARD,1),VARD,DRAWNULL),COLORCYAN,LINETHICK2;
VARJ:J,COLORRED;
上升J:IF(VARJ>REF(VARJ,1),VARJ,DRAWNULL),COLORWHITE;
走平J:IF(VARJ=REF(VARJ,1),VARJ,DRAWNULL),COLORFFFFFF;
下降J:IF(VARJ<REF(VARJ,1),VARJ,DRAWNULL),COLORFF0000;