da1:=if(130>totalbarscount,totalbarscount,130);
da:=if(currbarscount>da1,0,da1);
hi:=refdate(hhv(h,da),date);
lo:=refdate(llv(l,da),date);
c1001:=if(currbarscount<=da,c,drawnull);
gz:=exp(ln(hi/lo)/10);
lh1:=sum(if(c1001>=(hi/gz),v,0),da);
lh2:=sum(if(c1001>=(hi/pow(gz,2)) and c1001<(hi/gz),v,0),da);
lh3:=sum(if(c1001>=(hi/pow(gz,3)) and c1001<(hi/pow(gz,2)),v,0),da);
lh4:=sum(if(c1001>=(hi/pow(gz,4)) and c1001<(hi/pow(gz,3)),v,0),da);
lh5:=sum(if(c1001>=(hi/pow(gz,5)) and c1001<(hi/pow(gz,4)),v,0),da);
lh6:=sum(if(c1001>=(hi/pow(gz,6)) and c1001<(hi/pow(gz,5)),v,0),da);
lh7:=sum(if(c1001>=(hi/pow(gz,7)) and c1001<(hi/pow(gz,6)),v,0),da);
lh8:=sum(if(c1001>=(hi/pow(gz,8)) and c1001<(hi/pow(gz,7)),v,0),da);
lh9:=sum(if(c1001>=(lo*gz) and c1001<lo*pow(gz,2),v,0),da);
lh10:=sum(if(c1001>=lo and c1001<lo*gz,v,0),da);
l1001:=refdate(hhv(lh1,da),date),linethick0;
l2001:=refdate(hhv(lh2,da),date),linethick0;
l3001:=refdate(hhv(lh3,da),date),linethick0;
l4001:=refdate(hhv(lh4,da),date);
l5001:=refdate(hhv(lh5,da),date);
l6001:=refdate(hhv(lh6,da),date);
l7:=refdate(hhv(lh7,da),date);
l8:=refdate(hhv(lh8,da),date);
l9:=refdate(hhv(lh9,da),date);
l10:=refdate(hhv(lh10,da),date);
sss:=(l1001+l2001+l3001+l4001+l5001+l6001+l7+l8+l9+l10);
var121:=zig(3,6)<ref(zig(3,6),1) and ref(zig(3,6),1)>=ref(zig(3,6),2) and ref(zig(3,6),2)>=ref(zig(3,6),3);
var141:=zig(3,22)<ref(zig(3,22),1) and ref(zig(3,22),1)>=ref(zig(3,22),2) and ref(zig(3,22),2)>=ref(zig(3,22),3);
var161:=zig(3,51)<ref(zig(3,51),1) and ref(zig(3,51),1)>=ref(zig(3,51),2) and ref(zig(3,51),2)>=ref(zig(3,51),3);
var181:=zig(3,72)<ref(zig(3,72),1) and ref(zig(3,72),1)>=ref(zig(3,72),2) and ref(zig(3,72),2)>=ref(zig(3,72),3);
卖:=(var121+var141+var161+var181),linethick2;
stickline(ceiling(da*l2001/sss)*3>=currbarscount and barscount(c)>100 ,hi/pow(gz,1)*99/100,hi/pow(gz,2),9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l3001/sss)*3>=currbarscount and barscount(c)>100,hi/pow(gz,2)*99/100,hi/pow(gz,3),9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l4001/sss)*3>=currbarscount and barscount(c)>100,hi/pow(gz,3)*99/100,hi/pow(gz,4),9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l5001/sss)*3>=currbarscount and barscount(c)>100,hi/pow(gz,4)*99/100,hi/pow(gz,5),9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l6001/sss)*3>=currbarscount and barscount(c)>100,hi/pow(gz,5)*99/100,hi/pow(gz,6),9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l7/sss)*3>=currbarscount and barscount(c)>100,hi/pow(gz,6)*99/100,hi/pow(gz,7),9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l8/sss)*3>=currbarscount and barscount(c)>100,lo*pow(gz,2),lo*pow(gz,3)*99/100,9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l9/sss)*3>=currbarscount and barscount(c)>100,lo*pow(gz,1),lo*pow(gz,2)*99/100,9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l10/sss)*3>=currbarscount and barscount(c)>100,lo,lo*pow(gz,1)*99/100,9,0)color3c3c3a,linethick3;
stickline(ceiling(da*l1001/sss)*3>=currbarscount and barscount(c)>100,hi*99/100,hi/gz,9,0)color3c3c3a,linethick3;
drawkline(high,open,low,close);
{假阳真阴}
均价:=amount/vol/100;
假阳:=c>o and ref(c,1)>均价 and c>均价 and c<300 ;
stickline(假阳,o,c,1,0)colorlicyan;
标志阴:=ref(c,1)/c>1.04;
stickline(标志阴,o,c,1,0)colorwhite;
{假阴真阳}
假阴:=o>c and 均价>ref(c,1) and c>ma(c,5);
stickline(假阴,o,c,1,0),colorred;
平量:=v>ref(v,1)*0.95 and v<ref(v,1)*1.05 ;
无量平量穿越:=winner(c)-winner(o)>=0.2 and 平量;
stickline(无量平量穿越,o,c,1,0)colorblue;
倍阴柱:=vol>=ref(v,1)*1.9 and c<ref(c,1) ;
stickline(倍阴柱,o,c,1,0)colorbrown;
{涨跌停价格显示};
aa:=(c-ref(c,1))/ref(c,1)*100;
zs:=(namelike('st') or namelike('*st') or namelike('s')) and aa>=4.945;
ds:=(namelike('st') or namelike('*st') or namelike('s')) and aa<=-4.945;
涨停价:if(zs,ref(c,1)*1.05,ref(c,1)*1.1),nodraw,colorred;
跌停价:if(ds,ref(c,1)*0.95,ref(c,1)*0.9),nodraw,colorgreen;
n1:=10;n2:=10;disp:=2;
k:=if(period=5,1,{日}
if(period=6,1,{周}
if(period=7,1,{月}
if(period=8,1,{多分钟}
if(period=9,1,{多日}
if(period=10,1,{季}
if(period=11,2,{年}
if(period=4,1,{60f}
if(period=3,1,{30f}
if(period=2,1,{15f}
if(period=1,1{5f},1{1f})))))))))))/10;
p1:=peak(1,k*n1,1);
p2:=peak(1,k*n1,2);
wp1:=peakbars(1,k*n1,1);
wp2:=peakbars(1,k*n1,2);
t1:=trough(2,k*n2,1);
t2:=trough(2,k*n2,2);
wt1:=troughbars(2,k*n2,1);
wt2:=troughbars(2,k*n2,2);
tj1:=p1>t1 and p2>t2 ;
zd:=max(t1,t2);
zg:=min(p1,p2);
ll:=min(t1,t2);
hh:=max(p1,p2);
tj2:=filter(zg>zd,2);
tj3:=zg=ref(zg,barslast(tj2)) or zd=ref(zd,barslast(tj2));
tj4:=tj1&&tj2&¬(tj3);
tj5:=between(zd,ref(zd,ref(barslast(tj4),1)),ref(zg,ref(barslast(tj4),1)));
tj6:=between(zg,ref(zd,ref(barslast(tj4),1)),ref(zg,ref(barslast(tj4),1)));
tj7:=zg>ref(zg,ref(barslast(tj4),1))&&zd<ref(zd,ref(barslast(tj4),1));
tj8:=tj4&¬(tj5 or tj6 or tj7);
zsd:=if(tj8,zd,drawnull);
zsg:=if(tj8,zg,drawnull);
zsh:=if(tj8,hh,drawnull);
zsl:=if(tj8,ll,drawnull);
stickline(tj8,zsh,zsl,0,-1),colormagenta;
stickline(tj8,zsd,zsg,if(disp=1,3,0),1),colormagenta;
drawtext(disp=2,zsh,'中枢'),colorwhite;
中枢高:ployline(disp=2,ref(zsd,barslast(tj8))),circledot,colorlired;
中枢低:ployline(disp=2,ref(zsg,barslast(tj8))),circledot,colorligreen;
{中枢最高:ployline(disp=2,ref(zsh,barslast(tj8))),pointdot,colorred;
中枢最低:ployline(disp=2,ref(zsl,barslast(tj8))),pointdot,colorgreen;}
趋势高:ployline(disp=3,zig(1,k*n1)),colorliblue;
趋势低:ployline(disp=3,zig(2,k*n2)),colorliblue;
局部低点预选a:=backset(llv(l,5)<ref(llv(l,4),1),4);
局部低点预选b:=backset(局部低点预选a=0 and ref(局部低点预选a,1)=1,2);
局部低点预选c:=if(局部低点预选b=1 and ref(局部低点预选b,1)=0,-1,0);
局部高点预选a:=backset(hhv(h,5)>ref(hhv(h,4),1),4);
局部高点预选b:=backset(局部高点预选a=0 and ref(局部高点预选a,1)=1,2);
局部高点预选c:=if(局部高点预选b=1 and ref(局部高点预选b,1)=0,1,0);
缺口判断:=if(l>ref(h,1),1,if(h<ref(l,1),-1,0));
距前高天:=barslast(局部高点预选c=1);
距前低天:=barslast(局部低点预选c=-1);
小值周期:=lowrange(l);
大值周期:=toprange(h);
低保留aa:=if(局部低点预选c=-1 and ref(距前高天,1)>ref(距前低天,1) and llv(l,距前高天+1)<ref(llv(l,距前高天+1),1),-1,0);
低保留ab:=if(局部低点预选c=-1 and ref(距前高天,1)<=ref(距前低天,1) and (距前高天>=4 or llv(缺口判断,距前高天)=-1 or llv(l,距前低天+2)<ref(llv(l,距前低天+1),1)),-1,0);
低保留s:=if((低保留aa=-1 or 低保留ab=-1) and l<ref(h,距前高天+1),-1,0);
预判:=if((距前低天<4 and hhv(缺口判断,距前低天)!=1) or ref(低保留s,距前低天)=0,1,0);
判断:=if(局部高点预选c=1 and ref(距前低天,1)<=ref(距前高天,1) and 预判=1 and 大值周期>ref(小值周期,距前低天+1) and 大值周期>ref(小值周期,距前低天) and 大值周期>ref(大值周期,距前高天),1,0);
高保留a:=if(局部高点预选c=1 and ref(距前低天,1)>ref(距前高天,1) and hhv(h,距前低天+1)>ref(hhv(h,距前低天+1),1),1,0);
高保留b:=if(局部高点预选c=1 and ref(距前低天,1)<=ref(距前高天,1) and ref(低保留s,距前低天)=-1 and (距前低天>=4 or hhv(缺口判断,距前低天)=1),1,0);
高保留:=if((高保留a=1 or 高保留b=1 or 判断=1) and h>ref(l,距前低天+1),1,0);
预判a:=if((距前高天<4 and hhv(缺口判断,距前高天)!=1) or ref(高保留,距前高天)=0,1,0);
判断a:=if(局部低点预选c=-1 and ref(距前高天,1)<=ref(距前低天,1) and 预判a=1 and 小值周期>ref(大值周期,距前高天+1) and 小值周期>ref(大值周期,距前高天) and 小值周期>ref(小值周期,距前低天),-1,0);
低保留a:=if(局部低点预选c=-1 and ref(距前高天,1)>ref(距前低天,1) and llv(l,距前高天+1)<ref(llv(l,距前高天+1),1),-1,0);
低保留b:=if(局部低点预选c=-1 and ref(距前高天,1)<=ref(距前低天,1) and (距前高天>=4 or llv(缺口判断,距前高天)=-1 or 判断a=-1),-1,0);
低保留:=if((低保留a=-1 or 低保留b=-1) and l<ref(h,距前高天+1),-1,0);
距前高天a:=barslast(高保留=1);{}
距前低天a:=barslast(低保留=-1);
预判x:=if((距前低天a<4 and hhv(缺口判断,距前低天a)!=1) or ref(低保留,距前低天a)=0,1,0);
判断x:=if(局部高点预选c=1 and ref(距前低天a,1)<=ref(距前高天a,1) and 预判x=1 and 大值周期>ref(小值周期,距前低天a+1) and 大值周期>ref(小值周期,距前低天a) and 大值周期>ref(大值周期,距前高天a),1,0);
高保留xa:=if(局部高点预选c=1 and ref(距前低天a,1)>ref(距前高天a,1) and hhv(h,距前低天a+1)>ref(hhv(h,距前低天a+1),1),1,0);
高保留xb:=if(局部高点预选c=1 and ref(距前低天a,1)<=ref(距前高天a,1) and ref(低保留,距前低天a)=-1 and (距前低天a>=4 or hhv(缺口判断,距前低天a)=1),1,0);
高保留x:=if((高保留xa=1 or 高保留xb=1 or 判断x=1) and h>ref(l,距前低天a+1),1,0);
预判xa:=if((距前高天a<4 and hhv(缺口判断,距前高天a)!=1) or ref(高保留xa,距前高天a)=0,1,0);
判断xa:=if(局部低点预选c=-1 and ref(距前高天a,1)<=ref(距前低天a,1) and 预判xa=1 and 小值周期>ref(大值周期,距前高天a+1) and 小值周期>ref(大值周期,距前高天a) and 小值周期>ref(小值周期,距前低天a),-1,0);
低保留xa:=if(局部低点预选c=-1 and ref(距前高天a,1)>ref(距前低天a,1) and llv(l,距前高天a+1)<ref(llv(l,距前高天a+1),1),-1,0);
低保留xb:=if(局部低点预选c=-1 and ref(距前高天a,1)<=ref(距前低天a,1) and (距前高天a>=4 or llv(缺口判断,距前高天a)=-1 or 判断xa=-1),-1,0);
低保留x:=if((低保留xa=-1 or 低保留xb=-1) and l<ref(h,距前高天a+1),-1,0);
距前高天ya:=barslast(高保留x=1);
距前低天ya:=barslast(低保留x=-1);
预判yx:=if((距前低天ya<4 and hhv(缺口判断,距前低天ya)!=1) or ref(低保留x,距前低天ya)=0,1,0);
判断yx:=if(局部高点预选c=1 and ref(距前低天ya,1)<=ref(距前高天ya,1) and 预判yx=1 and 大值周期>ref(小值周期,距前低天ya+1) and 大值周期>ref(小值周期,距前低天ya) and 大值周期>ref(大值周期,距前高天ya),1,0);
高保留yxa:=if(局部高点预选c=1 and ref(距前低天ya,1)>ref(距前高天ya,1) and hhv(h,距前低天ya+1)>ref(hhv(h,距前低天ya+1),1),1,0);
高保留yxb:=if(局部高点预选c=1 and ref(距前低天ya,1)<=ref(距前高天ya,1) and ref(低保留x,距前低天ya)=-1 and (距前低天ya>=4 or hhv(缺口判断,距前低天ya)=1),1,0);
高保留yx:=if((高保留yxa=1 or 高保留yxb=1 or 判断yx=1) and h>ref(l,距前低天ya+1),1,0);
预判yxa:=if((距前高天ya<4 and hhv(缺口判断,距前高天ya)!=1) or ref(高保留yxa,距前高天ya)=0,1,0);
判断yxa:=if(局部低点预选c=-1 and ref(距前高天ya,1)<=ref(距前低天ya,1) and 预判yxa=1 and 小值周期>ref(大值周期,距前高天ya+1) and 小值周期>ref(大值周期,距前高天ya) and 小值周期>ref(小值周期,距前低天ya),-1,0);
低保留yxa:=if(局部低点预选c=-1 and ref(距前高天ya,1)>ref(距前低天ya,1) and llv(l,距前高天ya+1)<ref(llv(l,距前高天ya+1),1),-1,0);
低保留yxb:=if(局部低点预选c=-1 and ref(距前高天ya,1)<=ref(距前低天ya,1) and (距前高天ya>=4 or llv(缺口判断,距前高天ya)=-1 or 判断yxa=-1),-1,0);
低保留yx:=if((低保留yxa=-1 or 低保留yxb=-1) and l<ref(h,距前高天ya+1),-1,0);
aaad:=if(高保留yx=1 and 低保留yx=-1 and h>ref(h,ref(距前高天ya,1)+2),1,if(高保留yx=1 and 低保留yx=-1 and l<ref(l,ref(距前低天ya,1)+2),-1,0));
极点保留:=if(aaad=0,高保留yx+低保留yx,aaad);
局部极点:if(极点保留=-1,l,if(极点保留=1,h,drawnull)) circledot coloryellow;
drawline(极点保留=-1,局部极点,极点保留=1,局部极点,0)colorlired;
drawline(极点保留=1,局部极点,极点保留=-1,局部极点,0)coloryellow;
dd1:=barslast(abs(极点保留)!=1);
drawtext(极点保留=1,局部极点,'卖'),colorgreen;
stickline(极点保留=1,局部极点,局部极点,30,1),colorcyan;
drawnumber(极点保留=1,局部极点,局部极点)colorcyan;
drawtext(极点保留=-1,局部极点,'买'),colorred;
stickline(极点保留=-1,局部极点,局部极点,30,1),colorred;
drawnumber(极点保留=-1,局部极点,局部极点)colorred;
ma5:ma(close,5),colorff00ff,linethick2;判:if(ma5<ref(ma5,1),ma5,drawnull),colorwhite,linethick2;
{}
画线周期:=15;
画线io:=画线周期>currbarscount;
ldm1001:=if(ref(h,1)=ref(hhv(h,2),1),1,0);
上线:if(ldm1001=1,ref(h,1),ref(h,2)),nodraw;
ldm1002:=if( ref(l,1)=ref(llv(l,2),1),1,0);
下线:if( ldm1002=1,ref(l,1),ref(l,2)),nodraw;
中线10:=(上线+下线)/2,colorff00ff,linethick2;
中线11:=if(c<中线10,中线10,drawnull),colorlicyan,linethick2;
下三一:=(上线-下线)*0.334+下线,colorgreen;
上三一:=(上线-下线)*0.667+下线,colorwhite;
if(画线io,中线10,drawnull),nodraw;
if(画线io,中线11,drawnull),nodraw;
if(画线io,下三一,drawnull),nodraw;
if(画线io,上三一,drawnull),nodraw;
d_2r3_zq1:=currbarscount<2;
d_2r3_zq2:=currbarscount<13;
d_2r3x1:=if(d_2r3_zq1, 上三一, drawnull);
d_2r3x2:=if(d_2r3_zq1, 中线10, drawnull);
d_2r3x3:=if(d_2r3_zq1, 下三一, drawnull);
d_2r3x11:if(d_2r3_zq2,d_2r3x1,drawnull);
d_2r3x12:if(d_2r3_zq2,d_2r3x2,drawnull);
d_2r3x13:if(d_2r3_zq2,d_2r3x3,drawnull);
stickline(d_2r3_zq2 ,d_2r3x11,d_2r3x11,20,-1),colorliblue;
stickline(d_2r3_zq2 ,d_2r3x12,d_2r3x12,20,-1),coloryellow;
stickline(d_2r3_zq2 ,d_2r3x13,d_2r3x13,20,-1),colorwhite;
drawtext(d_2r3_zq1,d_2r3x11,' 上线'),colorliblue;
drawtext(d_2r3_zq1,d_2r3x12,' 中线'),colormagenta;
drawtext(d_2r3_zq1,d_2r3x13,' 下线'),colorwhite;
{涨跌停k线标识};
st:=namelike('st')=1 or namelike('*st')=1 or namelike('sst')=1
or namelike('s*st')=1 or namelike('s st')=1;
涨停:=c=ztprice(ref(close,1),0.1) or (c/ref(c,1)>1.0495 and st);
跌停:=ref(c,1)/c>1.0995 or (ref(c,1)/c>1.0495 and st);
stickline(涨停,c,o,3,0),colormagenta;
stickline(跌停,c,o,3,0),colorgreen;
drawicon(h=ztprice(ref(close,1),0.1) and c!=h,l*0.965,15);
stickline(c/ref(c,1)>=1.04 or c/ref(c,1)<=0.96,(c+o)/2,(c+o)/2,2,1),colorliblue;{中分线};
stickline(c/ref(c,1)>=1.04 or c/ref(c,1)<=0.96,(max(o,c)-min(o,c))*2/3+min(o,c),(max(o,c)-min(o,c))*2/3+min(o,c),2,1),colorliblue;{上三一线};
stickline(c/ref(c,1)>=1.04 or c/ref(c,1)<=0.96,(max(o,c)-min(o,c))/3+min(o,c),(max(o,c)-min(o,c))/3+min(o,c),2,1),colorliblue;{下三一线};
上一指标公式:资金流向4 通达信资金指标
下一指标公式:资金流向3 通达信资金指标
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文缠论买卖 荆州量学金融终端主图七 通达信买卖终端仅供学习研究。