XA_1:=5;
XA_2:=10;
STICKLINE(CLOSE>0,0,10,15,0),COLORBLacK;
XA_3:=REF(CLOSE,1);
XA_4:=CLOSE-REF(CLOSE,1);
XA_5:=100*EMA(EMA(XA_4,6),6)/EMA(EMA(Abs(XA_4),6),6);
XA_6:=EMA(CLOSE,5);
XA_7:=EMA(CLOSE,13);
XA_8:=DRAWLINE(LOW=LLV(LOW,BArslAST(crOSS(XA_7,XA_6))+1),LLV(LOW,BARSLAST(CROSS(XA_7,XA_6))+1),HIGH=HHV(HIGH,BARSLAST(CROSS(XA_6,XA_7))+1),HHV(HIGH,BARSLAST(CROSS(XA_6,XA_7))+1),0);
XA_9:=DRAWLINE(HIGH=HHV(HIGH,BARSLAST(CROSS(XA_6,XA_7))+1),HHV(HIGH,BARSLAST(CROSS(XA_6,XA_7))+1),LOW=LLV(LOW,BARSLAST(CROSS(XA_7,XA_6))+1),LLV(LOW,BARSLAST(CROSS(XA_7,XA_6))+1),0);
BT:LLV(XA_5,2)=LLV(XA_5,7) AND COUNT(XA_5<0,2) AND CROSS(XA_5,MA(XA_5,2)) AND REF(XA_9,1)<REF(XA_9,2) AND XA_8>REF(XA_9,1);
0,COLORMAGENTA;
10,COLORBLUE;
STICKLINE(XA_8,0,0.2,3,0),COLORRED;
STICKLINE(XA_9,0,0.2,3,0),COLORGREEN;
STICKLINE(BT,0,3,2,0),COLOR000088;
STICKLINE(BT,0,3,1,0),COLOR0000CC;
STICKLINE(BT,0,3,0.22,0),COLORRED;
XA_10:=REF(XA_9,1)<REF(XA_9,2) AND XA_8>REF(XA_9,1) AND CLOSE<HHV(HIGH,21)*0.82;
STICKLINE(XA_10,0,2,3,0),COLOR880088;
STICKLINE(XA_10,0,2,1.5,0),COLORAA00AA;
STICKLINE(XA_10,0,2,0.8,0),COLORCC00CC;
STICKLINE(XA_10,0,2,0.2,0),COLORMAGENTA;
XA_11:=HHV(HIGH,55);
XA_12:=LLV(LOW,55);
XA_13:=XA_11*XA_12;
XA_14:=SQRT(XA_13);
XA_15:=REF(XA_9,1)<REF(XA_9,2) AND XA_8>REF(XA_9,1) AND CLOSE<XA_14;
STICKLINE(XA_15,0,1,5,0),COLOR008888;
STICKLINE(XA_15,0,1,2,0),COLOR00AAAA;
STICKLINE(XA_15,0,1,1,0),COLOR00CCCC;
STICKLINE(XA_15,0,1,0.2,0),COLORYELLOW;
XA_16:=REF(XA_8,1)>REF(XA_8,2) AND XA_9<REF(XA_8,1);
STICKLINE(XA_16,10,9.8,5,0),COLOR008800;
STICKLINE(XA_16,10,9.8,2,0),COLOR00AA00;
STICKLINE(XA_16,10,9.8,1,0),COLOR00CC00;
STICKLINE(XA_16,10,9.8,0.2,0),COLORGREEN;
XA_17:=(CLOSE+HIGH+LOW)/3;
XA_18:=MA(XA_17,4);
XA_19:=CLOSE-REF(CLOSE,1);
XA_20:=100*EMA(EMA(XA_19,6),6)/EMA(EMA(ABS(XA_19),6),6);
XA_21:=LLV(XA_20,2)=LLV(XA_20,7) AND COUNT(XA_20<0,2) AND CROSS(XA_20,MA(XA_20,2));
FILTER(XA_21,5) AND REF(CLOSE,1)<XA_18 AND CLOSE>XA_18 AND XA_18<REF(XA_18,1),COLORMAGENTA;
XA_22:=SMA(ABS(LOW-XA_4),13,1)/SMA(MAX(LOW-XA_4,0),10,1);
XA_23:=EMA(XA_22,10);
XA_24:=LLV(LOW,33);
XA_25:=EMA(IF(LOW<=XA_24,XA_23,0),3);
XA_26:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
XA_27:=SMA(XA_26,3,1);
XA_28:=SMA(XA_27,3,1);
XA_29:=3*XA_27-2*XA_28;
XA_30:=LLV(XA_29,2)=LLV(XA_29,8);
天机买:IF(CROSS(XA_29,REF(XA_29+0.01,1)) AND XA_30 AND XA_29<19,2,0),COLORWHITE;
XA_31:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
asr:(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))/WINNER(HHV(HIGH,0))*10,COLORRED;