把123求4组合到zig未来函数上取得阻力和支撑.(主副图.用法说明.源码.实测图.)
把123求4组合到zig未来函数上取得阻力和支撑
咱们把徐小明的123求4的理论用在zig函数上就可以推测出未来的高点就是【向上的转折点.】低点就是【向下的转折的】当然这就仅仅是预测..可就是这个预测能够使我们有了将要出现转折的目标点.
现在我们除了摸清zig函数的转折脾气进一步的预测出来即将出现的转折点.这就是123求4的功劳.预测不会准确的.但是毕竟有了目标.我们会以此参考突破怎么办.不突破怎么办.就不会毫无目标的等待转折的出现..
问题是必需边学边用.所以我会在在答复中慢慢同大家讨论一些实质用的时候发生的问题.请务必学会爬楼.常常回家看看.会有不断的解释.讨论.
这里边我最看好的是以下两句.它的线是有趋势性的股票涨跌有他参考很有价值.就是图上的分界线他的变色.和k线在他的上下都很说明问题.不信你就好好琢磨琢磨.zig的作用真的很强大.就看你会不会用.能不能用好它为你服务了.
【上下:wma((求4看多+求4看空)/2,3);
partline(上下 ,(上下>ref(上下,1))-1,rgb(0,255,255),1,rgb(255,50,0) ),linethick2,layer0;】
【注意】-------我还要说明不是在公式【只有未来函数】我们配合了不少其他重要指标.配合的目的就是怕被未来的飘逸咬着.看看副图里就知道.咱们还是那句话【兼听则明偏信则暗】.---------
【a】主图源码:------------------------------------------------------------------------
{zig-金cj}
input:zf(10,0,30);
drawgbklast(date>900101,strip(rgb(60,60,60),rgb(0,0,0),0));
{k线}
stickline(close>open or close=open and close>ref(close,1),low,high,0.1,0),colorred;
stickline(close>open or close=open and close>ref(close,1),open,close,0,0),colorred;
stickline(close<open or close=open and close<=ref(close,1),low,high,0.1,0),colorcyan;
stickline(close<open or close=open and close<=ref(close,1),open,close,0,0),colorcyan;
stickline(open>=close ,close ,open,8,0 ),color006600;
stickline(open>=close ,close ,open,7,0 ),color008800;
stickline(open>=close ,close ,open,6,0 ),color00aa00;
stickline(open>=close ,close ,open,5,0 ),color00bb00;
stickline(open>=close ,close ,open,4,0 ),color00cc00;
stickline(open>=close ,close ,open,3,0 ),color00dd00;
stickline(open>=close ,close ,open,2,0 ),color00ee00;
stickline(open>=close ,close ,open,1,0 ),color00ff00;
stickline(open>=close ,close ,open,0,0 ),color00ff00;
stickline(close>open,close,open,8,0) ,color000066;
stickline(close>open,close,open,7,0) ,color000088;
stickline(close>open,close,open,6,0) ,color0000aa;
stickline(close>open,close,open,5,0) ,color0000bb;
stickline(close>open,close,open,4,0) ,color0000cc;
stickline(close>open,close,open,3,0) ,color0000dd;
stickline(close>open,close,open,2,0) ,color0000ee;
stickline(close>open,close,open,1,0) ,color0000ff;
stickline(close>open,close,open,0,0) ,color0000ff;
z10:zig(4,zf),colorff9900,linethick2,layer3;
partline(z10,z10>ref(z10,1),rgb(255,100,0)),linethick2,layer3;
持有:last(z10>ref(z10,1)),precis0 ,linethick0;
空仓:last(z10<ref(z10,1)),precis0,linethick0;
x:=barslast(dispstatus=1)+1;
jd:=hhvall(hhv(h,x))*1.15;
drawtext(barstatus=2 and 持有>0,jd,'★升势【第'+numtostrn(持有,0)+'天】'),align2,color00ffff,linethick4,layer0;
drawtext(barstatus=2 and 空仓>0,jd,'★跌势【第'+numtostrn(空仓,0)+'天】'),align2,colorff00ff,linethick4,layer0;
high1:=peak(4,zf,1);
low1:=trough(4,zf,1);
stickline(barstatus=2 and 空仓>0,high1,high1*(1-zf/100),15,0),colorff6600,linethick1,layer5;
stickline(barstatus=2 and 空仓>0,high1*(1-zf/100),high1*(1-zf/100),15,0),color00ffff,linethick1,layer5;
stickline(barstatus=2 and 持有>0,low1*1.03,low1*(1+zf/100),15,0),color0099dd,linethick1,layer6;
stickline(barstatus=2 and 持有>0,low1,low1*1.03,15,0),colorff6600,linethick1,layer5;
drawtextabs(3,10,ifs((持有>0),'【zig(4,'+zf+')】低点转折上涨小于【'+zf+'%='+numtostrn(low1*(1+zf/100),2)+'元】时如果【c='+c+'元】低于【转折价='+low1+'元】趋势将向下飘逸','')),linethick2,color00ff00;
drawtextabs(3,10,ifs((空仓>0),'【zig(4,'+zf+')】高点转折下跌小于【'+zf+'%='+numtostrn(high1*(1-zf/100),2)+'元】时如果【c='+c+'元】高于【转折价='+high1+'元】趋势将向上飘逸','')),linethick2,color0000ff;
drawtext(cross(ref(high1,1),high1),high1*1.02,''+numtostrn(high1 ,2)+''),align1,color00ffff,linethick1;
drawtext(cross(low1,ref(low1,1)),low1,''+numtostrn(low1 ,2)+''),align1,color00ffff,linethick1;
high2:=peak(4,zf,2);
low2:=trough(4,zf ,2);
求高四:high1*low1/low2,color0000ff,pointdot,linethick4,layer0;
high1*low1/low2,color000999,linethick1;
求4看多:wma(l*high1/if(low1=l,low2,low1),2),color0000ff,dotline,linethick0;
求低四:high1*low1/high2,color00ff00,pointdot,linethick4,layer0;
high1*low1/high2,color777000,linethick1;
求4看空:wma(h*low1/if(high1=h,high2,high1),2),color00ff00,dotline,linethick0;
上下:wma((求4看多+求4看空)/2,3);
partline(上下 ,(上下>ref(上下,1))-1,rgb(0,255,255),1,rgb(255,50,0) ),linethick2,layer0;
fillrgn(求高四,上下,求高四>上下,rgb(80,0,60)),layer7;
fillrgn(上下,求低四,上下>求低四,rgb(0,0,150)),layer7;
drawtext( barstatus=2,求高四 ,' '+numtostrn(求高四 ,2)+'元' ),color00ffff,linethick2;
drawtext( barstatus=2,求低四 ,' '+numtostrn(求低四 ,2)+'元' ),color00ffff,linethick2;
drawtextabs(50,35,'【zig(4,'+zf+')】〓转折阻力【'+numtostrn(high1,2)+'(h1)*'+numtostrn(low1,2)+'(l1)/'+numtostrn(low2,2)+'(l2)='+numtostrn(求高四,2)+'元(高四)】〓'),color00ffff,linethick2;
drawtextabs(50,55,'【zig(4,'+zf+')】〓转折支撑【'+numtostrn(high1,2)+'(h1)*'+numtostrn(low1,2)+'(l1)/'+numtostrn(high2,2)+'(h2)='+numtostrn(求低四,2)+'元(低四)】〓'),color00ffff,linethick2;
{rsi.kdj}
var6:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(var6,3,1);
d:=sma(k,3,1);
j:=(3*k-2*d);
lc:=ref(c,1);
rsi:((sma(max((c - lc),0),3,1) / sma(abs((c - lc)),3,1)) * 100),linethick0;
drawtext(dispstatus=2,jd*0.96,'【rsi:'+numtostrn(rsi,0)+'】'),color00ffff,linethick2,align2;
drawtext(dispstatus=2,jd*0.94,'【j:'+numtostrn(j,1)+'】'),color00ff00,linethick2,align2;
{高抛低吸}
sj:=wma(((2*c+h+l)/4-llv(l,5))/(hhv(h,5)-llv(l,5))*100,2);
zj:=wma(0.618*ref(sj,1)+0.382*sj,2);
drawtext(cross(sj,zj) and sj<30,l*0.99,'←吸'),color00ff00,layer3;
drawtext(cross(zj,sj) and sj>70,h*1.01,'←抛'),color0077ff,layer3;
【b】副图源码:——-----------------------------------------------------------------------------------------------
drawgbklast(c>0,strip(rgb(0,0,80),rgb(20,0,20),0));
90,color000099;0,color00ffff;
{zig买卖}
级买1:=zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<=ref(zig(3,10),2) and ref(zig(3,10),2)<=ref(zig(3,10),3);
级卖1:=zig(3,10)<ref(zig(3,10),1) and ref(zig(3,10),1)>=ref(zig(3,10),2) and ref(zig(3,10),2)>=ref(zig(3,10),3);
级买2:=zig(3,20)>ref(zig(3,20),1) and ref(zig(3,20),1)<=ref(zig(3,20),2) and ref(zig(3,20),2)<=ref(zig(3,20),3);
级卖2:=zig(3,20)<ref(zig(3,20),1) and ref(zig(3,20),1)>=ref(zig(3,20),2) and ref(zig(3,20),2)>=ref(zig(3,20),3);
级买3:=zig(3,30)>ref(zig(3,30),1) and ref(zig(3,30),1)<=ref(zig(3,30),2) and ref(zig(3,30),2)<=ref(zig(3,30),3);
级卖3:=zig(3,30)<ref(zig(3,30),1) and ref(zig(3,30),1)>=ref(zig(3,30),2) and ref(zig(3,30),2)>=ref(zig(3,30),3);
级买4:=zig(3,55)>ref(zig(3,55),1) and ref(zig(3,55),1)<=ref(zig(3,55),2) and ref(zig(3,55),2)<=ref(zig(3,55),3);
级卖4:=zig(3,55)<ref(zig(3,55),1) and ref(zig(3,55),1)>=ref(zig(3,55),2) and ref(zig(3,55),2)>=ref(zig(3,55),3);
级买5:=zig(3,79)>ref(zig(3,79),1) and ref(zig(3,79),1)<=ref(zig(3,79),2) and ref(zig(3,79),2)<=ref(zig(3,79),3);
级卖5:=zig(3,79)<ref(zig(3,79),1) and ref(zig(3,79),1)>=ref(zig(3,79),2) and ref(zig(3,79),2)>=ref(zig(3,79),3);
买:=(级买1+级买2+级买3+级买4+级买5);
卖:=(级卖1+级卖2+级卖3+级卖4+级卖5);
drawtext(买>=2,50,''+numtostrn(买,0)+'级买'),color0000ff,linethick2,align1,layer0;
drawtext(卖>=2,50,''+numtostrn(卖,0)+'级卖'),color00ff00,linethick2,align1,layer0;
drawtext(买>=2,60,'★'),color0000ff,linethick3,align1;
drawtext(卖>=2,60,'★'),color00ff00,linethick3,align1;
low1:=trough(3,10 ,1);
选股:if(count(买>=2,10)=1and c>low1*1.02 and c<low1*1.06 and c>ref(c,1)*1.01 and dynainfo(4)>0,30,0),color00ffff,linethick2,layer0;
持有:last(zig(4,10)>ref(zig(4,10),1)),color0000ff ,stick,linethick2;
空仓:last(zig(4,10)<ref(zig(4,10),1)),color00ff00,stick,linethick2;
drawtext(barstatus=2 and 持有>0,110,'★升势【第'+numtostrn(持有,0)+'天】'),align2,color00ffff,linethick4,layer0;
drawtext(barstatus=2 and 空仓>0,110,'★跌势【第'+numtostrn(空仓,0)+'天】'),align2,colorff00ff,linethick4,layer0;
var18:=(close-llv(low,18))/(hhv(high,18)-llv(low,18))*100;
k18:=sma(var18,3,1);
d18:=sma(k18,3,1);
j18:(3*k18-2*d18),color0000ff,dotline;
var9:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(var9,3,1);
d:=sma(k,3,1);
j9:(3*k-2*d),color0000ff;
rsi:((sma(max((c - ref(c,1)),0),3,1) / sma(abs((c - ref(c,1))),3,1)) * 100),color00ff00,linethick1;
mid:=ma(close,21);
upper:=mid + 2*std(close,21);
lower:=mid - 2*std(close,21);
布林顶:stickline(cross(c,upper) ,90 ,100 ,8 , 0),color0000ff;
布林底:stickline(cross(c,lower) ,0 ,10 ,8 , 0),color00ffff;
倍量:stickline(vol/ref(vol,1)>2 ,0 ,10 , 8, 0),color0099ff;
筑底:=if(barscount(c)>20,cross(c,lower),1) and cross(zig(3,30),ref(zig(3,30),1)) and vol/ref(vol,1)>2;
关注筑底:stickline(筑底 ,20 ,30 ,8 , 0),colorff00ff;
变盘:=((zig(4,5)=zig(4,10) and zig(4,5)>ref(zig(4,5),1) and zig(4,10)>ref(zig(4,10),1)) or j9>95 or rsi>85);
当心变盘:stickline(变盘 ,90 ,80 ,4 , 0),colorff9900;
{高抛低吸}
sj:=wma(((2*c+h+l)/4-llv(l,5))/(hhv(h,5)-llv(l,5))*100,2);
zj:=wma(0.618*ref(sj,1)+0.382*sj,2);
drawtext(cross(sj,zj) and sj<30,0,'吸'),color00ffff,align1,linethick2;;
drawtext(cross(zj,sj) and sj>70,95,'抛'),color00ffff,align1,linethick2;
【c】主题变化为副图的源码:-----------------------------------------------------------------------------------------------------
{zig-金cj}
input:zf(10,0,30);
drawgbklast(c>0,strip(rgb(0,0,80),rgb(0,20,40),0));
{相似k线}
stickline(c>=ref(c,1),h,l,0,0),color0000ff;
stickline(close>=ref(c,1),o,c,2,0),color0055ff;
stickline(close<ref(c,1),h,l,0,0),color00ff00;
stickline(close<ref(c,1),o,c,2,0),colorff9900;
z10:zig(4,zf),colorff9900,linethick1,layer3;
partline(z10,z10>ref(z10,1),rgb(255,100,0)),linethick2,layer3;
持有:last(z10>ref(z10,1)),precis0 ,linethick0;
空仓:last(z10<ref(z10,1)),precis0,linethick0;
x:=barslast(dispstatus=1)+1;
jd:=hhvall(hhv(h,x))*1.15;
drawtext(barstatus=2 and 持有>0,jd,'★升势【第'+numtostrn(持有,0)+'天】'),align2,color00ffff,linethick4,layer0;
drawtext(barstatus=2 and 空仓>0,jd,'★跌势【第'+numtostrn(空仓,0)+'天】'),align2,colorff00ff,linethick4,layer0;
high1:=peak(4,zf,1);
low1:=trough(4,zf,1);
stickline(barstatus=2 and 空仓>0,high1,high1*(1-zf/100),15,0),colorff6600,linethick1,layer5;
stickline(barstatus=2 and 空仓>0,high1*(1-zf/100),high1*(1-zf/100),15,0),color00ffff,linethick1,layer5;
stickline(barstatus=2 and 持有>0,low1*1.03,low1*(1+zf/100),15,0),color0099dd,linethick1,layer6;
stickline(barstatus=2 and 持有>0,low1,low1*1.03,15,0),colorff6600,linethick1,layer5;
drawtext(cross(ref(high1,1),high1),high1*1.02,''+numtostrn(high1 ,2)+''),align1,color00ffff,linethick1;
drawtext(cross(low1,ref(low1,1)),low1,''+numtostrn(low1 ,2)+''),align1,color00ffff,linethick1;
high2:=peak(4,zf,2);
low2:=trough(4,zf ,2);
求高四:high1*low1/low2,color0000ff,pointdot,linethick4,layer0;
high1*low1/low2,color000999,linethick1;
求4看多:wma(l*high1/if(low1=l,low2,low1),2),color0000ff,dotline,linethick1;
求低四:high1*low1/high2,color00ff00,pointdot,linethick4,layer0;
high1*low1/high2,color777000,linethick1;
求4看空:wma(h*low1/if(high1=h,high2,high1),2),color00ff00,dotline,linethick1;
上下:wma((求4看多+求4看空)/2,3);
partline(上下 ,(上下>ref(上下,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),linethick2,layer0;
fillrgn(求高四,上下,求高四>上下,rgb(80,0,60)),layer7;
fillrgn(上下,求低四,上下>求低四,rgb(0,0,150)),layer7;
drawtext( barstatus=2,求高四 ,' '+numtostrn(求高四 ,2)+'元' ),color00ffff,linethick2;
drawtext( barstatus=2,求低四 ,' '+numtostrn(求低四 ,2)+'元' ),color00ffff,linethick2;
drawtextabs(5,5,'【zig(4,'+zf+')】〓转折阻力【'+numtostrn(high1,2)+'(h1)*'+numtostrn(low1,2)+'(l1)/'+numtostrn(low2,2)+'(l2)='+numtostrn(求高四,2)+'元(高四)】〓'),color00ffff,linethick2;
drawtextabs(5,25,'【zig(4,'+zf+')】〓转折支撑【'+numtostrn(high1,2)+'(h1)*'+numtostrn(low1,2)+'(l1)/'+numtostrn(high2,2)+'(h2)='+numtostrn(求低四,2)+'元(低四)】〓'),color00ffff,linethick2;
{高抛低吸}
sj:=wma(((2*c+h+l)/4-llv(l,5))/(hhv(h,5)-llv(l,5))*100,2);
zj:=wma(0.618*ref(sj,1)+0.382*sj,2);
drawtext(cross(sj,zj) and sj<30,l*0.99,'←吸'),color00ff00,layer3;
drawtext(cross(zj,sj) and sj>70,h*1.01,'←抛'),color0077ff,layer3;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文把123求4组合到ZIG未来函数上取得阻力和支撑.(主副图.用法说明.源码.实测图.)公式下载 大智慧指标源码函数附图仅供学习研究。