近期涨幅:=9;
今日跌幅:=5;
时间跨度:=100;
上升通道:=100;
中长距离:=50;
建仓值:=-5;
X_1:=12;
X_2:=26;
X_3:=9;
X_4:=EMA(CLOSE,X_1)-EMA(CLOSE,X_2);
X_5:=EMA(X_4,X_3);
X_6:=(X_4-X_5)*2;
X_7:=9;
X_8:=3;
X_9:=3;
X_10:=(CLOSE-LLV(LOW,X_7))/(HHV(HIGH,X_7)-LLV(LOW,X_7))*100;
X_11:=SMA(X_10,X_8,1);
X_12:=SMA(X_11,X_9,1);
X_13:=3*X_11-2*X_12;
X_14:=EMA(CLOSE,17);
X_15:=EMA(CLOSE,5);
X_16:=EMA(X_15,8);
X_17:=EMA(X_16,13);
X_18:=EMA(X_17,50);
X_19:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_20:=(20*X_19+19*REF(X_19,1)+18*REF(X_19,2)+17*REF(X_19,3)+16*REF(X_19,4)+15*REF(X_19,5)+14*REF(X_19,6)+13*REF(X_19,7)+12*REF(X_19,8)+11*REF(X_19,9)+10*REF(X_19,10)+9*REF(X_19,11)+8*REF(X_19,12)+7*REF(X_19,13)+6*REF(X_19,14)+5*REF(X_19,15)+4*REF(X_19,16)+3*REF(X_19,17)+2*REF(X_19,18)+REF(X_19,20))/210;
X_21:=EMA(X_20,13);
X_22:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_23:=EMA(X_22,6);
X_24:=EMA(X_22,5);
X_25:=CLOSE/X_21*100-100;
X_26:=5;
X_27:=34;
X_28:=100*(CLOSE-LLV(LOW,X_27))/(HHV(CLOSE,X_27)-LLV(LOW,X_27));
X_29:=AMOUNT/CLOSE/(HHV(AMOUNT,X_27)/HHV(CLOSE,X_27));
X_30:=IF(X_29>1,1,X_29)*100;
X_31:=100*(CLOSE-LLV(LOW,X_27))/(HHV(CLOSE,X_27)-LLV(LOW,X_27));
X_32:=CLOSE/REF(CLOSE,1)>1.09;
X_33:=REF(X_31,1)< 1 AND X_31>1;
X_34:=X_4< X_5 AND X_13>X_12;
X_35:=CROSS(X_23,X_24);
X_36:=X_6< 0 AND COUNT(X_6>0,10)>6;
X_37:=X_4>X_5 AND X_13< X_12;
X_38:=X_33;
X_39:=CLOSE>X_21 AND REF(CLOSE,1)< REF(X_21,1) AND CLOSE/REF(CLOSE,1)>1.09;
X_40:=EXIST(CLOSE/REF(CLOSE,1)>1+0.01*近期涨幅,时间跨度);
X_41:=REF(CLOSE,1)/CLOSE< 1+0.01*今日跌幅;
X_42:=BARSLAST(X_21>X_14)< 上升通道;
X_43:=X_21/X_18< 1+0.01*中长距离;
X_44:=LOW< X_14;
X_45:=IF(CLOSE/REF(CLOSE,1)>1.09,0,1);
X_46:=IF(EXIST(X_34,5),0,1);
X_47:=X_25< 建仓值;
主力变盘:IF(X_36 AND X_40 AND X_41 AND X_42 AND X_43 AND X_46,40,0),COLORFF8000;