MA1:=MA(V,5);
MA2:=MA(V,60);
MA5:=MA(C,5);
MA10:=MA(CLOSE,10);
MA13:=MA(C,13);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA250:=MA(C,250);
MA530:=MA(C,530);
V1:=240/FROMOPEN*DYNAINFO(8);
D:=MA(C,5);
A:=D>=REF(D,1) ;
B1:=C>D AND (C-D)/D<=0.08;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
MID := MA(CLOSE,26);
UPPER:=MID + 2*STD(CLOSE,26);
LOWER:=MID - 2*STD(CLOSE,26);
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
S4:=DYNAINFO(17)>0;
GX:=DIF>0 AND DEA>0 AND DIF>DEA AND S2 AND S3 AND S4 AND
MA5>MA13 AND MA13>MA20 AND MA20>MA30 AND MA20>REF(MA20,1)
AND MA13>REF(MA13,1) AND MA30>REF(MA30,1) AND MA5>REF(MA5,1)
AND C> REF(C,1) AND VOL>REF(VOL,1)
AND C>MA60 AND C>MA120 AND C>MA250 AND
C>REF(HHV(C,150),1) AND C>UPPER AND UPPER>REF(UPPER,1) AND
CROSS(CLOSE,UPPER);
ENTERLONG:=DIF>0 AND DEA>0 AND DIF>DEA AND S2 AND S3 AND S4 AND
MA5>MA13 AND WINNER(C)>0.9 AND MA13>MA20 AND MA20>MA30 AND
MA20>REF(MA20,1)AND MA13>REF(MA13,1) AND MA30>REF(MA30,1) AND
MA5>REF(MA5,1) AND C> REF(C,1) AND VOL>REF(VOL,1) AND
C>MA60 AND C>MA120 AND C>MA250 AND C>REF(HHV(C,50),1) AND
C>UPPER AND UPPER>REF(UPPER,1) AND CROSS(CLOSE,UPPER) AND
COUNT(C>MA(C,5),3)=3 AND LOW<MA(CLOSE,3) AND CLOSE>MA(CLOSE,5)
AND MA5>MA20 AND MA5>MA60 AND MA13>MA60 AND V1>MA(V,60) AND
V1>MA(V,5);
ENTERLONG1:=VOL>MA1 AND VOL>MA2 AND C>MA13 AND C>MA20 AND
C>MA30 AND C>MA60 AND C>MA120 AND C>MA250 AND A AND B1 AND
DIF=HHV(DIF,30) AND macd=HHV(MACD,2) AND WINNER(C)>0.9 AND S2 AND S3
AND S4 AND MA5>MA13 AND WINNER(C)>0.9 AND MA13>MA20 AND
MA20>MA30 AND MA20>REF(MA20,1) AND MA13>REF(MA13,1) AND
MA30>REF(MA30,1) AND MA5>REF(MA5,1) AND C>REF(C,1)AND
VOL>REF(VOL,1) AND C>REF(HHV(C,50),1) AND C>UPPER AND
UPPER>REF(UPPER,1) AND CROSS(CLOSE,UPPER);
YY2:=V>MA(V,135);
YY3:=WINNER(C)>=0.85;
换手:=VOL/CAPITAL*100;
A1:=REF(CLOSE,1)<MA5 OR REF(CLOSE,1)<MA10 OR REF(CLOSE,1)<MA20
OR REF(CLOSE,1)<MA60 OR REF(CLOSE,1)<MA120 AND MA60>MA120;
A2:=CLOSE>OPEN AND VOL>REF(VOL,1) AND CLOSE>MAX(MA5,MAX(MA10,MAX(MA20,MAX(MA60,MA120))));
去除停牌:=DYNAINFO(13)>0;
DIF1:=EMA(CLOSE,10)-EMA(CLOSE,22);
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2;
XG:=A1 AND A2 AND YY2 AND YY3 AND 换手>2.7 AND MACD1>REF(MACD,1) AND 去除停牌;
GX OR ENTERLONG OR ENTERLONG1 OR XG;
九毛八公式解读
MA1赋值:成交量(手)的5日简单移动平均 MA2赋值:成交量(手)的60日简单移动平均 MA5赋值:收盘价的5日简单移动平均 MA10赋值:收盘价的10日简单移动平均 MA13赋值:收盘价的13日简单移动平均 MA20赋值:收盘价的20日简单移动平均 MA30赋值:收盘价的30日简单移动平均 MA60赋值:收盘价的60日简单移动平均 MA120赋值:收盘价的120日简单移动平均 MA250赋值:收盘价的250日简单移动平均 MA530赋值:收盘价的530日简单移动平均 V1赋值:240/当前离开盘分钟数*总量 D赋值:收盘价的5日简单移动平均 A赋值:D>=1日前的D B1赋值:收盘价>D AND (收盘价-D)/D<=0.08 DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均 DEA赋值:DIF的9日指数移动平均 MACD赋值:(DIF-DEA)*2 赋值: 收盘价的26日简单移动平均 UPPER赋值:MID + 2*收盘价的26日估算标准差 LOWER赋值:MID - 2*收盘价的26日估算标准差 S2赋值:如果模糊匹配品种名称,返回0,否则返回1 S3赋值:如果模糊匹配品种名称,返回0,否则返回1 S4赋值:量比>0 GX赋值:DIF>0 AND DEA>0 AND DIF>DEA AND S2 AND S3 AND S4 AND MA5>MA13 AND MA13>MA20 AND MA20>MA30 AND MA20>1日前的MA20 AND MA13>1日前的MA13 AND MA30>1日前的MA30 AND MA5>1日前的MA5 AND 收盘价> 1日前的收盘价 AND 成交量(手)>1日前的成交量(手) AND 收盘价>MA60 AND 收盘价>MA120 AND 收盘价>MA250 AND 收盘价>1日前的150日内收盘价的最高值 AND 收盘价>UPPER AND UPPER>1日前的UPPER AND 收盘价上穿UPPER ENTERLONG赋值:DIF>0 AND DEA>0 AND DIF>DEA AND S2 AND S3 AND S4 AND MA5>MA13 AND 以收盘价计算的获利盘比例>0.9 AND MA13>MA20 AND MA20>MA30 AND MA20>1日前的MA20AND MA13>1日前的MA13 AND MA30>1日前的MA30 AND MA5>1日前的MA5 AND 收盘价> 1日前的收盘价 AND 成交量(手)>1日前的成交量(手) AND 收盘价>MA60 AND 收盘价>MA120 AND 收盘价>MA250 AND 收盘价>1日前的50日内收盘价的最高值 AND 收盘价>UPPER AND UPPER>1日前的UPPER AND 收盘价上穿UPPER AND 统计3日中满足收盘价>收盘价的5日简单移动平均的天数=3 AND 最低价<收盘价的3日简单移动平均 AND 收盘价>收盘价的5日简单移动平均 AND MA5>MA20 AND MA5>MA60 AND MA13>MA60 AND V1>成交量(手)的60日简单移动平均 AND V1>成交量(手)的5日简单移动平均 ENTERLONG1赋值:成交量(手)>MA1 AND 成交量(手)>MA2 AND 收盘价>MA13 AND 收盘价>MA20 AND 收盘价>MA30 AND 收盘价>MA60 AND 收盘价>MA120 AND 收盘价>MA250 AND A AND B1 AND DIF=30日内DIF的最高值 AND MACD=2日内MACD的最高值 AND 以收盘价计算的获利盘比例>0.9 AND S2 AND S3 AND S4 AND MA5>MA13 AND 以收盘价计算的获利盘比例>0.9 AND MA13>MA20 AND MA20>MA30 AND MA20>1日前的MA20 AND MA13>1日前的MA13 AND MA30>1日前的MA30 AND MA5>1日前的MA5 AND 收盘价>1日前的收盘价AND 成交量(手)>1日前的成交量(手) AND 收盘价>1日前的50日内收盘价的最高值 AND 收盘价>UPPER AND UPPER>1日前的UPPER AND 收盘价上穿UPPER YY2赋值:成交量(手)>成交量(手)的135日简单移动平均 YY3赋值:以收盘价计算的获利盘比例>=0.85 换手赋值:成交量(手)/当前流通股本(手)*100 A1赋值:1日前的收盘价MA120 A2赋值:收阳线ANDSE 成交量(手)>1日前的成交量(手) AND 收盘价>MA5和MA10和MA20和MA60和MA120的较大值的较大值的较大值的较大值 去除停牌赋值:振幅>0 DIF1赋值:收盘价的10日指数移动平均-收盘价的22日指数移动平均 DEA1赋值:DIF1的9日指数移动平均 MACD1赋值:(DIF1-DEA1)*2 XG赋值:A1 AND A2 AND YY2 AND YY3 AND 换手>2.7 AND MACD1>1日前的MACD AND 去除停牌 GX OR ENTERLONG OR ENTERLONG1 OR XG