N:=10;
N1:=6;
VAR11:100-(100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))),COLORFF00FF;
VAR12: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;
ABC1:=CROSS(VAR11,90);
ABC2:=REF(CROSS(VAR12,90),1);
ABC3:=REF(CROSS(VAR11,90),1);
ABC4:=CROSS(VAR12,89);
AA:=C>MA(C,60);{公式网WWW.GPXIAZAI.COM}
VAR1:=IF(CROSS(VAR11,90) AND CROSS(VAR12,90),1,0) OR IF((ABC1 AND ABC2),1,0) OR IF((ABC3 AND ABC4),1,0);
二线合:=(VAR11+VAR12)/2,COLORRED,LINETHICK3;
中持线:MA(二线合,10),COLORRED,LINETHICK3;
IF(中持线< REF(中持线,1),中持线,DRAWNULL),LINETHICK3,COLORGREEN;
DRAWICON(CROSS(VAR11,90) AND CROSS(VAR12,90) AND AA,92,5);
DRAWICON(ABC1 AND ABC2 AND AA,92,5);
DRAWICON(ABC3 AND ABC4 AND AA,92,5);