VAR1:=REF(OPEN>CLOSE,3) AND REF(OPEN>CLOSE,2) AND REF(OPEN<CLOSE,1);
VAR2:=OPEN>CLOSE;
VAR3:=REF(CLOSE,1)/CLOSE>=1.03;
VAR4:=CLOSE/LOW<1.03;
VAR5:=VOL<REF(VOL,3)*1.2 AND VOL>REF(VOL,3)*0.9;
VAR6:=HIGH<REF(HIGH,1);
VAR7:=EMA(C,5)>MA(C,14)*1.017;
VAR8:=REF(OPEN<CLOSE,3) AND REF(OPEN<CLOSE,2) AND REF(OPEN>CLOSE,1);
VAR9:=REF(C,2)<REF(C,1)*1.01;
VAR10:=V<LLV(V,16)*9.5;
VAR11:=(C-L)<(O-C)*0.6;
VAR12:=REF(C,1)/REF(C,2)<1.0995;
VAR13:=REF(H,1)/C<1.07;
VAR14:=H-O>(C-L);
VAR15:=REF(H/MIN(O,C),3)>1.011;
X_15:=IF(CLOSE<OPEN,(CLOSE-LOW)/(HIGH-LOW),0);
涨幅:=C/REF(C,1);
XG1:=VAR8 AND VAR2 AND 涨幅<1.098 AND VAR3 AND VAR4 AND VAR6 AND VAR11 AND VAR12 AND VAR10 AND VAR13 AND VAR14 AND VAR15 AND VAR9 AND X_15>0.03 AND X_15<0.3;
XG2:=VAR1 AND VAR2 AND VAR3 AND VAR4 AND VAR5 AND VAR6 AND VAR7,COLORRED,LINETHICK2;
尾盘淘金:XG1 OR XG2 AND IF(CODELIKE('300'),0,1) AND IF(CODELIKE('688'),0,1) AND IF(CODELIKE('ST'),0,1);
九毛八公式解读
VAR1赋值:3日前的收阴线 AND 2日前的收阴线 AND 1日前的收阳线 VAR2赋值:收阴线 VAR3赋值:1日前的收盘价/收盘价>=1.03 VAR4赋值:收盘价/最低价<1.03 VAR5赋值:成交量(手)<3日前的成交量(手)*1.2 AND 成交量(手)>3日前的成交量(手)*0.9 VAR6赋值:最高价<1日前的最高价 VAR7赋值:收盘价的5日指数移动平均>收盘价的14日简单移动平均*1.017 VAR8赋值:3日前的收阳线 AND 2日前的收阳线 AND 1日前的收阴线 VAR9赋值:2日前的收盘价<1日前的收盘价*1.01 VAR10赋值:成交量(手)<16日内成交量(手)的最低值*9.5 VAR11赋值:(收盘价-最低价)<(开盘价-收盘价)*0.6 VAR12赋值:1日前的收盘价/2日前的收盘价<1.0995 VAR13赋值:1日前的最高价/收盘价<1.07 VAR14赋值:最高价-开盘价>(收盘价-最低价) VAR15赋值:3日前的最高价/开盘价和收盘价的较小值>1.011 X_15赋值:如果收阴线,返回(收盘价-最低价)/(最高价-最低价),否则返回0 涨幅赋值:收盘价/1日前的收盘价 XG1赋值:VAR8 AND VAR2 AND 涨幅<1.098 AND VAR3 AND VAR4 AND VAR6 AND VAR11 AND VAR12 AND VAR10 AND VAR13 AND VAR14 AND VAR15 AND VAR9 AND X_15>0.03 AND X_15<0.3 XG2赋值:VAR1 AND VAR2 AND VAR3 AND VAR4 AND VAR5 AND VAR6 AND VAR7,画红色,线宽为2 输出尾盘淘金:XG1 OR XG2 AND 如果模糊匹配品种代码,返回0,否则返回1 AND 如果模糊匹配品种代码,返回0,否则返回1 AND 如果模糊匹配品种代码,返回0,否则返回1