改编选股公式问答
★如何把这个二次金叉改成大智慧的选股公式?这是通达信的,放在大智慧2里会出现LINE1,希望帮忙解决。
─━→答:
二次金叉
MA1:=MA(CLOSE,5),COLORRED;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;
FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);
FH5:=FH1 AND FH2 AND FH3 AND FH4;
FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;
FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;
REF(EVERY(C<MA1,2),1) AND CROSS(C,MA1) AND ( FH5 OR FH6 OR FH7);
★如何选出今日DMI中ADX值大于昨日并且ADX大于或等于80的股票(能用于副图表示并盘中预警)先表示感谢!
─━→答
"DMI.ADX">=80 and "DMI.ADX">ref("DMI.ADX",1);
★哪个老师能帮助我写个30分钟大资金活动的选股?公式源码如下
Var3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
Var4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
Var5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
Var6:=(Var3+Var4+Var5)/3;
Var7:=EMA(Var6,5);
指标: EMA(EMA(Var3,5),5)*3, COLORSTICK;
Var8:=IF(Var6<=-20,10,0);
Var9:=HHV(Var8,10);
STICKLINE(Var8=10,20,10,5,0),COLOR6666FF;
VarA:=IF(Var9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:EMA(Var7,5)*2, COLORff00ff;
D:EMA(K,5), COLORWHITE;
J:K*3-D*2, COLORYELLOW;
VarB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
换手: VOL/CAPITAL*100, COLORGREEN;
成交〖万手〗: VOL/10000, COLORYELLOW;
DRAWTEXT(Var8=10 AND FILTER(Var8=10,5),-10{15},'接近底部'),linethick1,COLORYELLOW;
STICKLINE(Var8=10 AND FILTER(Var8=10,5),-1.6{20},-10,5,0),coloryellow;
DRAWTEXT(VarA=20,15,'底部'),linethick1,colorwhite;
STICKLINE((VarA=20),0,10,5,0),colorwhite;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((VARC=1),(-14),0,4,0),Color0000FF;
DRAWTEXT((VARC=1),(-14),'买'),Color0000FF;
STICKLINE((VARD=1),14,0,4,0),Color00FF00;
DRAWTEXT((VARD=1),18,'卖'),Color00FF00;
VarE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var11:=VarF<REF(Var10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(Var11 AND COUNT(Var11,30)=1,15,'大资金活动'),linethick1,COLORff00ff;
STICKLINE(Var11 AND COUNT(Var11,30)=1,1,10,5,0),colorff00ff;
Var12:=(HIGH+LOW+CLOSE)/3;
Var13:=(Var12-MA(Var12,14))/(0.015*AVEDEV(Var12,14));
Var14:=(Var12-MA(Var12,70))/(0.015*AVEDEV(Var12,70));
Var15:=IF(Var13>=150 AND Var13<200 AND Var14>=150 AND Var14<200,10,0);
Var16:=IF(Var13<=-150 AND Var13>-200 AND Var14<=-150 AND Var14>-200,-10,Var15);
Var17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
Var18:=100-ABS(Var17);
Var19:=IF(Var18<90,Var18,100);
Var1A:=IF(VarE>0,VarE,0);
Var1B:=IF(Var14>=200 AND Var13>=150,15,IF(Var14<=-200 AND Var13<=-150,-15,Var16))+60;
Var1C:=Var1A>48 AND Var1B>60 AND Var19<100;
DRAWTEXT(Var1C AND COUNT(Var1C,30)=1,15,'大笔出货'),linethick1,COLORffcc66;
STICKLINE(Var1C AND COUNT(Var1C,30)=1,0,10,5,0),colorffcc66;
希望哪个老师能帮助从上面公式中的大资金活动写成30分钟的选股谢谢
─━→答
VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var11:=VarF<REF(Var10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
大资金活动:Var11 AND COUNT(Var11,30)=1;
★请高手编一个涨幅大于0小于4,流通盘小于5个亿的选股公式,DDX为正数的 ,能和通达信通用的公式.多谢
─━→答
DYNAIN (C/REF(C,1)-1)*100>=0;{涨幅大于}
FO(28)<15 and CAPITAL<5000000;{5亿流通}
(C-REF(C,1))/REF(C,1)*100<4;{涨幅小于};
这是三个组合条件
这是你要的公式c/ref(c,1)>1.00 and c/ref(c,1)<1.04 and c<40 and capital <5000000;
★老师帮忙写一个cci上穿-200和上穿-100的选股公式 谢谢
─━→答1
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
上穿负200:CROSS(CCI,-200);
─━→答2
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
上穿负100D:CROSS(CCI,-100);
★很久没在论坛送公式了,今日欢乐在为大家献上简单理论公式。上周五大盘macd二次泛红,所以今日高走是理所当然的,在今日众多候选中,欢乐看好0006959(滨海能源),仅供参考!
DB1:=LLV(L,14)=L AND NOT(LLV(CCI,14)=CCI);
DB2:=LAST(MA(C,5)<MA(C,10),6,0) AND "CCI.CCI">REF("CCI.CCI",1) ;
TJ1:=COUNT(DB1,10) AND CROSS("CCI.CCI",-100);
TJ2:=COUNT(DB2,10) AND CROSS("CCI.CCI",-100);
TJ3:=CROSS("DMI.PDI","DMI.MDI") AND CROSS("DMI.PDI","DMI.ADX") AND CROSS("DMI.PDI","DMI.ADXR") AND C>REF(C,1)*1.03 AND VOL>REF(VOL,1);
TJ4:=TJ1 OR TJ2 OR TJ3;
TJ5:=CROSS("KDJ.J",0);
XG:TJ4 AND COUNT(TJ5,3)=1;
公式剖析:
1、cci与k线的两种背离,在cci产生背离10天内cci上穿0。
2、dmi最佳买点。
3、kdj上穿0柱(这里没使用60日趋势向上)
4、综合以上3点作选股。
★请老师写2选股指标 谢谢!
1.当日成交量是昨日成交量的缩量3倍以下(即昨日成交量是9 今日成交量是3以下)
2.当日成交量是10日成交量平均的3倍以下(即10日平均量是9 今日成交量是3以下)
─━→答
v<ref(v,1)/3;
v<ma(v,10)/3;
★如何在选股公式中加入指定时间段选股
─━→答
XG:if(TIME>=100000 and TIME<105959,你的选股,0);一发千钧
★如何把大智慧公式改成通达信的
─━→答
把:EVERY 函数换成 ALL 就可以了。一发千钧
★这是一个十日均线斜率的公式,它的计算结果是角度,要求多大,请你根据需要在后面加上大于多少,比如大于45度:>45
─━→答
十是均线:=MA(C,10);
均线斜率:ATAN((A/REF(A,1)-1)*100)*57.3;
★两线间的距离怎 |