文档详情

日线叠加任意周期K线(通达信公式)

宝路
实名认证
店铺
DOC
29.53KB
约2页
文档ID:22502952
日线叠加任意周期K线(通达信公式)_第1页
1/2

日线叠加 任意周期 K 线 (tne 格式通达信公式)代码:INPUT:N(9,1,1000);zq:=mod(barpos,n)=1;ts:=barslast(zq);s:=if(ts>ref(ts,1),1,0);zqdw:=backset(ts=0,ts+2);z:=cross(backset(ts=0,ref(ts,1)/2+2),0.5);zjts:=round(ts[datacount]/2);zjz:=cross(backset(islastbar,zjts),0.5);h1:=hhv(h,ts+1);l1:=llv(l,ts+1);o1:=(ts=0)*o;c1:=if(zqdw=1 and ts>0,c,if(barstatus=2,c,0));ft:=ts;rt:=ref(ts,1);x:=0*c;for i= datacount downto 2 do beginif ft>rt thenx[i-1]:=x+s;end o2:ref(o1,ts)LINETHICK0;c2:refx(c1,x)LINETHICK0;h2:refx(h1,x)LINETHICK0;l2:refx(l1,x)LINETHICK0;k:=c2>o2 or c2=o2 and c2>ref(c2,ts);tj1:=z or zjz;tj:=ts=0 or barstatus=2 or zqdw=1and ts>ref(ts,1);partline(ts and k,o2)COLORRED;partline(ts and k,c2)COLORRED;partline(ts and not(k),o2)COLORCYAN;partline(ts and not(k),c2)COLORCYAN;STICKLINE(tj1 and k,h2,c2,0.1,1)COLORRED;STICKLINE(tj1 and k,l2,o2,0.1,1)COLORRED;STICKLINE(tj1 and not(k),h2,o2,0.1,1)COLORCYAN;STICKLINE(tj1 and not(k),l2,c2,0.1,1)COLORCYAN;STICKLINE(tj and k,o2,c2,0.1,1)COLORRED;STICKLINE(tj and not(k),o2,c2,0.1,1)COLORCYAN;STICKLINE(barstatus=2 and tsref(ts,1),1,0);zqdw:=backset(ts=0,ts+2);z:=cross(backset(ts=0,ref(ts,1)/2+2),0.5);zjts:=round(ts[datacount]/2);zjz:=cross(backset(islastbar,zjts),0.5);h1:=hhv(h,ts+1);l1:=llv(l,ts+1);o1:=(ts=0)*o;c1:=if(zqdw=1 and ts>0,c,if(barstatus=2,c,0));ft:=ts;rt:=ref(ts,1);x:=0*c;for i= datacount downto M+1 do beginif ft[i]>rt[i] thenx[i-1]:=x[i]+s[i];end o2:ref(o1,ts)LINETHICK0;c2:refx(c1,x)LINETHICK0;h2:refx(h1,x)LINETHICK0;l2:refx(l1,x)LINETHICK0;k:=c2>o2 or c2=o2 and c2>ref(c2,ts);tj1:=z or zjz;tj:=ts=0 or barstatus=2 or zqdw=1and ts>ref(ts,1);partline(ts and k,o2)COLORRED;partline(ts and k,c2)COLORRED;partline(ts and not(k),o2)COLORCYAN;partline(ts and not(k),c2)COLORCYAN;STICKLINE(tj1 and k,h2,c2,0.1,1)COLORRED;STICKLINE(tj1 and k,l2,o2,0.1,1)COLORRED;STICKLINE(tj1 and not(k),h2,o2,0.1,1)COLORCYAN;STICKLINE(tj1 and not(k),l2,c2,0.1,1)COLORCYAN;STICKLINE(tj and k,o2,c2,0.1,1)COLORRED;STICKLINE(tj and not(k),o2,c2,0.1,1)COLORCYAN;STICKLINE(barstatus=2 and ts<1and k,h2,l2,0.1,1)COLORRED;STICKLINE(barstatus=2 and ts<1and k,o2,c2,8,1)COLORRED;STICKLINE(barstatus=2 and ts<1and not(k),h2,l2,0.1,1)COLORCYAN;STICKLINE(barstatus=2 and ts<1and not(k),o2,c2,8,1)COLORCYAN;。

下载提示
相似文档
正为您匹配相似的精品文档