X_1:=EMA(HHV(HIGH,500),21);
X_2:=EMA(HHV(HIGH,250),21);
X_3:=EMA(HHV(HIGH,90),21);
X_4:=EMA(LLV(LOW,500),21);
X_5:=EMA(LLV(LOW,250),21);
X_6:=EMA(LLV(LOW,90),21);
X_7:=EMA((X_4*0.96+X_5*0.96+X_6*0.96+X_1*0.558+X_2*0.558+X_3*0.558)/6,21);
X_8:=EMA((X_4*1.25+X_5*1.23+X_6*1.2+X_1*0.55+X_2*0.55+X_3*0.65)/6,21);
X_9:=EMA((X_4*1.3+X_5*1.3+X_6*1.3+X_1*0.68+X_2*0.68+X_3*0.68)/6,21);
X_10:=EMA((X_7*3+X_8*2+X_9)/6*1.738,21);
X_11:=REF(LOW,1);
X_12:=SMA(ABS(LOW-X_11),3,1)/SMA(MAX(LOW-X_11,0),3,1)*100;
X_13:=EMA(IF(CLOSE*1.35<=X_10,X_12*10,X_12/10),3);
X_14:=LLV(LOW,30);
X_15:=HHV(X_13,30);
X_16:=IF(MA(CLOSE,58),1,0);
X_17:=EMA(IF(LOW<=X_14,(X_13+X_15*2)/2,0),3)/618*X_16;
X_18:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
主力线:SMA(X_18,3,1),COLORMAGENTA;
散户线:SMA(主力线,3,1),COLORGREEN;
趋势线:SMA(散户线,3,1),COLORYELLOW;
天际线:80,COLORLIBLUE;
地平线:20,COLORBROWN;
分界线:50,CROSSDOT,COLORWHITE;