var1:=sma(amount,10,1)/10000;var2:=ref(var1,1);var3:=sma(amount,10,1)/10000;运: stickline(var1>var2,var1,var2,2.5,0),colorred;资失: stickline(var1< var2,var1,var2,2.5,0),colorgreen;a:=c/ref(c,1)>=1.098 and c>ma(c,10);a1:=barslast(a)<10;a2:=c>ma(c,20) and l<ma(c,16);xg:a1 and a2,nodraw;drawicon(xg,llv(var2,5)*0.95,1); 20210311
{hbxg-}ezt:=(high>=ztprice(ref(close,1),0.1));ezto:=ex**t(ezt,50); 回档:=ema(ema(ema(high,5),5),5)*1.05;xg:=cross(c,回档);hbxg:ezto and xg and c>ref(c,1)*1.03;通过测试,效果不错。{个人看法。仅供参考。}
2个预警指标同时满足时候预警如下:-----------lc:=ref(c,1); 涨停:=if(lc*1.1-c<0.01,1,0);hh:=count(涨停,13)>=1;震仓线:=45;操作线:=sma(max(c-lc,0),2,1)/sma(abs(c-lc),2,1)*100;pp:=操作线<震仓线 and ref(操作线,1)>震仓线;a:=sma(l,4,3...
将三个公式合并为一个选股公式: short:=12;long:=26;m:=9;diff:=ema(close,short)-ema(close,long);dea:=ema(diff,m);macd:=2*(diff-dea);底背离:=llv(l,n)=l and not(llv(macd,n)=macd);底背离 and macd(macd,1)and count(c/ref(c,1)>...
wr1:100*(hhv(h,10)-c)/(hhv(h,10)-llv(l,10));wr2:100*(hhv(h,6)-c)/(hhv(h,6)-llv(l,6));xg: wr1=wr2 and wr1>=80;这就可以了,不过貌似会选出很多的票哦,没有实战功能。轻松学会用通达信软件编写公式和指标5, 选股公式,指标,主副图之间任意转换。自己写的,请多多捧场。
第一个公式源码:**空间:=if(winner(close),winner(close)*100,20);**空间<-70;------------------------------------------------------第二个公式源码:ac:=last(c>ref(c,1),4,1) and c<ref(c,1);{价格条件}bv:=last(vol>ref(v...
tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),7);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),7);dmm:=sum(if(ld>0 and ld>hd,ld,0),7);d...
a:=between(close,3,8);b:=finance(55)>1;eps:=(finance(33)-ref(finance(33),1))/(finance(33),1)>1;tcst:=if(inblock('st板块'),1,0)=0;xuangu:a and b and eps and tcst;已经通过测试。