求大神编个通达信选股公式,能用在条件预警里就行
1、macd 0轴附近金叉(+-0.1以内)
2、至少两倍前五天均量,天量除外
3、至少突破两根均线(10日线 20日线 30日线 60日线 120日线)
4、发现以上条件时 提示买入信息 展开
选股公式:
TJ1:=CROSS(C,MA(C,10)) AND CROSS(C,MA(C,20));
TJ2:=CROSS(C,MA(C,20)) AND CROSS(C,MA(C,30));
TJ3:=CROSS(C,MA(C,30)) AND CROSS(C,MA(C,60));
TJ4:=CROSS(C,MA(C,60)) AND CROSS(C,MA(C,120));
XG:CROSS("MACD.DIF","MACD.DEA") AND RANGE("MACD.DIF",-0.1,0.1) AND V>=MA(V,5)*2 AND (TJ1 OR TJ2 OR TJ3 OR TJ4);
指标提示:
TJ1:=CROSS(C,MA(C,10)) AND CROSS(C,MA(C,20));
TJ2:=CROSS(C,MA(C,20)) AND CROSS(C,MA(C,30));
TJ3:=CROSS(C,MA(C,30)) AND CROSS(C,MA(C,60));
TJ4:=CROSS(C,MA(C,60)) AND CROSS(C,MA(C,120));
XG:=CROSS("MACD.DIF","MACD.DEA") AND RANGE("MACD.DIF",-0.1,0.1) AND V>=MA(V,5)*2 AND (TJ1 OR TJ2 OR TJ3 OR TJ4);
DRAWICON(XG,L*0.98,1);
今天中午选出一只002446
麻烦您能不能把这个公式再修改一下,改成macd即将金叉, 或者正好金叉?
macd即将金叉:
TJ1:=CROSS(C,MA(C,10)) AND CROSS(C,MA(C,20));
TJ2:=CROSS(C,MA(C,20)) AND CROSS(C,MA(C,30));
TJ3:=CROSS(C,MA(C,30)) AND CROSS(C,MA(C,60));
TJ4:=CROSS(C,MA(C,60)) AND CROSS(C,MA(C,120));
QQ:="MACD.DIF";PP:="MACD.DEA";
XG:QQREF(QQ,1) AND RANGE("MACD.DIF",-0.1,0.1)
AND V>=MA(V,5)*2 AND (TJ1 OR TJ2 OR TJ3 OR TJ4);
T2:=V>=REF(MA(V,5),1)*2;
T31:=IF(CROSS(C,MA(C,10)),1,0);
T32:=IF(CROSS(C,MA(C,20)),1,0);
T33:=IF(CROSS(C,MA(C,20)),1,0);
T34:=IF(CROSS(C,MA(C,20)),1,0);
XG:T1 AND T2 AND (T31+T32+T33+T34)>=2;
{请检查一下是否符条件,如有问题请追问,顺便说一下第一个条件有点苛刻了,如果不用它效果可能会更好些,还有一个问题你所指的天量是多少?这个问题我没加进去}