XA_1:=EXPMEma(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),12);
XA_2:=HIGH-REF(HIGH,1);
XA_3:=REF(LOW,1)-LOW;
XA_4:=EXPMema(IF(XA_2>0 AND XA_2>XA_3,XA_2,0),12)*100/XA_1;
XA_5:=EXPMEMA(IF(XA_3>0 AND XA_3>XA_2,XA_3,0),12)*100/XA_1;
XA_6:=XA_4>65 AND XA_4>REF(XA_4,1);
XA_7:=LLV(XA_4,0);
XA_8:=BArslAST(XA_7=XA_4);
XA_9:=(0-REF(XA_5,4))/(XA_7-REF(XA_5,XA_8))>2;
XA_10:=XA_4>REF(XA_4,1);
XA_11:=vol>2*MA(VOL,30);
XA_12:=EXPMEMA(ABS(XA_5-XA_4)/(XA_5+XA_4)*100,6);
XA_13:=EXPMEMA(XA_6,6);
XA_14:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
XA_15:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
XA_16:=BARSLAST(crOSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
XA_17:=0-(EMA(CLOSE,7)-EMA(CLOSE,21));
XA_18:=TROUGHBARS(3,15,1)<4;
XA_19:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
XA_20:=IF(XA_18=1,50,0);
XA_21:=CROSS(XA_5,XA_4) AND CROSS(XA_13,XA_12);
XA_22:=CROSS(XA_5,XA_4) AND CROSS(XA_12,XA_13);
XA_23:=XA_14 AND XA_15 AND XA_16 AND XA_19 AND XA_9 AND XA_10 AND XA_11*50;
XA_24:=BARSLAST(CROSS(XA_5,XA_4)=1);
XA_25:=BARSLAST(CROSS(XA_4,XA_5)=1);
XA_26:=HHV(XA_4,XA_25);
XA_27:=BARSLAST(XA_4=XA_26);
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORRED;
STICKLINE(0=0,0,0,1500,1),COLORWHITE;
STICKLINE(FILTER(XA_18=1,5) AND 多空<(-10),50,0,10,0),COLORF00FF0;
STICKLINE(FILTER(XA_18=1,5),50,0,5,0),COLORBLUE;
XA_28:=XA_6 OR XA_21 OR XA_22*100;
XA_29:=XA_22*100;
DRAWTEXT(FILTER(XA_18=1,3),25,1),COLORWHITE;
STICKLINE(多空<(-10),0,多空,0.85,0),COLORBLUE;
STICKLINE(多空>10,0,多空,0.95,0),COLORWHITE;