X_1:=60;
X_2:=30;
散户线:=100*(HHV(HIGH,X_1)-CLOSE)/(HHV(HIGH,X_1)-LLV(LOW,X_1)),COLORYELLOW,LINETHICK4;
X_3:=(CLOSE-LLV(LOW,X_2))/(HHV(HIGH,X_2)-LLV(LOW,X_2))*100;
X_4:=SMA(X_3,5,1);
X_5:=SMA(X_4,3,1);
X_6:=3*X_4-2*X_5;
主力线:=EMA(X_6,6),COLORRED,LINETHICK4;
X_16:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
X_17:=SMA(X_16,13,8);
走势:=CEILING(SMA(X_17,13,8)),COLORGREEN;
XG1:=CROSS(走势,主力线);
XG2:=EXIST(散户线>99,10);
XG:XG1 AND XG2;