跪求高手帮忙编写通达信的选股公式及预警公式 下面2个条件组合一个:
发布网友
发布时间:2022-06-05 12:18
我来回答
共2个回答
热心网友
时间:2023-11-20 02:29
PN1:=DYNAINFO(8)>0;PN2:=DYNAINFO(17)>0;PN3:=DYNAINFO(22)>0;PN4:=DYNAINFO(23)>0;ST:=IF(NAMELIKE('ST')=1,0,IF(NAMELIKE('S
ST')=1,0,IF(NAMELIKE('*ST')=1,0,1)));
去除:=
PN1*PN2*PN3*PN4*ST;
{只选非ST类和当天非
停牌
的股------用于配合选股公式};
LC:=REF(CLOSE,1);SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1
<
REF(X1,1))
AND
(CLOSE
<
X1));X31:=IF(((SG
<
REF(SG,1))
OR
X30),1,0);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORRED,LINETHICK2;
震仓
线:=45,COLORMAGENTA;抄底线:=20,COLORGREEN;PP:=操作线<震仓线
AND
REF(操作线,1)>震仓线
;PP3:=操作线<抄底线
AND
REF(操作线,1)>抄底线;抓牛:=(((((COUNT((X31
=
1),4)
=
3)
AND
(X31
=
0))AND
O
0.085))*89)
>=89)OR((C-REF(C,1))/REF(C,1)>0.085
AND
(REF(PP3,1)
OR
REF(PP,1)))
;去除*抓牛;
热心网友
时间:2023-11-20 02:30
aa05:=ma(c,5);
mm5:=(c-aa05)/aa05*100;
bb05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;
nn5:=sma(ema((aa05-ref(aa05,1))/ref(aa05,1),3)*100,3,1);
nnnn5:=ema((nn5-ref(nn5,1)),3),linethick0;
aa10:=ma(c,10);
aa20:=ma(c,20);
bb10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;
aa30:=ma(c,30);
mm30:=(c-aa30)/aa30*100;
var1:=(aa20-aa30)>ref((aa20-aa30),1)
and
aa20>ref(aa20,1)
and
aa30>ref(aa30,1);
var2:=(aa30-aa20)
30
and
bb10>45
and
cross(bb05,60),10);
加仓:=filter(count(cross(bb05,30),5)>=1
and
aa05>ref(aa05,1)
and
mm30>ref(mm30,1)
and
aa10>ref(aa10,1)
and
nnnn5>ref(nn5,1)
and
nn5>ref(nn5,1)
,10)
;
mr:=count(cross(mm30,0),3)>=1
and
mm30>ref(mm30,1)
and
aa05>ref(aa05,1)
and
(c/ref(c,1)-1)*100>5
and
ref(c,1)
0;pn2:=dynainfo(17)>0;pn3:=dynainfo(22)>0;pn4:=dynainfo(23)>0;st:=if(namelike('st')=1,0,if(namelike('s
st')=1,0,if(namelike('*st')=1,0,1)));
去除:=pn1*pn2*pn3*pn4*st;
{只选非st类和当天非停牌的股------用于配合选股公式};xg:aaa
and
去除;
(已测试)