N:=10;
N1:=6;
wr1:100-(100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)));
WR2:100-(100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)));
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,90);
DRAWICON(CROSS(WR1,90) AND CROSS(WR2,90),90,5);
DRAWICON(CR1 AND CR2,92,22);