好公式网用指标公式为投资注入科技力量!
您的位置:好公式网通达信公式TD组合主图详解 通达信TD主图

TD组合主图详解 通达信TD主图

  • 指标公式类型:通达信公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-03-15 09:28:13
  • 指标公式标签:TD 组合
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:TD组合主图详解 通达信TD主图

td组合

年月日:=10000*(2023-1900)+100*10+5;

真实最低价:=min(low,ref(close,1));

真实最高价:=max(high,ref(close,1));

真实波幅:=max(max(abs(high-ref(close,1)),abs(ref(close,1)-low)),abs(high-low));

买入结构首根:=if(date<=年月日,ref(close,1)>=ref(close,5) and close<ref(close,4),0);

卖出结构首根:=if(date<=年月日,ref(close,1)<=ref(close,5) and close>ref(close,4),0);

tt:=const(barslastcount(close<ref(close,4)));

b0:=if(date<=年月日,if(currbarscount<=tt,currbarscount=tt,买入结构首根=1 and barsnext(close>=ref(close,4))>=9),0);

b1:=if(date<=年月日,if(currbarscount<=tt,currbarscount=1,barslastcount(close<ref(close,4))>=9 and barsnext(close>=ref(close,4))=1),0);

ttt:=const(barslastcount(close>ref(close,4)));

s0:=if(date<=年月日,if(currbarscount<=ttt,currbarscount=ttt,卖出结构首根=1 and barsnext(close<=ref(close,4))>=9),0);

s1:=if(date<=年月日,if(currbarscount<=ttt,currbarscount=1,barslastcount(close>ref(close,4))>=9 and barsnext(close<=ref(close,4))=1),0);

tdxstep418:drawnumber(currbarscount<=tt,low*0.995,tt+1-currbarscount),color00c0c0;

tdxstep419:drawnumber(currbarscount>tt and barslastcount(close<ref(close,4))=barslast(b0=1)+1,low*0.995,barslast(b0=1)+1),color00c0c0;

tdxstep420:drawnumber(currbarscount<=ttt,low*0.995,ttt+1-currbarscount),color00c0c0;

tdxstep421:drawnumber(currbarscount>ttt and barslastcount(close>ref(close,4))=barslast(s0=1)+1,low*0.995,barslast(s0=1)+1),color00c0c0;

tdst支撑2:=ref(llv(真实最低价,barslast(s0)-barslast(s1)+1),barslast(s1));

tdst阻力2:=ref(hhv(真实最高价,barslast(b0)-barslast(b1)+1),barslast(b1));

tdst支撑:if(currbarscount=1,if(s1=1 and ttt<9,ref(tdst支撑2,1),tdst支撑2),tdst支撑2),nodraw,color00c0c0;

tdst阻力:if(currbarscount=1,if(b1=1 and tt<9,ref(tdst阻力2,1),tdst阻力2),tdst阻力2),nodraw,color00c0c0;

tt6:=if(exist(b0=1,barscount(close)+1),barslastcount(close<ref(close,4))=barslast(b0=1)+1 and barslast(b0=1)=5,0);

ttt6:=if(exist(s0=1,barscount(close)+1),barslastcount(close>ref(close,4))=barslast(s0=1)+1 and barslast(s0=1)=5,0);

b6:=if(currbarscount>tt,tt6,if(tt>=7,const(barssincen(买入结构首根=1,tt))+2-currbarscount=6,0));

s6:=if(currbarscount>ttt,ttt6,if(ttt>=7,const(barssincen(卖出结构首根=1,ttt))+2-currbarscount=6,0));

bl:=min(ref(low,barslast(b6)),if(b6,refx(low,1),ref(low,barslast(b6)-1)));

sh:=max(ref(high,barslast(s6)),if(s6,refx(high,1),ref(high,barslast(s6)-1)));

b9:=if(date<=年月日,barslastcount(close<ref(close,4))=9,0);

s9:=if(date<=年月日,barslastcount(close>ref(close,4))=9,0);

b:=if(exist(b9=1,barscount(close)+1),if(b9=1,count(low<=bl,2)>=1,count(low<=ref(bl,barslast(b9)),barslast(b9)+1)=1 and ref(low,barslast(b9)+1)>ref(bl,barslast(b9)) and low<=ref(bl,barslast(b9))),0);

s:=if(exist(s9=1,barscount(close)+1),if(s9=1,count(high>=sh,2)>=1,count(high>=ref(sh,barslast(s9)),barslast(s9)+1)=1 and ref(high,barslast(s9)+1)<ref(sh,barslast(s9)) and high>=ref(sh,barslast(s9))),0);

notext5:if(tt=6 and currbarscount=1,drawnull,if(barslastcount(close<ref(close,4))>=6 and barslast(b0)+1=barslastcount(close<ref(close,4)),bl,drawnull)),dotline,colorred;

notext6:if(ttt=6 and currbarscount=1,drawnull,if(barslastcount(close>ref(close,4))>=6 and barslast(s0)+1=barslastcount(close>ref(close,4)),sh,drawnull)),dotline,colorred;

bn1:=barsnext(b1=1);

sn1:=barsnext(s1=1);

tdxstep422:drawicon(b,low*0.97,7);

tdxstep423:drawicon(s,high*1.01,8);

h1:=refx(hhv(真实最高价,barslastcount(close<ref(close,4))),bn1);

l1:=refx(llv(真实最低价,barslastcount(close<ref(close,4))),bn1);

实际最高价b:=if(exist(b0=1,barscount(close)+1),if(exist(b1=1,barscount(close)+1),if(barslast(b1)>barslast(b0),h1,ref(hhv(真实最高价,barslastcount(close<ref(close,4))),barslast(b1))),h1),0);

实际最低价b:=if(exist(b0=1,barscount(close)+1),if(exist(b1=1,barscount(close)+1),if(barslast(b1)>barslast(b0),l1,ref(llv(真实最低价,barslastcount(close<ref(close,4))),barslast(b1))),l1),0);

真实波幅b:=实际最高价b-实际最低价b;

b10:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=1 and b0=1,count(b0=1,(-1))=1 and b0=1),0),0);

b20:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=2 and b0=1,count(b0=1,(-1))=2 and b0=1),0),0);

b30:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=3 and b0=1,count(b0=1,(-1))=3 and b0=1),0),0);

b40:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=4 and b0=1,count(b0=1,(-1))=4 and b0=1),0),0);

b50:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=5 and b0=1,count(b0=1,(-1))=5 and b0=1),0),0);

b60:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=6 and b0=1,count(b0=1,(-1))=6 and b0=1),0),0);

b70:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=7 and b0=1,count(b0=1,(-1))=7 and b0=1),0),0);

b80:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=8 and b0=1,count(b0=1,(-1))=8 and b0=1),0),0);

b90:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=9 and b0=1,count(b0=1,(-1))=9 and b0=1),0),0);

b100:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=10 and b0=1,count(b0=1,(-1))=10 and b0=1),0),0);

b110:=if(date<=年月日,if(currbarscount>=9,if(exist(s9=1,barscount(close)+1),count(b0=1,barslast(s9=1))=11 and b0=1,count(b0=1,(-1))=11 and b0=1),0),0);

tdc:=close<ref(low,2) and low<ref(low,1) and close<ref(close,1);

ptdc:=if(tdc=1,close,1000000);

p1:=1;

cy1:=if(exist(b10=1,barscount(close)+1),if(count(s9=1,barslast(b10=1))=0,if(close>ref(实际最高价b,barslast(b10=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b10=1)),1),1),0),0);

qx1a:=if(exist(b10=1,barscount(close)+1),count(s9=1,barslast(b10=1))=0,0) and if(exist(b10=1,barscount(close)+1),if(count(s9=1,barslast(b10=1))=0,count(cy1=0,barslast(b10=1)+1)=0,0),0);

qx1b:=if(exist(b20=1,barscount(close)+1),if(count(s9=1,barslast(b20=1))=0,if(ref(实际最高价b,barslast(b10=1))>=ref(实际最高价b,barslast(b20=1)) and ref(实际最低价b,barslast(b10=1))<=ref(实际最低价b,barslast(b20=1)),1,ref(真实波幅b,barslast(b10=1))>ref(真实波幅b,barslast(b20=1)) or 1.618*ref(真实波幅b,barslast(b10=1))<ref(真实波幅b,barslast(b20=1))),1),1);

qx1:=qx1a and qx1b;

bs18:=if(exist(b10=1,barscount(close)+1),if(barslast(b10=1)>=8,count(close<=ref(low,2),barslast(b10=1)-7)=8 and close<=ref(low,2) and qx1,0),0);

tbs113:=if(exist(b10=1,barscount(close)+1),if(barslast(b10=1)>=8,count(close<=ref(low,2),barslast(b10=1)-7)>=13 and close<=ref(low,2) and qx1 and low<=ref(close,barslast(bs18=1)),0),0);

bs113:=if(exist(b10=1,barscount(close)+1),count(tbs113=1,barslast(b10=1)+1)=1 and tbs113=1,0);

tdc1:=if(exist(b10=1,barscount(close)+1),if(count(tdc=1,barslast(b10=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b10=1)+1)>=2,ref(llv(ptdc,barslast(b10=1)+1),1)>close and tdc=1,0)),0);

td1:=if(qx1=1,count(tdc1=1,barslast(b10=1)+1)<=13 and tdc1=1,0);

pc1:=if(td1=1,1,0);

tdxstep424:drawnumber(td1=1,high*(1.005+0.015*pc1),count(tdc1=1,barslast(b10=1)+1)),colord9d919;

p2:=if(exist(b10=1,barscount(close)+1),if(count(s9=1,barslast(b10=1))=0,if(count(qx1=0,barslast(b10=1)+1)!=0 or count(ref(bs113,1)=1,barslast(b10=1)+1)!=0,p1,p1+1),0),0);

cy2:=if(exist(b20=1,barscount(close)+1),if(count(s9=1,barslast(b20=1))=0,if(close>ref(实际最高价b,barslast(b20=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b20=1)),1),1),0),0);

qx2a:=if(exist(b20=1,barscount(close)+1),count(s9=1,barslast(b20=1))=0,0) and if(exist(b20=1,barscount(close)+1),if(count(s9=1,barslast(b20=1))=0,count(cy2=0,barslast(b20=1)+1)=0,0),0) and if(exist(b20=1,barscount(close)+1),if(count(s9=1,barslast(b20=1))=0,count(真实最低价>ref(tdst阻力,barslast(b20=1)+1),barslast(b20=1)+1)=0,0),0);

qx2b:=if(exist(b30=1,barscount(close)+1),if(count(s9=1,barslast(b30=1))=0,if(ref(实际最高价b,barslast(b20=1))>=ref(实际最高价b,barslast(b30=1)) and ref(实际最低价b,barslast(b20=1))<=ref(实际最低价b,barslast(b30=1)),1,ref(真实波幅b,barslast(b20=1))>ref(真实波幅b,barslast(b30=1)) or 1.618*ref(真实波幅b,barslast(b20=1))<ref(真实波幅b,barslast(b30=1))),1),1);

qx2c:=if(exist(b20=1,barscount(close)+1),if(count(s9=1,barslast(b20=1))=0,if(ref(实际最高价b,barslast(b10=1))>=ref(实际最高价b,barslast(b20=1)) and ref(实际最低价b,barslast(b10=1))<=ref(实际最低价b,barslast(b20=1)),0,1.618*ref(真实波幅b,barslast(b10=1))>=ref(真实波幅b,barslast(b20=1))),0),0);

qx2:=qx2a and qx2b and qx2c;

bs28:=if(exist(b20=1,barscount(close)+1),if(barslast(b20=1)>=8,count(close<=ref(low,2),barslast(b20=1)-7)=8 and close<=ref(low,2) and qx2,0),0);

tbs213:=if(exist(b20=1,barscount(close)+1),if(barslast(b20=1)>=8,count(close<=ref(low,2),barslast(b20=1)-7)>=13 and close<=ref(low,2) and qx2 and low<=ref(close,barslast(bs28=1)),0),0);

bs213:=if(exist(b20=1,barscount(close)+1),count(tbs213=1,barslast(b20=1)+1)=1 and tbs213=1,0);

tdc2:=if(exist(b20=1,barscount(close)+1),if(count(tdc=1,barslast(b20=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b20=1)+1)>=2,ref(llv(ptdc,barslast(b20=1)+1),1)>close and tdc=1,0)),0);

td2:=if(qx2=1,count(tdc2=1,barslast(b20=1)+1)<=13 and tdc2=1,0);

pc2:=if(td2=1,pc1+1,pc1);

tdxstep425:drawnumber(td2=1,high*(1.005+0.015*pc2),count(tdc2=1,barslast(b20=1)+1)),colorff7f00;

p3:=if(exist(b20=1,barscount(close)+1),if(count(s9=1,barslast(b20=1))=0,if(count(qx2=0,barslast(b20=1)+1)!=0 or count(ref(bs213,1)=1,barslast(b20=1)+1)!=0,p2,p2+1),0),0);

cy3:=if(exist(b30=1,barscount(close)+1),if(count(s9=1,barslast(b30=1))=0,if(close>ref(实际最高价b,barslast(b30=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b30=1)),1),1),0),0);

qx3a:=if(exist(b30=1,barscount(close)+1),count(s9=1,barslast(b30=1))=0,0) and if(exist(b30=1,barscount(close)+1),if(count(s9=1,barslast(b30=1))=0,count(cy3=0,barslast(b30=1)+1)=0,0),0) and if(exist(b30=1,barscount(close)+1),if(count(s9=1,barslast(b30=1))=0,count(真实最低价>ref(tdst阻力,barslast(b30=1)+1),barslast(b30=1)+1)=0,0),0);

qx3b:=if(exist(b40=1,barscount(close)+1),if(count(s9=1,barslast(b40=1))=0,if(ref(实际最高价b,barslast(b30=1))>=ref(实际最高价b,barslast(b40=1)) and ref(实际最低价b,barslast(b30=1))<=ref(实际最低价b,barslast(b40=1)),1,ref(真实波幅b,barslast(b30=1))>ref(真实波幅b,barslast(b40=1)) or 1.618*ref(真实波幅b,barslast(b30=1))<ref(真实波幅b,barslast(b40=1))),1),1);

qx3c:=if(exist(b30=1,barscount(close)+1),if(count(s9=1,barslast(b30=1))=0,if(ref(实际最高价b,barslast(b20=1))>=ref(实际最高价b,barslast(b30=1)) and ref(实际最低价b,barslast(b20=1))<=ref(实际最低价b,barslast(b30=1)),0,1.618*ref(真实波幅b,barslast(b20=1))>=ref(真实波幅b,barslast(b30=1))),0),0);

qx3:=qx3a and qx3b and qx3c;

bs38:=if(exist(b30=1,barscount(close)+1),if(barslast(b30=1)>=8,count(close<=ref(low,2),barslast(b30=1)-7)=8 and close<=ref(low,2) and qx3,0),0);

tbs313:=if(exist(b30=1,barscount(close)+1),if(barslast(b30=1)>=8,count(close<=ref(low,2),barslast(b30=1)-7)>=13 and close<=ref(low,2) and qx3 and low<=ref(close,barslast(bs38=1)),0),0);

bs313:=if(exist(b30=1,barscount(close)+1),count(tbs313=1,barslast(b30=1)+1)=1 and tbs313=1,0);

tdc3:=if(exist(b30=1,barscount(close)+1),if(count(tdc=1,barslast(b30=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b30=1)+1)>=2,ref(llv(ptdc,barslast(b30=1)+1),1)>close and tdc=1,0)),0);

td3:=if(qx3=1,count(tdc3=1,barslast(b30=1)+1)<=13 and tdc3=1,0);

pc3:=if(td3=1,pc2+1,pc2);

tdxstep426:drawnumber(td3=1,high*(1.005+0.015*pc3),count(tdc3=1,barslast(b30=1)+1)),color00ff7f;

p4:=if(exist(b30=1,barscount(close)+1),if(count(s9=1,barslast(b30=1))=0,if(count(qx3=0,barslast(b30=1)+1)!=0 or count(ref(bs313,1)=1,barslast(b30=1)+1)!=0,p3,p3+1),0),0);

cy4:=if(exist(b40=1,barscount(close)+1),if(count(s9=1,barslast(b40=1))=0,if(close>ref(实际最高价b,barslast(b40=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b40=1)),1),1),0),0);

qx4a:=if(exist(b40=1,barscount(close)+1),count(s9=1,barslast(b40=1))=0,0) and if(exist(b40=1,barscount(close)+1),if(count(s9=1,barslast(b40=1))=0,count(cy4=0,barslast(b40=1)+1)=0,0),0) and if(exist(b40=1,barscount(close)+1),if(count(s9=1,barslast(b40=1))=0,count(真实最低价>ref(tdst阻力,barslast(b40=1)+1),barslast(b40=1)+1)=0,0),0);

qx4b:=if(exist(b50=1,barscount(close)+1),if(count(s9=1,barslast(b50=1))=0,if(ref(实际最高价b,barslast(b40=1))>=ref(实际最高价b,barslast(b50=1)) and ref(实际最低价b,barslast(b40=1))<=ref(实际最低价b,barslast(b50=1)),1,ref(真实波幅b,barslast(b40=1))>ref(真实波幅b,barslast(b50=1)) or 1.618*ref(真实波幅b,barslast(b40=1))<ref(真实波幅b,barslast(b50=1))),1),1);

qx4c:=if(exist(b40=1,barscount(close)+1),if(count(s9=1,barslast(b40=1))=0,if(ref(实际最高价b,barslast(b30=1))>=ref(实际最高价b,barslast(b40=1)) and ref(实际最低价b,barslast(b30=1))<=ref(实际最低价b,barslast(b40=1)),0,1.618*ref(真实波幅b,barslast(b30=1))>=ref(真实波幅b,barslast(b40=1))),0),0);

qx4:=qx4a and qx4b and qx4c;

bs48:=if(exist(b40=1,barscount(close)+1),if(barslast(b40=1)>=8,count(close<=ref(low,2),barslast(b40=1)-7)=8 and close<=ref(low,2) and qx4,0),0);

tbs413:=if(exist(b40=1,barscount(close)+1),if(barslast(b40=1)>=8,count(close<=ref(low,2),barslast(b40=1)-7)>=13 and close<=ref(low,2) and qx4 and low<=ref(close,barslast(bs48=1)),0),0);

bs413:=if(exist(b40=1,barscount(close)+1),count(tbs413=1,barslast(b40=1)+1)=1 and tbs413=1,0);

tdc4:=if(exist(b40=1,barscount(close)+1),if(count(tdc=1,barslast(b40=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b40=1)+1)>=2,ref(llv(ptdc,barslast(b40=1)+1),1)>close and tdc=1,0)),0);

td4:=if(qx4=1,count(tdc4=1,barslast(b40=1)+1)<=13 and tdc4=1,0);

pc4:=if(td4=1,pc3+1,pc3);

tdxstep427:drawnumber(td4=1,high*(1.005+0.015*pc4),count(tdc4=1,barslast(b40=1)+1)),color9932cd;

p5:=if(exist(b40=1,barscount(close)+1),if(count(s9=1,barslast(b40=1))=0,if(count(qx4=0,barslast(b40=1)+1)!=0 or count(ref(bs413,1)=1,barslast(b40=1)+1)!=0,p4,p4+1),0),0);

cy5:=if(exist(b50=1,barscount(close)+1),if(count(s9=1,barslast(b50=1))=0,if(close>ref(实际最高价b,barslast(b50=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b50=1)),1),1),0),0);

qx5a:=if(exist(b50=1,barscount(close)+1),count(s9=1,barslast(b50=1))=0,0) and if(exist(b50=1,barscount(close)+1),if(count(s9=1,barslast(b50=1))=0,count(cy5=0,barslast(b50=1)+1)=0,0),0) and if(exist(b50=1,barscount(close)+1),if(count(s9=1,barslast(b50=1))=0,count(真实最低价>ref(tdst阻力,barslast(b50=1)+1),barslast(b50=1)+1)=0,0),0);

qx5b:=if(exist(b60=1,barscount(close)+1),if(count(s9=1,barslast(b60=1))=0,if(ref(实际最高价b,barslast(b50=1))>=ref(实际最高价b,barslast(b60=1)) and ref(实际最低价b,barslast(b50=1))<=ref(实际最低价b,barslast(b60=1)),1,ref(真实波幅b,barslast(b50=1))>ref(真实波幅b,barslast(b60=1)) or 1.618*ref(真实波幅b,barslast(b50=1))<ref(真实波幅b,barslast(b60=1))),1),1);

qx5c:=if(exist(b50=1,barscount(close)+1),if(count(s9=1,barslast(b50=1))=0,if(ref(实际最高价b,barslast(b40=1))>=ref(实际最高价b,barslast(b50=1)) and ref(实际最低价b,barslast(b40=1))<=ref(实际最低价b,barslast(b50=1)),0,1.618*ref(真实波幅b,barslast(b40=1))>=ref(真实波幅b,barslast(b50=1))),0),0);

qx5:=qx5a and qx5b and qx5c;

bs58:=if(exist(b50=1,barscount(close)+1),if(barslast(b50=1)>=8,count(close<=ref(low,2),barslast(b50=1)-7)=8 and close<=ref(low,2) and qx5,0),0);

tbs513:=if(exist(b50=1,barscount(close)+1),if(barslast(b50=1)>=8,count(close<=ref(low,2),barslast(b50=1)-7)>=13 and close<=ref(low,2) and qx5 and low<=ref(close,barslast(bs58=1)),0),0);

bs513:=if(exist(b50=1,barscount(close)+1),count(tbs513=1,barslast(b50=1)+1)=1 and tbs513=1,0);

tdc5:=if(exist(b50=1,barscount(close)+1),if(count(tdc=1,barslast(b50=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b50=1)+1)>=2,ref(llv(ptdc,barslast(b50=1)+1),1)>close and tdc=1,0)),0);

td5:=if(qx5=1,count(tdc5=1,barslast(b50=1)+1)<=13 and tdc5=1,0);

pc5:=if(td5=1,pc4+1,pc4);

tdxstep428:drawnumber(td5=1,high*(1.005+0.015*pc5),count(tdc5=1,barslast(b50=1)+1)),colorff6ec7;

p6:=if(exist(b50=1,barscount(close)+1),if(count(s9=1,barslast(b50=1))=0,if(count(qx5=0,barslast(b50=1)+1)!=0 or count(ref(bs513,1)=1,barslast(b50=1)+1)!=0,p5,p5+1),0),0);

cy6:=if(exist(b60=1,barscount(close)+1),if(count(s9=1,barslast(b60=1))=0,if(close>ref(实际最高价b,barslast(b60=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b60=1)),1),1),0),0);

qx6a:=if(exist(b60=1,barscount(close)+1),count(s9=1,barslast(b60=1))=0,0) and if(exist(b60=1,barscount(close)+1),if(count(s9=1,barslast(b60=1))=0,count(cy6=0,barslast(b60=1)+1)=0,0),0) and if(exist(b60=1,barscount(close)+1),if(count(s9=1,barslast(b60=1))=0,count(真实最低价>ref(tdst阻力,barslast(b60=1)+1),barslast(b60=1)+1)=0,0),0);

qx6b:=if(exist(b70=1,barscount(close)+1),if(count(s9=1,barslast(b70=1))=0,if(ref(实际最高价b,barslast(b60=1))>=ref(实际最高价b,barslast(b70=1)) and ref(实际最低价b,barslast(b60=1))<=ref(实际最低价b,barslast(b70=1)),1,ref(真实波幅b,barslast(b60=1))>ref(真实波幅b,barslast(b70=1)) or 1.618*ref(真实波幅b,barslast(b60=1))<ref(真实波幅b,barslast(b70=1))),1),1);

qx6c:=if(exist(b60=1,barscount(close)+1),if(count(s9=1,barslast(b60=1))=0,if(ref(实际最高价b,barslast(b50=1))>=ref(实际最高价b,barslast(b60=1)) and ref(实际最低价b,barslast(b50=1))<=ref(实际最低价b,barslast(b60=1)),0,1.618*ref(真实波幅b,barslast(b50=1))>=ref(真实波幅b,barslast(b60=1))),0),0);

qx6:=qx6a and qx6b and qx6c;

bs68:=if(exist(b60=1,barscount(close)+1),if(barslast(b60=1)>=8,count(close<=ref(low,2),barslast(b60=1)-7)=8 and close<=ref(low,2) and qx6,0),0);

tbs613:=if(exist(b60=1,barscount(close)+1),if(barslast(b60=1)>=8,count(close<=ref(low,2),barslast(b60=1)-7)>=13 and close<=ref(low,2) and qx6 and low<=ref(close,barslast(bs68=1)),0),0);

bs613:=if(exist(b60=1,barscount(close)+1),count(tbs613=1,barslast(b60=1)+1)=1 and tbs613=1,0);

tdc6:=if(exist(b60=1,barscount(close)+1),if(count(tdc=1,barslast(b60=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b60=1)+1)>=2,ref(llv(ptdc,barslast(b60=1)+1),1)>close and tdc=1,0)),0);

td6:=if(qx6=1,count(tdc6=1,barslast(b60=1)+1)<=13 and tdc6=1,0);

pc6:=if(td6=1,pc5+1,pc5);

tdxstep429:drawnumber(td6=1,high*(1.005+0.015*pc6),count(tdc6=1,barslast(b60=1)+1)),colord8bfd8;

p7:=if(exist(b60=1,barscount(close)+1),if(count(s9=1,barslast(b60=1))=0,if(count(qx6=0,barslast(b60=1)+1)!=0 or count(ref(bs613,1)=1,barslast(b60=1)+1)!=0,p6,p6+1),0),0);

cy7:=if(exist(b70=1,barscount(close)+1),if(count(s9=1,barslast(b70=1))=0,if(close>ref(实际最高价b,barslast(b70=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b70=1)),1),1),0),0);

qx7a:=if(exist(b70=1,barscount(close)+1),count(s9=1,barslast(b70=1))=0,0) and if(exist(b70=1,barscount(close)+1),if(count(s9=1,barslast(b70=1))=0,count(cy7=0,barslast(b70=1)+1)=0,0),0) and if(exist(b70=1,barscount(close)+1),if(count(s9=1,barslast(b70=1))=0,count(真实最低价>ref(tdst阻力,barslast(b70=1)+1),barslast(b70=1)+1)=0,0),0);

qx7b:=if(exist(b80=1,barscount(close)+1),if(count(s9=1,barslast(b80=1))=0,if(ref(实际最高价b,barslast(b70=1))>=ref(实际最高价b,barslast(b80=1)) and ref(实际最低价b,barslast(b70=1))<=ref(实际最低价b,barslast(b80=1)),1,ref(真实波幅b,barslast(b70=1))>ref(真实波幅b,barslast(b80=1)) or 1.618*ref(真实波幅b,barslast(b70=1))<ref(真实波幅b,barslast(b80=1))),1),1);

qx7c:=if(exist(b70=1,barscount(close)+1),if(count(s9=1,barslast(b70=1))=0,if(ref(实际最高价b,barslast(b60=1))>=ref(实际最高价b,barslast(b70=1)) and ref(实际最低价b,barslast(b60=1))<=ref(实际最低价b,barslast(b70=1)),0,1.618*ref(真实波幅b,barslast(b60=1))>=ref(真实波幅b,barslast(b70=1))),0),0);

qx7:=qx7a and qx7b and qx7c;

bs78:=if(exist(b70=1,barscount(close)+1),if(barslast(b70=1)>=8,count(close<=ref(low,2),barslast(b70=1)-7)=8 and close<=ref(low,2) and qx7,0),0);

tbs713:=if(exist(b70=1,barscount(close)+1),if(barslast(b70=1)>=8,count(close<=ref(low,2),barslast(b70=1)-7)>=13 and close<=ref(low,2) and qx7 and low<=ref(close,barslast(bs78=1)),0),0);

bs713:=if(exist(b70=1,barscount(close)+1),count(tbs713=1,barslast(b70=1)+1)=1 and tbs713=1,0);

tdc7:=if(exist(b70=1,barscount(close)+1),if(count(tdc=1,barslast(b70=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b70=1)+1)>=2,ref(llv(ptdc,barslast(b70=1)+1),1)>close and tdc=1,0)),0);

td7:=if(qx7=1,count(tdc7=1,barslast(b70=1)+1)<=13 and tdc7=1,0);

pc7:=if(td7=1,pc6+1,pc6);

tdxstep430:drawnumber(td7=1,high*(1.005+0.015*pc7),count(tdc7=1,barslast(b70=1)+1)),colormagenta;

p8:=if(exist(b70=1,barscount(close)+1),if(count(s9=1,barslast(b70=1))=0,if(count(qx7=0,barslast(b70=1)+1)!=0 or count(ref(bs713,1)=1,barslast(b70=1)+1)!=0,p7,p7+1),0),0);

cy8:=if(exist(b80=1,barscount(close)+1),if(count(s9=1,barslast(b80=1))=0,if(close>ref(实际最高价b,barslast(b80=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b80=1)),1),1),0),0);

qx8a:=if(exist(b80=1,barscount(close)+1),count(s9=1,barslast(b80=1))=0,0) and if(exist(b80=1,barscount(close)+1),if(count(s9=1,barslast(b80=1))=0,count(cy8=0,barslast(b80=1)+1)=0,0),0) and if(exist(b80=1,barscount(close)+1),if(count(s9=1,barslast(b80=1))=0,count(真实最低价>ref(tdst阻力,barslast(b80=1)+1),barslast(b80=1)+1)=0,0),0);

qx8b:=if(exist(b90=1,barscount(close)+1),if(count(s9=1,barslast(b90=1))=0,if(ref(实际最高价b,barslast(b80=1))>=ref(实际最高价b,barslast(b90=1)) and ref(实际最低价b,barslast(b80=1))<=ref(实际最低价b,barslast(b90=1)),1,ref(真实波幅b,barslast(b80=1))>ref(真实波幅b,barslast(b90=1)) or 1.618*ref(真实波幅b,barslast(b80=1))<ref(真实波幅b,barslast(b90=1))),1),1);

qx8c:=if(exist(b80=1,barscount(close)+1),if(count(s9=1,barslast(b80=1))=0,if(ref(实际最高价b,barslast(b70=1))>=ref(实际最高价b,barslast(b80=1)) and ref(实际最低价b,barslast(b70=1))<=ref(实际最低价b,barslast(b80=1)),0,1.618*ref(真实波幅b,barslast(b70=1))>=ref(真实波幅b,barslast(b80=1))),0),0);

qx8:=qx8a and qx8b and qx8c;

bs88:=if(exist(b80=1,barscount(close)+1),if(barslast(b80=1)>=8,count(close<=ref(low,2),barslast(b80=1)-7)=8 and close<=ref(low,2) and qx8,0),0);

tbs813:=if(exist(b80=1,barscount(close)+1),if(barslast(b80=1)>=8,count(close<=ref(low,2),barslast(b80=1)-7)>=13 and close<=ref(low,2) and qx8 and low<=ref(close,barslast(bs88=1)),0),0);

bs813:=if(exist(b80=1,barscount(close)+1),count(tbs813=1,barslast(b80=1)+1)=1 and tbs813=1,0);

tdc8:=if(exist(b80=1,barscount(close)+1),if(count(tdc=1,barslast(b80=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b80=1)+1)>=2,ref(llv(ptdc,barslast(b80=1)+1),1)>close and tdc=1,0)),0);

td8:=if(qx8=1,count(tdc8=1,barslast(b80=1)+1)<=13 and tdc8=1,0);

pc8:=if(td8=1,pc7+1,pc7);

tdxstep431:drawnumber(td8=1,low*(0.995-0.015*pc8),count(tdc8=1,barslast(b80=1)+1)),color00c957;

p9:=if(exist(b80=1,barscount(close)+1),if(count(s9=1,barslast(b80=1))=0,if(count(qx8=0,barslast(b80=1)+1)!=0 or count(ref(bs813,1)=1,barslast(b80=1)+1)!=0,p8,p8+1),0),0);

cy9:=if(exist(b90=1,barscount(close)+1),if(count(s9=1,barslast(b90=1))=0,if(close>ref(实际最高价b,barslast(b90=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b90=1)),1),1),0),0);

qx9a:=if(exist(b90=1,barscount(close)+1),count(s9=1,barslast(b90=1))=0,0) and if(exist(b90=1,barscount(close)+1),if(count(s9=1,barslast(b90=1))=0,count(cy9=0,barslast(b90=1)+1)=0,0),0) and if(exist(b90=1,barscount(close)+1),if(count(s9=1,barslast(b90=1))=0,count(真实最低价>ref(tdst阻力,barslast(b90=1)+1),barslast(b90=1)+1)=0,0),0);

qx9b:=if(exist(b100=1,barscount(close)+1),if(count(s9=1,barslast(b100=1))=0,if(ref(实际最高价b,barslast(b90=1))>=ref(实际最高价b,barslast(b100=1)) and ref(实际最低价b,barslast(b90=1))<=ref(实际最低价b,barslast(b100=1)),1,ref(真实波幅b,barslast(b90=1))>ref(真实波幅b,barslast(b100=1)) or 1.618*ref(真实波幅b,barslast(b90=1))<ref(真实波幅b,barslast(b100=1))),1),1);

qx9c:=if(exist(b90=1,barscount(close)+1),if(count(s9=1,barslast(b90=1))=0,if(ref(实际最高价b,barslast(b80=1))>=ref(实际最高价b,barslast(b90=1)) and ref(实际最低价b,barslast(b80=1))<=ref(实际最低价b,barslast(b90=1)),0,1.618*ref(真实波幅b,barslast(b80=1))>=ref(真实波幅b,barslast(b90=1))),0),0);

qx9:=qx9a and qx9b and qx9c;

bs98:=if(exist(b90=1,barscount(close)+1),if(barslast(b90=1)>=8,count(close<=ref(low,2),barslast(b90=1)-7)=8 and close<=ref(low,2) and qx9,0),0);

tbs913:=if(exist(b90=1,barscount(close)+1),if(barslast(b90=1)>=8,count(close<=ref(low,2),barslast(b90=1)-7)>=13 and close<=ref(low,2) and qx9 and low<=ref(close,barslast(bs98=1)),0),0);

bs913:=if(exist(b90=1,barscount(close)+1),count(tbs913=1,barslast(b90=1)+1)=1 and tbs913=1,0);

tdc9:=if(exist(b90=1,barscount(close)+1),if(count(tdc=1,barslast(b90=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b90=1)+1)>=2,ref(llv(ptdc,barslast(b90=1)+1),1)>close and tdc=1,0)),0);

td9:=if(qx9=1,count(tdc9=1,barslast(b90=1)+1)<=13 and tdc9=1,0);

pc9:=if(td9=1,pc8+1,pc8);

tdxstep432:drawnumber(td9=1,high*(1.005+0.015*pc9),count(tdc9=1,barslast(b90=1)+1)),color7fffd4;

p10:=if(exist(b90=1,barscount(close)+1),if(count(s9=1,barslast(b90=1))=0,if(count(qx9=0,barslast(b90=1)+1)!=0 or count(ref(bs913,1)=1,barslast(b90=1)+1)!=0,p9,p9+1),0),0);

cy10:=if(exist(b100=1,barscount(close)+1),if(count(s9=1,barslast(b100=1))=0,if(close>ref(实际最高价b,barslast(b100=1)),if(currbarscount>1,close>refx(open,1) and high>refx(high,1) or refx(open,1)<ref(实际最高价b,barslast(b100=1)),1),1),0),0);

qx10a:=if(exist(b100=1,barscount(close)+1),count(s9=1,barslast(b100=1))=0,0) and if(exist(b100=1,barscount(close)+1),if(count(s9=1,barslast(b100=1))=0,count(cy10=0,barslast(b100=1)+1)=0,0),0) and if(exist(b100=1,barscount(close)+1),if(count(s9=1,barslast(b100=1))=0,count(真实最低价>ref(tdst阻力,barslast(b100=1)+1),barslast(b100=1)+1)=0,0),0);

qx10b:=if(exist(b110=1,barscount(close)+1),if(count(s9=1,barslast(b110=1))=0,if(ref(实际最高价b,barslast(b100=1))>=ref(实际最高价b,barslast(b110=1)) and ref(实际最低价b,barslast(b100=1))<=ref(实际最低价b,barslast(b110=1)),1,ref(真实波幅b,barslast(b100=1))>ref(真实波幅b,barslast(b110=1)) or 1.618*ref(真实波幅b,barslast(b100=1))<ref(真实波幅b,barslast(b110=1))),1),1);

qx10c:=if(exist(b100=1,barscount(close)+1),if(count(s9=1,barslast(b100=1))=0,if(ref(实际最高价b,barslast(b90=1))>=ref(实际最高价b,barslast(b100=1)) and ref(实际最低价b,barslast(b90=1))<=ref(实际最低价b,barslast(b100=1)),0,1.618*ref(真实波幅b,barslast(b90=1))>=ref(真实波幅b,barslast(b100=1))),0),0);

qx10:=qx10a and qx10b and qx10c;

bs108:=if(exist(b100=1,barscount(close)+1),if(barslast(b100=1)>=8,count(close<=ref(low,2),barslast(b100=1)-7)=8 and close<=ref(low,2) and qx10,0),0);

tbs1013:=if(exist(b100=1,barscount(close)+1),if(barslast(b100=1)>=8,count(close<=ref(low,2),barslast(b100=1)-7)>=13 and close<=ref(low,2) and qx10 and low<=ref(close,barslast(bs108=1)),0),0);

bs1013:=if(exist(b100=1,barscount(close)+1),count(tbs1013=1,barslast(b100=1)+1)=1 and tbs1013=1,0);

tdc10:=if(exist(b100=1,barscount(close)+1),if(count(tdc=1,barslast(b100=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b100=1)+1)>=2,ref(llv(ptdc,barslast(b100=1)+1),1)>close and tdc=1,0)),0);

td10:=if(qx10=1,count(tdc10=1,barslast(b100=1)+1)<=13 and tdc10=1,0);

pc10:=if(td10=1,pc9+1,pc9);

tdxstep433:drawnumber(td10=1,high*(1.005+0.015*pc10),count(tdc10=1,barslast(b100=1)+1)),colora020f0;

p11:=if(exist(b100=1,barscount(close)+1),if(count(s9=1,barslast(b100=1))=0,if(count(qx10=0,barslast(b100=1)+1)!=0 or count(ref(bs1013,1)=1,barslast(b100=1)+1)!=0,p10,p10+1),0),0);

qx11:=if(exist(b110=1,barscount(close)+1),count(s9=1,barslast(b110=1))=0,0);

bs118:=if(exist(b110=1,barscount(close)+1),if(barslast(b110=1)>=8,count(close<=ref(low,2),barslast(b110=1)-7)=8 and close<=ref(low,2) and qx11,0),0);

tbs1113:=if(exist(b110=1,barscount(close)+1),if(barslast(b110=1)>=8,count(close<=ref(low,2),barslast(b110=1)-7)>=13 and close<=ref(low,2) and qx11 and low<=ref(close,barslast(bs118=1)),0),0);

bs1113:=if(exist(b110=1,barscount(close)+1),count(tbs1113=1,barslast(b110=1)+1)=1 and tbs1113=1,0);

tdc11:=if(exist(b110=1,barscount(close)+1),if(count(tdc=1,barslast(b110=1)+1)=1 and tdc=1,1,if(count(tdc=1,barslast(b110=1)+1)>=2,ref(llv(ptdc,barslast(b110=1)+1),1)>close and tdc=1,0)),0);

td11:=if(qx11=1,count(tdc11=1,barslast(b110=1)+1)<=13 and tdc11=1,0);

pc11:=if(td11=1,pc10+1,pc10);

tdxstep434:drawnumber(td11=1,high*(1.005+0.015*pc11),count(tdc11=1,barslast(b110=1)+1)),color7093db;

td伪装:close<ref(close,1) and close>open and low<ref(low,2),nodraw;

td马跳:open<ref(min(close,open),1) and close>ref(max(close,open),1) and 0.01*amount/vol>ref(max(close,open),1),nodraw;

td马跳制胜:max(close,open)<=ref(max(close,open),1) and min(close,open)>=ref(min(close,open),1) and close>ref(close,1),nodraw;

td开盘指标:open<ref(low,1) and close>ref(low,1) and 0.01*amount/vol>ref(low,1),nodraw;

td陷阱指标:open<=ref(max(close,open),1) and open>=ref(min(close,open),1) and close>ref(max(close,open),1),nodraw;

保守策略:ref(close,1)<=ref(close,5) and close>ref(close,4),nodraw;


td组合 主图

  >>>使用本站搜索工具可以找到更多TD组合主图详解 通达信TD主图

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文TD组合主图详解 通达信TD主图仅供学习研究。

猜你喜欢

学了又学