CAP1:=CAPITAL>=2000 AND CAPITAL<=5000000000 AND C<50;{流通盘在8000万股到5亿股}
S1:=IF(CODELIKE('300'),0,1);S2:=IF(NAMELIKE('S'),0,1);S3:=IF(NAMELIKE('*'),0,1);
S4:=DYNAINFO(17)>0;S5:=NOT(NAMELIKE('退市') OR INBLOCK('本月解禁'));
剔除ST停退禁:= S2 AND S3 AND S4 AND CAP1 AND S5;
BDGD:=C=HHV(C,10);
GDSJ:=BArslAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:=REF(C,GDSJ),COLORFF00FF;
突破:=CROSS(C,REF(高点,1));
JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);
短买:VAR19 AND 突破 AND 剔除ST停退禁;
九毛八公式解读
CAP1赋值:当前流通股本(手)>=2000 AND 当前流通股本(手)<=5000000000 AND 收盘价<50 S1赋值:如果模糊匹配品种代码,返回0,否则返回1 S2赋值:如果模糊匹配品种名称,返回0,否则返回1 S3赋值:如果模糊匹配品种名称,返回0,否则返回1 S4赋值:量比>0 S5赋值:取反 剔除ST停退禁赋值: S2 AND S3 AND S4 AND CAP1 AND S5 BDGD赋值:收盘价=10日内收盘价的最高值 GDSJ赋值:上次0.8上穿BDGD的2日过滤距今天数+1 高点赋值:GDSJ日前的收盘价,COLORFF00FF 突破赋值:收盘价上穿1日前的高点 JRH赋值:2日内收盘价的最高值 JRL赋值:2日内收盘价的最低值 MA3赋值:收盘价的3日简单移动平均 YTSL赋值:(3*收盘价+最低价+开盘价+最高价)/6 VAR1赋值:(收盘价>1日前的收盘价 AND 收盘价>2日前的收盘价) VAR2赋值:(1日前的VAR1 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR3赋值:(1日前的VAR2 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR4赋值:(1日前的VAR3 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR5赋值:(1日前的VAR4 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR6赋值:(1日前的VAR5 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR7赋值:(1日前的VAR6 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR8赋值:(1日前的VAR7 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR9赋值:(1日前的VAR8 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VARA赋值:(1日前的VAR9 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VARB赋值:(1日前的VARA AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VARC赋值:(1日前的VARB AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VARD赋值:(收盘价<1日前的收盘价 AND 收盘价<2日前的收盘价) VARE赋值:(1日前的VARD AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VARF赋值:(1日前的VARE AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR10赋值:(1日前的VARF AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR11赋值:(1日前的VAR10 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR12赋值:(1日前的VAR11 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR13赋值:(1日前的VAR12 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR14赋值:(1日前的VAR13 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR15赋值:(1日前的VAR14 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR16赋值:(1日前的VAR15 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR17赋值:(1日前的VAR16 AND 收盘价<=1日前的收盘价 AND 收盘价>=2日前的收盘价) VAR18赋值:(1日前的VAR17 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价) VAR19赋值:((1日前的VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18) AND VAR1) 输出短买:VAR19 AND 突破 AND 剔除ST停退禁