N:=5;
XA_1:=IF(DATE<=1970731,1,0);
XA_2:=MA(CLOSE,3);
XA_3:=MA(CLOSE,8);
XA_4:=EMA(CLOSE,8);
XA_5:=MA(CLOSE,13);
XA_6:=EMA(CLOSE,13);
XA_7:=XA_3>XA_5 OR XA_4>XA_5 OR (XA_3>XA_6 OR XA_4>XA_6) AND (REF(CLOSE,1)<XA_3 OR REF(CLOSE,1)<XA_4 OR REF(CLOSE,1)<XA_5 OR REF(CLOSE,1)<XA_6);
XA_8:=XA_3>XA_5 OR XA_4>XA_5 OR (XA_3>XA_6 OR XA_4>XA_6) AND (XA_2<=XA_3 OR XA_2<=XA_4 OR XA_2<=XA_5 OR XA_2<=XA_6);
XA_9:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
XA_10:=EXIst(XA_9,1);
XA_11:=VOL/REF(EMA(VOL,5),1)*XA_1;
XA_12:=XA_11>=0.8 OR XA_11>REF(XA_11,1)*1.5;
XA_13:=REF(EMA(EMA(CLOSE,N),2),1)*XA_1;
XA_14:=EMA(SMA(CLOSE,3,1),4)*XA_1;
XA_15:=(XA_14-REF(XA_14,1))/REF(XA_14,1)*50000*XA_1;
XA_16:=XA_15>REF(XA_15,1) AND XA_15>0;
XA_17:=EMA(SMA(CLOSE,13,1),5)*XA_1;
XA_18:=(XA_17-REF(XA_17,1))/REF(XA_17,1)*50000*XA_1;
XA_19:=XA_18>REF(XA_18,1);
XA_20:=EMA(SMA(CLOSE,21,1),6)*XA_1;
XA_21:=(XA_20-REF(XA_20,1))/REF(XA_20,1)*50000*XA_1;
XA_22:=XA_21>REF(XA_21,1);
持股:=(CLOSE>REF(XA_13,1))*0.5*XA_1;
洗盘拉升:CLOSE>OPEN AND (OPEN*1.025<CLOSE OR REF(CLOSE,1)*1.025<CLOSE) AND 持股 AND (XA_12 OR XA_10) AND XA_16 AND XA_19 AND XA_22 AND (XA_8 OR REF(XA_8,1) OR XA_7)*XA_1;
九毛八公式解读
N赋值:5 XA_1赋值:如果日期<=1970731,返回1,否则返回0 XA_2赋值:收盘价的3日简单移动平均 XA_3赋值:收盘价的8日简单移动平均 XA_4赋值:收盘价的8日指数移动平均 XA_5赋值:收盘价的13日简单移动平均 XA_6赋值:收盘价的13日指数移动平均 XA_7赋值:XA_3>XA_5 OR XA_4>XA_5 OR (XA_3>XA_6 OR XA_4>XA_6) AND (1日前的收盘价XA_5 OR XA_4>XA_5 OR (XA_3>XA_6 OR XA_4>XA_6) AND (XA_2<=XA_3 OR XA_2<=XA_4 OR XA_2<=XA_5 OR XA_2<=XA_6) XA_9赋值:收盘价>=计算涨停价 XA_10赋值:最近1日存在XA_9 XA_11赋值:成交量(手)/1日前的成交量(手)的5日指数移动平均*XA_1 XA_12赋值:XA_11>=0.8 OR XA_11>1日前的XA_11*1.5 XA_13赋值:1日前的收盘价的N日指数移动平均的2日指数移动平均*XA_1 XA_14赋值:收盘价的3日[1日权重]移动平均的4日指数移动平均*XA_1 XA_15赋值:(XA_14-1日前的XA_14)/1日前的XA_14*50000*XA_1 XA_16赋值:XA_15>1日前的XA_15 AND XA_15>0 XA_17赋值:收盘价的13日[1日权重]移动平均的5日指数移动平均*XA_1 XA_18赋值:(XA_17-1日前的XA_17)/1日前的XA_17*50000*XA_1 XA_19赋值:XA_18>1日前的XA_18 XA_20赋值:收盘价的21日[1日权重]移动平均的6日指数移动平均*XA_1 XA_21赋值:(XA_20-1日前的XA_20)/1日前的XA_20*50000*XA_1 XA_22赋值:XA_21>1日前的XA_21 持股赋值:(收盘价>1日前的XA_13)*0.5*XA_1 输出洗盘拉升:收阳线ANDSE (开盘价*1.025<收盘价 OR 1日前的收盘价*1.025<收盘价) AND 持股 AND (XA_12 OR XA_10) AND XA_16 AND XA_19 AND XA_22 AND (XA_8 OR 1日前的XA_8 OR XA_7)*XA_1