RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短線多:SMA(RSV,3,1),COLORRED;
短線空:SMA(短線多,3,1),COLORYELLOW;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
中線多:SMA(RSV1,5,1),COLORFF00FF;
中線空:SMA(中線多,10,1),COLORGREEN;
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中長期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
長期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
長強勢區:=IF((EVERY(短線多>=REF(短線多,1),1) AND 短線多<短線空),5,0)COLOR0000FF,LINETHICK3;
長強勢區1:=IF((EVERY(中線多>=REF(中線多,1),1) AND 中線多<18),5,0)COLOR0000FF,LINETHICK3;
長強勢區11:=IF((EVERY(中線多<=REF(中線多,1),1) AND 中線多>85),5,0)COLOR0000FF,LINETHICK3;
長強勢區2:=IF((EVERY(短線多<=REF(短線多,1),1) AND 短線多>短線空),5,0)COLOR0000FF,LINETHICK3;
短線時機:CROSS(短線多,短線空),NODRAW;
中線時機:CROSS(中線多,中線空) AND 短線多>短線空,COLORLIRED,NODRAW;
XG:短線時機 AND 中線時機 AND 短線多>中線多 AND DYNAINFO(4)>0,COLORCYAN,NODRAW;
STICKLINE(短線多>短線空,短線多,短線空,1,0),COLORRED;
STICKLINE(短線多<=短線空,短線多,短線空,1,0),COLORYELLOW;
STICKLINE(中線多>中線空,中線多,中線空,1,0),COLORFF00FF;
STICKLINE(中線多<=中線空,中線多,中線空,1,0),COLORGREEN;