VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89);
VAR1C:=EMA(VAR1B,21);
VAR1D:=(VAR1B-VAR1C)*10;
VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2);
WG:=IF(VAR1D>0.015,VAR1F,0)/45;
LTP:=FINANCE(7)<1500000000;
S1:=IF(CODELIKE('300'),0,1);
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
GJFW:=DYNAINFO(7)>5 AND DYNAINFO(7)<20;
短线:WG/REF(WG,1)>5 AND REF(WG,1)/REF(WG,2)>5 AND LTP AND S1 AND S2 AND S3 AND GJFW;
九毛八公式解读
VAR1B赋值:收盘价的3日指数移动平均-收盘价的89日指数移动平均 VAR1C赋值:VAR1B的21日指数移动平均 VAR1D赋值:(VAR1B-VAR1C)*10 VAR1F赋值:VAR1D的3乘幂*0.1+VAR1D的2乘幂 WG赋值:如果VAR1D>0.015,返回VAR1F,否则返回0/45 LTP赋值:流通股本(股)<1500000000 S1赋值:如果模糊匹配品种代码,返回0,否则返回1 S2赋值:如果模糊匹配品种名称,返回0,否则返回1 S3赋值:如果模糊匹配品种名称,返回0,否则返回1 GJFW赋值:现价>5 AND 现价<20 输出短线:WG/1日前的WG>5 AND 1日前的WG/2日前的WG>5 AND LTP AND S1 AND S2 AND S3 AND GJFW