通达信精准威廉指标公式
N:=10;
N1:=60;
wr1:100-(100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))),COLORFF00FF;
WR2:100-(100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1))),COLOR545454;
20,COLOR0000FF,DOTLINE,LINETHICK1;
90,COLOR008000,DOTLINE,LINETHICK1;
100,COLORGRAY,DOTLINE,LINETHICK1;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.99,0.75,1,'支撑');
0,COLOR408080,POINTDOT,LINETHICK1;
cr1:=CROSS(WR1,90);
CR2:=REF(CROSS(WR2,90),1);
CR3:=REF(CROSS(WR1,90),1);
CR4:=CROSS(WR2,89);
WR:=IF(CROSS(WR1,90) AND CROSS(WR2,90),1,0) OR IF((CR1 AND CR2),1,0) OR IF((CR3 AND CR4),1,0);
DRAWICON(CROSS(WR1,90) AND CROSS(WR2,90),92,9);
DRAWICON(CR1 AND CR2,92,9);
DRAWICON(CR3 AND CR4,92,9);
二线合:=(WR1+WR2)/2,COLORRED,LINETHICK3;
中持线:MA(二线合,10),COLORRED,LINETHICK3;
IF(中持线< REF(中持线,1),中持线,DRAWNULL),LINETHICK3,COLORGREEN;