XA_1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50;
XA_2:=EMA(XA_1,9);
XA_3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
XA_4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
XA_5:=SMA(XA_4,13,8);
XA_6:=SMA(XA_3,21,8);
A:CEILING(SMA(XA_5,13,8)),COLORRED;
B:MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5),COLOR008000;
风险:80,DOTLINE,COLORC08000;
底:IF(A-XA_6<(-70),1,5),COLOR004080;
顶:IF(A-XA_6>88,95,100),COLOR804000;
注意:10,DOTLINE,COLOR004080;