应要求转发通达信每日解盘公式,公式能对大盘趋势;长短线进出;kdj.macd.rsi.dmi.cci.圆底的底顶背离;成交量能;短线是银买点等进行每天自动测算列出。
源码:
{n:5,30,8;zf:1,10,5;m:1.100.3;}
v1:=ma(v,5);
ma5:=ma(close,5);
ma10:=ma(close,10);
ma13:=ma(close,13);
ma20:=ma(close,20);
ma40:=ma(close,40);
ma60:=ma(close,60);
ma75:=ma(close,75);
lc:=ref(c,1);
k9:=sma((c-llv(l,9))/(hhv(h,9)-llv(l,9))*100,3,1);
stickline(1=1,11,-1,4,0),color444444;
stickline(c<=ma(c,13) and ma(c,13)<=ref(ma(c,13),1),11,-1,4,0),color663300;
stickline(c>=ma(c,13) and ma(c,13)>=ref(ma(c,13),1),11,-1,4,0),color000055;
d9:=sma(k9,3,1);
j9:=3*k9-2*d9;
kk:k9*0.1;
jj:j9*0.1;
var1:=dynainfo(17)*ref(ma(v,5),1);
var2:=dynainfo(7)=c and dynainfo(10)=amount;
var3:=if(dynainfo(7)=c and dynainfo(10)=amount,var1,var2);
var4:=barslast(cross(ma5,ma60));
var5:=barslast(cross(ma10,ma60));
var6:=barslast(high=hhv(high,var5));
var7:=barslast(cross(ma10,ma5));
var8:=barslast(cross(ma5,ma10));
var9:=var4>var5 and var5>var6 and var6>var7 and var7>var8 and var8<5;
vara:=count(cross(ma10,ma5),var5)=1;
预量:=if(v>=var3 and period=5,v,var3);
比:=预量/v;
买盘:=dynainfo(23)*比;
卖盘:=dynainfo(22)*比;
压力1:=ma(c,26)+2*std(c,26);
yyy:=ema((indexc-llv(indexl,11))/(hhv(indexh,25)-llv(indexl,11))*4,8)+1;
yy:=pow(yyy,2)-10;
xxx:=ema((c-llv(l,11))/(hhv(h,25)-llv(l,11))*4,8)+1;
xx:=if(1=1,pow(xxx,2)-10,drawnull);
cci背:=if(llv(cci,2)>llv(cci,7) and llv(l,2)<=llv(l,7) and hhv(h,10)>ma(close,60),1,0),colorwhite;
tw:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
hd:=high-ref(high,1);
ld:=ref(low,1)-low;
pdm:=sum(if(hd>0 and hd>ld,hd,0),14);
mdm:=sum(if(ld>0 and ld>hd,ld,0),14);
pdi:=pdm*100/tw;
mdi:=mdm*100/tw;
a1:=barslast(ref(cross("macd.dif"(12,26,9),"macd.dea"(12,26,9)),1));
b1:=ref(c,a1+1)>c && ref("macd.dif"(12,26,9),a1+1)<"macd.dif"(12,26,9) && cross("macd.dif"(12,26,9),"macd.dea"(12,26,9));
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross ("kdj.k"(9,3,3),"kdj.d"(9,3,3));
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
c1:=barslast(ref(cross("macd.dea"(12,26,9),"macd.dif"(12,26,9)),1));
d1:=ref(c,c1+1)<c and ref("macd.dif"(12,26,9),c1+1)>"macd.dif"(12,26,9) and cross("macd.dea"(12,26,9),"macd.dif"(12,26,9));
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross ("kdj.d"(9,3,3),"kdj.k"(9,3,3));
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross ("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
c4:=barslast(ref(cross(mdi,pdi),1));
d4:=ref(c,c4+1)<c and ref(mdi,c4+1)>mdi and cross(mdi,pdi);
a4:=barslast(ref(cross(pdi,mdi),1));
b4:=ref(c,a4+1)>c and ref(pdi,a4+1)<pdi and cross(pdi,mdi);
pday1:=barslast(cross(ma60,ma5));
pday2:=barslast(cross(ma60,ma10));
pday3:=barslast(low=llv(low,pday2));
pday4:=barslast(cross(ma5,ma10));
pday5:=barslast(cross(ma10,ma5));
a11:=pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;
a12:=count(cross(ma10,ma5),pday2)=1;
a13:=open<ma20 or open<ma40 or open<ma60;
a14:=c>max(ma20,max(ma40,ma60));
a15:=v/ma(v,30)>1.2;
a16:=c/ref(c,1)>1.049;
a17:=min(ma(c,5),ma(c,10))>ma(c,60) and cross(ma(c,5),ma(c,10));
a18:=min(ma(c,5),ma(c,10))/ma(c,60)<1.05;
a19:=count(v<ma(v,10),10)>6;
a20:=(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100;
a21:=sma(sma(a20,3,1),3,1)/28.57;
a22:=ema(a21,5);
a23:=3*a21-2*a22;
a24:=(low+high+close*2)/4;
a25:=ma(a24,4);
a26:=hhv(a25,10);
a27:=ma(a26,3);
a28:=1.25*a27-0.25*a26;
a29:=if(a28>a26,a26,a28);
a30:=llv(a25,10);
a31:=ma(a30,3);
a32:=1.25*a31-0.25*a30;
a33:=if(a32<a30,a30,a32);
a34:=cross(c,a33) and cross(c,ma13) and cross(c,a29);
a35:=cross(c,ma13) and cross(c,a29);
n3:=9;
n4:=6;
n5:=14;
typ := (high + low + close)/3;
cc1:=(typ-ma(typ,n5))/(0.015*avedev(typ,n5)),colorff00ff;
c11:=sma(cc1,3,1);
c12:=sma(c11,3,1);
c13:=3*c11-2*c12;
cb1:=ema(c13,5);
rsi1:=sma(max(close-lc,0),n4,1)/sma(abs(close-lc),n4,1)*100;
rsi:=(rsi1-50)*5,linethick2,colorffffff;
r1:=sma(rsi,3,1);
d11:=sma(r1,3,1);
j1:=3*r1-2*d11;
rr1:=ema(j1,5);
rr2:=ref(rr1,1);
rr:=rr1>rr2;
rsv:=(close-llv(low,n3))/(hhv(high,n3)-llv(low,n3))*100;
k:=sma(rsv,3,1);
k1:=(k-50)*5,color00ff00;
k2:=sma(k1,3,1);
d12:=sma(k2,3,1);
j2:=3*k2-2*d12;
bb1:=ema(j2,5);
买入:=rr and not(ref(rr,1)) and (rr1<-100 and bb1<-100) and cb1<-100,linethick0;
drawtext(const(if(c>=ma(c,10) and ma(c,10)>ref(ma(c,10),1) and ma(c,20)>ref(ma(c,20),1) and ma(c,40)>ref(ma(c,40),1) and ma(c,10)>ref(ma(c,20),1),1,0)) and currbarscount=42,-2,27),color0033ff;
drawtext(const(if(c<=ma(c,10) and ma(c,10)<ref(ma(c,10),1) and ma(c,20)<ref(ma(c,20),1)and ma(c,40)<ref(ma(c,40),1) and ma(c,10)<ref(ma(c,20),1),1,0)) and currbarscount=42,-2,28),colorffffff;
drawtext(const(if(预量=llv(预量,10),1,0)) and currbarscount=42,-3,29),color00ff00;
drawtext(const(if(预量=llv(预量,10) and j9<70,1,0)) and currbarscount=42,-3,30),color00ff00;
drawtext(const(if(c<lc*0.96 and c<ma(c,5) and 买盘>卖盘*1.15 and 预量>ref (预量,1) and 预量>v1,1,0)) and currbarscount=42,-4,31),color00cccc;
drawtext(const(if(c<lc and ma(c,5)<ref(ma(c,5),1) and c<ma(c,5) and c<ma(c,10) and ma(c,10)>ref(ma(c,10),1) and ref(ma(c,5),1)>=ref(ma(c,5),2),1,0)) and currbarscount=42,-4,32),color00ff00;
drawtext(const(if(llv(j9,5)<-15 and c=llv(c,10) and c<l*1.016 and c<ma(c,10)*0.96,1,0)) and currbarscount=42,-4,33),color00ff00;
drawtext(const(if(c<lc and ma(c,5)<ref(ma(c,5),1) and ma(c,10)<=ref(ma(c,10),1) and 买盘<卖盘 and c<ma(c,5) and c<ma(c,10) and 预量>llv(预量,10),1,0)) and currbarscount=42,-5,34),colorffff00;
drawtext(((v>ref(v,1)*3 and hhv(ref(h,1),15)>llv(ref(l,1),15)*1.18 and hhv(h,5)>llv(l,70)*1.3 and hhv(h,40)>llv(l,40)*1.3 and j9>90) or xx>12) and c>压力1 and c<lc*1.0985 and currbarscount=42,-5,35),color00ff00;
drawtext(const(if((c>ma(c,5) and ma(c,5)>=ref(ma(c,5),1) and ma(c,10)>=ref(ma(c,10),1) and ma(c,5)>=ma(c,10)) or (xx>ref(xx,1) and xx>yy and c>lc),1,0)) and currbarscount=25,-6,36),colorff44ff;
drawtext(const(if(c<ma(c,5) and c<ma(c,10) and (ma(c,5)<ref(ma(c,5),1) or ma(c,10)<ref(ma(c,10),1) or ma(c,5)<ma(c,10) or c<lc),1,0)) and currbarscount=25,-6,37),color00ff00;
drawtext(const(if((c>ma(c,5) and c<ma(c,10)) or (c<=ma(c,5) and (c>=ma(c,10) or ma(c,10)>=ref(ma(c,10),1))),1,0)) and c<lc and currbarscount=25,-5,38),colorff77cc;
drawtext((const(if(close>=ma(close,13),1,0))) and currbarscount=25,-2,39),colorgreen;
drawtext((const(if(close<ma(close,13) and c<ma(close,5),1,0))) and currbarscount=25,-3,40),colorgreen;
drawtext((const(if(cross(ma(close,13),close),1,0))) and currbarscount=25,-4,41),colorgreen;
drawtext((const(if(c>=ma75,1,0))) and currbarscount=32,-2,42),colorgreen;
drawtext((const(if(c<ma75,1,0))) and currbarscount=32,-3,43),colorgreen;
drawtext((const(if((close>ma(close,3) and close<ma(close,13) and count(c<ma13,20)>=15),1,0))) and currbarscount=25,-4,44),colorgreen;
drawtext((const(if(cross(close,ma13),1,0))) and currbarscount=25,-5,45),colorgreen;
drawtext(b1,jj-1,46),colorff44ff;
drawtext(b2,jj-3,47),colorff44ff;
drawtext(b3,jj-2,48),colorff44ff;
drawtext(b4,jj-1,49),colorff44ff;
drawtext(d1,jj+1,50),colorgreen;
drawtext(d2,jj+3,51),colorgreen;
drawtext(d3,jj+2,52),colorgreen;
drawtext(d4,jj+1,53),colorgreen;
drawtext(cross(ma(c,13),ma(c,21)),jj-1,54),colorff44ff;
drawtext(cci背 and ref(cci,1)<-150and c>o,jj-1,55),colorgreen;
drawtext(a11 and a12 and currbarscount=32,-7,56),colorgreen;
drawtext((var9 and varaand ma60>ref(ma60,1) and currbarscount=32),-5,57),colorgreen;
drawtext(a17 and a18 and a19 and currbarscount=32,-6,58),colorgreen;
drawtext(cross(a23,a21) and a21<2.1 and c>o and currbarscount=32,-7,59),colorgreen;
drawtext((a34 or a35) and currbarscount=32,-5,60),colorgreen;
drawtext(a13 and a14 and a15 and a16 and currbarscount=32,-6,61),colorgreen;
drawtext(买入 and jj<8 and ref(cci,1)<-120and c>o and const(if(c>=ma75,1,0)),-1,62);
drawtext(买入,0.2,63);
上一指标公式:在K线中直接画美观的获利盘筹码分布区域TDX指标下载 通达信吐血美观
下一指标公式:量能选股优化TDX指标下载 通达信选股优化
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文应要求转发每日解盘TDX副图指标下载 通达信转发源码仅供学习研究。