{xycs小鸭出水xg}DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);小鸭出水xg:MA(C,30)>=REF(MA(C,30),1) AND DIFF<0 AND DEA<0 ANDCROSS(DIFF,DEA) AND MA(C,5)>MA(C,10) AND MA(V,5)>MA(V,34);{设计思路:1.ma30向上;2.diff,dea在零线之下;3.diff金叉dea;4.ma5大于ma10;5.量均线mav5>mav34;}---------------------------------------------------------------------{hdlyxg海底捞月选股}DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD := 2*(DIFF-DEA);v1:=DIFF<0 AND DEA<0 AND CROSS(DIFF,DEA);v2:=ma(c,5)>ma(c,10);v3:=VOL>MA(VOL,5) AND MA(VOL,5)>MA(VOL,34);v4:=MA(C,30)>=REF(MA(C,30),1);vv:=v1 AND V2 and v3 AND V4;xg选股:if(vv,1,0);{设计思路:1.30日均线走平向上;2.5日均线金叉或已金叉或即将金叉10日均线,2.diff指标线由原来在0轴以下死叉dea线变为在0轴以下金叉dea线。3.当日成交量大于5日均量线,5日均量线大于34日均量线;}----------------------------------------------------------------------{fsxs佛手向上xg}DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD := 2*(DIFF-DEA);vv:=CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) and MA(CLOSE,10)>MA(CLOSE,30)and DIFF>DEA AND MACD>REF(MACD,1) and DIFF>0 AND DEA>0 andMA(VOL,5)>MA(VOL,34) and MA(CLOSE,30)>=REF(MA(CLOSE,30),1);xg选股:if(vv,1,0);{设计思路:1.ma30向上;2.diff,dea在零线之上;3.diff线回调dea线附近时不死叉,又调头向上;4.ma5大于ma10,ma10大于ma30;5.量均线mav5>mav34;6.当日是阳线}----------------------------------------------------------------------{mbqyxg漫步青云xg}DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);v1:=DIFF>=0 and DEA>=0 and CROSS(DIFF,DEA);v2:=MA(CLOSE,5)>MA(CLOSE,10);v3:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);v4:=VOL>MA(VOL,5) and MA(VOL,5)>MA(VOL,10);vv:=v1 and v2 AND V3 AND v4;xg选股:if(vv,1,0);{设计思路:1.ma30向上;2.diff,dea在零线之上;3.diff线金叉dea线;4.ma5大于ma10;5.量均线,v>mav5,mav5>mav10;}