DRAWGBK(OPEN 0,RGB(0,0,0),RGB(33,47,58),0,6,0);X_1:=MA(CLOSE,5);
X_2:=MA(CLOSE,13);
X_3:=MA(CLOSE,34);
X_4:=BARSLAST(crOSS(X_1,X_2));
X_5:=BARSLAST(CROSS(X_1,X_3));
X_6:=BARSLAST(CROSS(X_2,X_3));
X_7:=X_4 =X_5 AND X_5 X_6 AND X_4-X_6
X_8:=COUNT(CROSS(X_1,X_2),X_4+1)=1 AND COUNT(CROSS(X_1,X_3),X_4+1)=1 AND CROSS(X_2,X_3) AND X_1 X_2 AND X_2
X_9:=X_1 REF(X_1,1) AND X_2 REF(X_2,1) AND X_3 REF(X_3,1);
X_10:=X_1 REF(X_1,1) AND X_2 REF(X_2,1) AND X_3 REF(X_3,1);
X_11:=CLOSE-REF(CLOSE,1);
X_12:=100*EMA(EMA(X_11,6),6)/EMA(EMA(Abs(X_11),6),6);
X_13:=CLOSE X_1 AND X_1 X_2 AND X_2
X_14:=EMA(CLOSE,10)-EMA(CLOSE,20);
X_15:=EMA(X_14,7);
X_16:=2*(X_14-X_15);
X_17:=REF(X_16,1) REF(X_16,2) AND REF(X_16,2) REF(X_16,3) AND REF(X_16,3) REF(X_16,4);
X_18:=X_16 =0 AND COUNT(X_16 REF(X_16,1),1)=1;
X_19:=X_17 AND X_18 AND EMA(CLOSE,13) REF(EMA(CLOSE,13),1);
X_20:=X_17 AND X_18 AND ABS((X_14-X_15)/CLOSE) 0.018;
X_21:=X_17 AND X_18 AND X_16
X_22:=X_19 OR X_20 OR X_21;
X_23:=(2*CLOSE+HIGH+LOW)/4;
X_24:=LLV(LOW,5);
X_25:=HHV(HIGH,4);
X_26:=EMA((X_23-X_24)/(X_25-X_24)*100,4);
X_27:=EMA(0.667*REF(X_26,1)+0.333*X_26,2);
X_28:=EMA(CLOSE,3);
X_29:=EMA(SLOPE(CLOSE,34)*5+CLOSE,21);
短线买点:CROSS(X_28,X_29),NODRAW,COLORRED;
强势短买:CROSS(X_28,X_29) AND X_10,NODRAW,COLORMAGENTA;
趋势买点:CROSS(X_28,X_29) AND X_22,NODRAW,COLORLIRED;
强势趋买:CROSS(X_28,X_29) AND X_22 AND X_10,NODRAW,COLORMAGENTA;
弱势买点:CROSS(X_28,X_29) AND CLOSE MA(CLOSE,34),NODRAW,COLOR20A5DA;
最后卖点:CROSS(X_29,X_28),NODRAW,COLORGREEN;
短线区间:COUNT(短线买点,BARSLAST(短线买点)+1)=1 AND COUNT(最后卖点,BARSLAST(短线买点)+1)=0,NODRAW,COLORRED;
X_30:=COUNT(弱势买点,BARSLAST(弱势买点)+1)=1 AND CROSS(CLOSE,MA(CLOSE,34)) AND COUNT(CROSS(CLOSE,MA(CLOSE,34)),BARSLAST(弱势买点)+1)=1;
买点恢复:X_30 0 AND 短线区间 AND CLOSE MA(CLOSE,34) AND BARSLAST(短线买点) 0,NODRAW,COLORRED;
弱加仓:X_7 AND X_8 AND X_9 AND 短线区间 AND BARSLAST(短线买点) 0,NODRAW,COLORFFFFBB;
强加仓:X_7 AND X_8 AND X_10 AND 短线区间 AND BARSLAST(短线买点) 0,NODRAW,COLORYELLOW;
可以卖:CROSS(X_27,X_26) AND X_26 70 AND BARSLAST(短线买点) 0 AND 短线区间,NODRAW,COLORGREEN;
X_31:=BARSLAST(可以卖=1);
X_32:=COUNT(可以卖,BARSLAST(可以卖)+1)=1 AND CROSS(CLOSE,REF(HIGH,X_31)) AND COUNT(CROSS(CLOSE,REF(HIGH,X_31)),BARSLAST(可以卖)+1)=1;
X_33:=BARSLAST(短线买点=1) BARSLAST(可以卖=1);
可以买:X_32 0 AND X_33 AND 短线区间,NODRAW,COLORRED;
今买明卖:CLOSE REF(HHV(HIGH,2),1) AND (LLV(X_12,2)=LLV(X_12,7) AND COUNT(X_12 0,2) AND CROSS(X_12,MA(X_12,2))) AND NOT(X_13),NODRAW,COLORWHITE;
STICKLINE(短线区间 0,10,90,4,0),COLORGRAY;
STICKLINE(短线买点 0,0,100,4,0),COLORRED;
STICKLINE(强势短买 0,50,100,4,0),COLORMAGENTA;
STICKLINE(趋势买点 0,50,100,4,0),COLORBLUE;
STICKLINE(强势趋买 0,0,40,4,0),COLORRED;
STICKLINE(强势趋买 0,40,70,4,0),COLORBLUE;
STICKLINE(强势趋买 0,70,100,4,0),COLORMAGENTA;
STICKLINE(最后卖点 0,0,100,4,0),COLORGREEN;
STICKLINE(弱加仓 0,10,90,2,0),COLORFFFFBB;
STICKLINE(强加仓 0,10,90,2,0),COLORYELLOW;
STICKLINE(弱势买点 0,0,100,4,0),COLOR20A5DA;
STICKLINE(买点恢复 0,10,90,2,0),COLORRED;
STICKLINE(今买明卖 0,0,10,4,0),COLORWHITE;
DRAWICON(可以卖,90,2);
DRAWICON(可以买,90,1);