X_AA1:=HHV(CLOSE,2);
X_AA2:=LLV(CLOSE,2);
X_AA3:=MA(CLOSE,3);
X_AA4:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_AA5:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
X_AA6:=REF(X_AA5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA7:=REF(X_AA6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA8:=REF(X_AA7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA9:=REF(X_AA8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA10:=REF(X_AA9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA11:=REF(X_AA10,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA12:=REF(X_AA11,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA13:=REF(X_AA12,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA14:=REF(X_AA13,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA15:=REF(X_AA14,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA16:=REF(X_AA15,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA17:=CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2);
X_AA18:=REF(X_AA17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA19:=REF(X_AA18,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA20:=REF(X_AA19,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA21:=REF(X_AA20,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA22:=REF(X_AA21,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA23:=REF(X_AA22,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA24:=REF(X_AA23,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA25:=REF(X_AA24,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA26:=REF(X_AA25,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA27:=REF(X_AA26,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_AA28:=REF(X_AA27,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_AA29:=REF(X_AA17 OR X_AA18 OR X_AA19 OR X_AA20 OR X_AA21 OR X_AA22 OR X_AA23 OR X_AA24 OR X_AA25 OR X_AA26 OR X_AA27 OR X_AA28,1) AND X_AA5;
X_AA30:=REF(X_AA5 OR X_AA6 OR X_AA7 OR X_AA8 OR X_AA9 OR X_AA10 OR X_AA11 OR X_AA12 OR X_AA13 OR X_AA14 OR X_AA15 OR X_AA16,1) AND X_AA17;
X_AA31:=X_AA5 OR X_AA6 OR X_AA7 OR X_AA8 OR X_AA9 OR X_AA10 OR X_AA11 OR X_AA12 OR X_AA13 OR X_AA14 OR X_AA15 OR X_AA16;
X_AA32:=IF(X_AA31,X_AA2,DRAWNULL);
X_AA33:=X_AA32;
X_AA34:=REF(X_AA32,1);
X_AA35:=X_AA17 OR X_AA18 OR X_AA19 OR X_AA20 OR X_AA21 OR X_AA22 OR X_AA23 OR X_AA24 OR X_AA25 OR X_AA26 OR X_AA27 OR X_AA28;
X_AA36:=IF(X_AA35,X_AA1,DRAWNULL);
X_AA37:=X_AA36;
X_AA38:=REF(CLOSE AND X_AA36,1);
X_AA39:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_AA40:=EMA(X_AA39,9);
X_AA41:=(X_AA39-X_AA40)*2;
X_AA42:=IF(CURRBARSCOUNT<=60,CONST(IF(ISLASTBAR=1,LLV(LOW,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL);
X_AA43:=BARSLAST(CLOSE>REF(CLOSE,1)*1.095 AND CLOSE=HIGH);
X_AA44:=BARSLAST(CLOSE< REF(CLOSE,1)*1.095 AND CLOSE>REF(CLOSE,1)*1.08);
X_AA45:=BARSLAST(CLOSE< REF(CLOSE,1)*1.08 AND CLOSE>REF(CLOSE,1)*1.07);
X_AA46:=BARSLAST(CLOSE< REF(CLOSE,1)*1.07 AND CLOSE>REF(CLOSE,1)*1.06);
X_AA47:=BARSLAST(CLOSE< REF(CLOSE,1)*1.06 AND CLOSE>REF(CLOSE,1)*1.05);
X_AA48:=COUNT(X_AA43=0,100)=0;
X_AA49:=COUNT(X_AA44=0,100)=0;
X_AA50:=COUNT(X_AA45=0,100)=0;
X_AA51:=COUNT(X_AA46=0,100)=0;
X_AA52:=COUNT(X_AA47=0,100)=0;
X_AA53:=CLOSE>REF(CLOSE,1)*1.05;
X_AA54:=REF(X_AA43,1)>100 AND REF(X_AA44,1)>100 AND REF(X_AA45,1)>100 AND REF(X_AA46,1)>100 AND REF(X_AA47,1)>80 AND X_AA53;
X_AA55:=HHV(MACD.MACD*100,200);
X_AA56:=LLV(MACD.MACD*100,200);
X_AA57:=MA(CLOSE,5);
X_AA58:=MA(CLOSE,10);
X_AA59:=MA(CLOSE,20);
X_AA60:=MA(CLOSE,60);
X_AA61:=MIN(MIN(X_AA57,X_AA58),X_AA59)>X_AA60;
X_AA62:=BARSLAST(X_AA54 AND X_AA55< 60 AND X_AA56>(-55));
X_AA63:=BARSSINCEN(MIN(MIN(X_AA57,X_AA58),X_AA59)>X_AA60,X_AA62+1);
X_AA64:=CROSS(X_AA62=0 AND X_AA61 OR X_AA63=0,0.5);
X_AA65:=COUNT(X_AA64,30)=2 AND X_AA64;
X_AA66:=FILTER(10,10);
X_AA67:=REF(HIGH,BARSLAST(X_AA66));
X_AA68:=VOL/REF(VOL,1)>=1.9;
X_AA69:=CROSS(CLOSE,X_AA67);
X_AA70:=X_AA68 AND X_AA69;
X_AA71:=BARSLAST(X_AA70);
X_AA72:=HHVBARS(X_AA39,300);
X_AA73:=BOLL.UB;
X_AA74:=BARSLAST(CROSS(X_AA73>=REF(X_AA73,1),0.5));
X_AA75:=EXPMA(CLOSE,25);
X_AA76:=EVERY(RANGE(CLOSE/REF(CLOSE,1),0.97,1.05),X_AA74+1);
X_AA77:=(HHV(HIGH,X_AA74+1)-LLV(LOW,X_AA74+1))/LLV(LOW,X_AA74+1)*100;
X_AA78:=EVERY(MAX(CLOSE,OPEN)/X_AA73< 1.02,X_AA74+1);
X_AA79:=ATAN((X_AA75/REF(X_AA75,X_AA74)-1)*100)*180/3.141593;
X_AA80:=CROSS(X_AA39>=REF(X_AA39,X_AA72),0.5) AND X_AA77< 17 AND X_AA76 AND X_AA78;
X_AA81:=X_AA80 AND X_AA79>75;
X_AA82:=REF(CLOSE,1);
X_AA83:=(CLOSE-X_AA82)/X_AA82*100;
X_AA84:=X_AA83-REF(X_AA83,1);
X_AA85:=CROSS(X_AA84,9.8);
X_AA86:=REF(VOL,1);
X_AA87:=VOL/X_AA86;
X_AA88:=X_AA87-REF(X_AA87,1);
X_AA89:=CROSS(X_AA88,500);
X_AA90:=X_AA85 AND X_AA89;
X_AA91:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_AA92:=CROSS(X_AA91,20);
X_AA93:=REF(CROSS(MA(CLOSE,5),CLOSE),1) AND CROSS(CLOSE,MA(CLOSE,5));
X_AA94:=REF(CROSS(MA(CLOSE,10),CLOSE),1) AND CROSS(CLOSE,MA(CLOSE,10));
X_AA95:=REF(CROSS(MA(CLOSE,20),CLOSE),1) AND CROSS(CLOSE,MA(CLOSE,20));
X_AA96:=X_AA93 OR X_AA94 OR X_AA95;
X_AA97:=REF(CLOSE,2)/REF(CLOSE,1)>=1.045 AND REF(CLOSE,1)< REF(OPEN,1) AND CLOSE/REF(CLOSE,1)>1.09 AND CLOSE=HIGH AND X_AA96;
X_AA98:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_AA99:=(20*X_AA98+19*REF(X_AA98,1)+18*REF(X_AA98,2)+17*REF(X_AA98,3)+16*REF(X_AA98,4)+15*REF(X_AA98,5)+14*REF(X_AA98,6)+13*REF(X_AA98,7)+12*REF(X_AA98,8)+11*REF(X_AA98,9)+10*REF(X_AA98,10)+9*REF(X_AA98,11)+8*REF(X_AA98,12)+7*REF(X_AA98,13)+6*REF(X_AA98,14)+5*REF(X_AA98,15)+4*REF(X_AA98,16)+3*REF(X_AA98,17)+2*REF(X_AA98,18)+REF(X_AA98,20))/210;
X_AA100:=EMA(X_AA99,13);
X_AA101:=EMA(CLOSE,5);
X_AA102:=EMA(X_AA101,8);
X_AA103:=EMA(X_AA102,13);
X_AA104:=EMA(X_AA103,50);
X_AA105:=REF(CLOSE,1)< REF(X_AA100,1) AND CLOSE>X_AA100;
X_AA106:=CLOSE/REF(CLOSE,1)>1+0.01*9;
X_AA107:=X_AA100/X_AA104< 1+0.01*20;
X_AA108:=X_AA105 AND X_AA106 AND X_AA107 AND X_AA97;
X_AA109:=LLV(LOW,5);
X_AA110:=HHV(HIGH,5);
X_AA111:=EMA((CLOSE-X_AA109)/(X_AA110-X_AA109)*100,4);
X_AA112:=IF(X_AA111>REF(X_AA111,1) AND X_AA39>X_AA40 AND (X_AA108 OR X_AA92 OR X_AA90 OR X_AA81 OR CURRBARSCOUNT=CONST(X_AA71)+2 OR X_AA65 OR (CCI<=100 AND LOW<=X_AA42)),100,0);
起涨:X_AA112 AND (X_AA38 OR X_AA37);