ABC1:=HHV(HIGH,9)-LLV(LOW,9);
ABC2:=HHV(HIGH,9)-CLOSE;
ABC3:=CLOSE-LLV(LOW,9);
ABC4:=ABC2/ABC1*100-70;
ABC5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
ABC6:=(2*CLOSE+HIGH+LOW)/4;
ABC7:=SMA(ABC3/ABC1*100,3,1);
ABC8:=LLV(LOW,30);
ABC9:=SMA(ABC7,3,1)-SMA(ABC4,9,1);
ABC10:=IF(ABC9>100,ABC9-100,0);
ABC11:=HHV(HIGH,30);
ABC12:=EMA((ABC6-ABC8)/(ABC11-ABC8)*100,6);
ABC13:=ABC12;
ABC14:=FORCAST(ABC12,12);
ABC15:=1;
ABC16:=1;
STICKLINE(ABC16=1 AND ABC12>0 AND ABC12-ABC14>=0,79,80,6,0),COLORRED;
STICKLINE(ABC16=1 AND ABC12>0 AND ABC12-ABC14< 0,79,80,6,1),COLORGREEN;
STICKLINE(ABC16=1 AND ABC12>0 AND ABC12-ABC14>=0,19,20,6,0),COLORRED;
STICKLINE(ABC16=1 AND ABC12>0 AND ABC12-ABC14< 0,19,20,6,1),COLORCYAN;
主力线:IF(ABC16=1,ABC12,0), COLORYELLOW LINETHICK3;
100,COLORWHITE;
强势分界:80;
牛熊分界:50,COLORRED;
弱势分界:20,COLORWHITE;
DRAWICON(CROSS(主力线,牛熊分界),牛熊分界*1.002,9);
DRAWICON(CROSS(主力线,强势分界),强势分界*1.002,26);
IF(ABC12>=78.5,ABC12,DRAWNULL),COLORRED,LINETHICK4;