XA_1:=(MA((EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137*0.3+LOW*0.7+HIGH)/2,4)+MA((HHV(LOW,3)+LLV(HIGH,3))/2,2))/2;
XA_2:=(((EMA(EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137,13)-EMA(EMA(EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137,13),7))/EMA(EMA(EMA(((CLOSE+HIGH)/2-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*(LOW*0.173),7)+LOW*0.9137,13),7)*10+MA((HHV(LOW,3)+LLV(HIGH,3))/2,2))*0.99+MA((HHV(LOW,3)+LLV(HIGH,2))/2,2))/2;
XA_3:=LLV(REF(1.5*REF(MA(CLOSE,6),1)-0.5*(MA(CLOSE,6)*1.013),1),17)*0.98;
XA_4:=SLOPE(XA_1,7)*1.78+(XA_1*0.63+XA_2*0.37);
STICKLINE(XA_3>XA_4,XA_3/20,0,3,1),COLORFF8000;
STICKLINE(XA_3>XA_4,0.5,XA_3/20,3,(-1)),COLORLIMAGENTA;
STICKLINE(XA_3>XA_4,0.5,XA_3/20,2,(-1)),COLORLIMAGENTA;
STICKLINE(XA_3>XA_4,0.5,XA_3/20,1,(-1)),COLORLIMAGENTA;
STICKLINE(XA_3>XA_4,0.5,XA_3/20,0,(-1)),COLORLIMAGENTA;
XA_5:=CLOSE/REF(LLV(LOW,21),5)<1;
XA_6:=IF(XA_5,1,0);
STICKLINE(XA_3>XA_4 AND XA_6,0.5,0,2,0),COLORRED;
XA_7:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
XA_8:=SMA(XA_7,3,1);
XA_9:=SMA(XA_8,3,1);
XA_10:=3*XA_8-2*XA_9;
XA_11:=XA_8<22 AND XA_10<2 AND REF(XA_10,1)>2;
STICKLINE(XA_3>XA_4 AND XA_11,0,0.2,3,0),COLORYELLOW;
动态底:EMA(IF(LOW<=LLV(LOW,30),SMA(Abs(LOW-REF(LOW,1)),30,1)/SMA(MAX(LOW-REF(LOW,1),0),30,1),0),3)*0.1,STICK,COLORYELLOW,LINETHICK2;