ZIG能把涨跌幅转折点一个不落显示出来.你敢不敢驾驭它.(源码.附图.说明)介绍
ZIG能把涨跌幅转折点一个不落显示出来.你敢不敢驾驭它.(源码.附图.说明)
函数ZIG(3,10)能把大于10%涨跌幅转折点一个不落显示出来.就看你敢不敢驾驭它.而不怕被信号飘逸咬着.(源码.附图.说明)
那么多公式里能够一次不落的把涨跌幅大于10%转折点反映出来只有函数ZIG(3,10).可以说是独一无二.我们能不能驾驭这个指标买卖股票呢.”如果“能够按照ZIG的信号买卖股票.那你就是只挣不赔的股神了. 然而谁都知道这是不可能的.因为ZIG这个未来函数.常常是说话不算数的.又是个得理不让人的坏家伙.我们能不能摸透他的脾气.咱们也来个【道高一尺魔高一丈】如何.咱们不和它争气.让他三分.赚钱就跑.不等信号飘逸咱们走人了.遇到机会再回来.
我是明知有虎偏向虎山行.因为虎身上全是宝贝.太有诱惑力了.ZIG就是猛虎.但是函数里只有他的转折点是非常准确的.我也是费了九牛二虎力气.花了好几天的时间.去摸透他的脾气.信号飘逸是太坏了.为此我增加了平时不用的图形.不过咱们还是不可轻视.大家慢慢研究研究.再使用这个公式.就是要吃透ZIG的脾气再用他.几天来我试用还可以.完全再掌握之中.特别是当日K线的那个图形很重要.
我就按照这个思路编辑一个主图.配上幅图.叫他们【相得益彰】.咱们才好【从中渔利】
主图公式源码如下:-----------------------------------------------------------------------------------其中参数是ZIG的涨幅一般设置为10%当然是可变的-------
INPUT:Z,(5,0,50);
DRAWGBKlast(c>0,strip(RGB(0,0,190),RGB(0,40,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;
{通道}
CC:=WMA(C,3); HH:=HHV(H,3); LL:=LLV(L,3);
ZC:=(2*CC+HH+LL)/4;
WM3:WMA(ZC,3),COLORFF9900;
PARTLINE(WM3 ,(WM3>REF(WM3,1))-1,rgb(0,150,255),1,rgb(255,150,0) ),LINETHICK2,LAYER0;
MID : WMA(ZC,18),COLOR00ffFF,DOTLINE;
UPPER: MID + 2*STD(ZC,18),COLOR0077FF;
LOWER: MID - 2*STD(ZC,18),COLORFF9900;
FILLRGN(UPPER,MID,UPPER>MID,RGB(60,0,60)),LAYER7;
FILLRGN(LOWER,MID,LOWER<MID,RGB(20,20,20)),LAYER7;
{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,L-0.12,''+NUMTOSTRN(买,0)+'级买'),COLOR00FFFF,LINETHICK3,ALIGN1,LAYER0;
DRAWTEXT(买>=2,L-0.03,'★'),COLOR0000FF,LINETHICK3,ALIGN1,LAYER0;
DRAWTEXT(卖>=2,H+0.2,''+NUMTOSTRN(卖,0)+'级卖'),COLOR00FFFF,LINETHICK3,ALIGN1,LAYER0;
DRAWTEXT(卖>=2,H+0.12,'★'),COLOR00FF00,LINETHICK3,ALIGN1,LAYER0;
{股价趋势:}
Z10:ZIG(3,Z,),COLOR00FF00,LINETHICK2,LAYER3;
PARTLINE(Z10,Z10>REF(Z10,1),rgb(255,50,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.06;
DRAWTEXT(barstatus=2 AND 持有>0,JD,'★升势【第'+NUMTOSTRN(持有,0)+'天】'),ALIGN2,Color00FFff,linethick4,LAYER0;
DRAWTEXT(barstatus=2 AND 空仓>0,JD,'★跌势【第'+NUMTOSTRN(空仓,0)+'天】'),ALIGN2,ColorFF00FF,linethick4,LAYER0;
Low1:=TROUGH(3,Z, ,1);
High1:=PEAK(3,Z,,1);
STICKLINE(BARSTATUS=2 AND 持有>0,Low1,Low1,150,1),COLOR00FF00,LINETHICK2,LAYER4;
STICKLINE(BARSTATUS=2 AND 持有>0,Low1*1.03,Low1*(1+Z,/100),25,0),COLOR0099DD,LINETHICK1,LAYER6;
STICKLINE(BARSTATUS=2 AND 持有>0,Low1,Low1*1.03,25,0),COLORFF9900,LINETHICK1,LAYER5;
STICKLINE(BARSTATUS=2 AND 空仓>0,High1,High1*(1-Z,/100),25,0),COLORff9900,LINETHICK1,LAYER5;
STICKLINE(BARSTATUS=2 AND 空仓>0,High1*(1-Z,/100),High1*(1-Z,/100),25,0),COLOR00ffFF,LINETHICK1,LAYER5;
STICKLINE(BARSTATUS=2 AND 空仓>0,High1,High1,150,1),COLOR0099ff,LINETHICK2,LAYER4;
DRAWTEXT(barstatus=2 AND 空仓>0,High1,' 【'+NUMTOSTRN(High1,2)+'元】'),ALIGN1,Color00FFFF,linethick1,LAYER0;
DRAWTEXT(barstatus=2 AND 持有>0,Low1,' 【'+NUMTOSTRN(Low1,2)+'元】'),ALIGN1,Color00FFFF,linethick1,LAYER0;
DRAWTEXTABS(3,10,IFS((持有>0),'【ZIG(3,'+Z,+')】低点转折上涨小于【'+Z,+'%='+NUMTOSTRN(Low1*(1+Z,/100),2)+'元】时如果【C='+C+'元】低于【转折价='+Low1+'元】趋势将向下飘逸','')),LINETHICK2,Color00FFFF;
DRAWTEXTABS(3,10,IFS((空仓>0),'【ZIG(3,'+Z,+')】高点转折下跌小于【'+Z,+'%='+NUMTOSTRN(High1*(1-Z,/100),2)+'元】时如果【C='+C+'元】高于【转折价='+High1+'元】趋势将向上飘逸','')),LINETHICK2,Color9999FF;
{RSI.KDJ}
var6:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
股价趋势:=ZIG(3,5);
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.98,'【RSI:'+NUMTOSTRN(RSI,0)+'】'),COLOR00FFFF,LINETHICK2,ALIGN2;
DRAWTEXT(DISPSTATUS=2,JD*0.965,'【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,'←吸'),COLOR00FFFF,LAYER3;
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H,'←抛'),COLOR00FFFF,LAYER3;
==============【1】先摸清未来函数的脾气.用以下两个方面几句语句就可以清清楚楚知道这个未来函数的性格提前知道在没发生飘逸前的各种数据.有利于咱们及时应对
【A】现在如果是转折低点已经形成.那么我们就知道现在是升势第几天.有没有发出变盘信号:--------------------------------------------
【B】现在如果是转折高点已经形成.那么我们就知道现在是跌势第几天.有没有发出变盘信号:------------------------------------------
==================【2】同时在主图当天的K线上直接标示图形.转折的高低点.小于.大于10%的位置.获利3%的保本位置.●如果现在是升势.基线就是转折点的价格.收盘价不低于这个价格转折的就可以成立.低于这个价格.信号飘逸升势不符存在.价格大于绿框框获利达到3%以上看不好就跑.反正不赔钱.金黄框框以上.是获利10%此时就是跌下去.也不会飘逸本次低点转折点.转折线的存在.你把握好不等股价跌进金黄框框.你早已跑了.
●当跌势转折点形成。就是跌势确立.你不可轻易进入.也有可能是股价超过转折高点.下跌的转折线飘逸不复存在.继续升势.如果没卖.那就继续赚钱.如果已经卖了.反正是获利了结.咱们不后悔.一直跌倒10%跌势才能确立.才能说明转折成立.此时本次跌势在不会飘逸了.
总之我们用ZIG(3,10)不管涨跌只要达到10%以上就不会再飘逸了.咱们进一层说在转折以后涨跌幅度没超过10%以前都有可能产生飘逸---------—就是说ZIG(3,10)有涨跌幅10%以内的涨跌趋势的不确定性--------------------.正因为这个道理咱们在主图.幅图.用文字.用图形.都编辑了补助信号.你不可以【视而不见】.
=================【3】没人主张【孤听寡闻】必须经常【环顾四周】加进了【高抛低吸】【四色通道】【RSI.KDJ.BOLL】都是你的好帮手.好参谋.给你创造盈利而不被【ZIG】飘逸咬伤的条件.我们既要利用【ZIG】可用信号那一部分.又要防备被飘逸那一部分.那叫【知己知彼百战不殆】吧.不要怕【ZIG】飘逸.它的飘逸还是有据看查的.你千万要【胆大心细】赚钱的机会才会多多.
我不想劝你使用【ZIG】但是我以此公式告诉你.这里编辑过程中还是花费不少新的语句.来说明这个未来函数的脾气和特性.我们既然来到股市.就要全面学习.开动脑筋.用”大“智慧赚钱才是唯一的目的.不可以用狭义的视觉看问题.见到【未来函数】就唯恐躲之而无不及.要我说凡事都是【有利有弊】的.不是吗. 有那么一天你能够【道高一尺魔高一丈】善于使用【ZIG】赚钱.你就是炒股高手了.【修行磨炼的功夫】高低.就看你了.
------------咱们先学习我的解释.再加上你的领会.才能熟能生巧.看来使用未来函数看说明比用公式还重要.弄不好飘逸是要咬人的.------------------
副图公式源码如下:------------------------------是配合主图补充而设置的.用来说明主图不足的地方.是为了防止信号飘逸你没有预料到而被未来函数咬着.这些补助信号不可小视.是我们利用未来函数必须的参考.他能及时的提醒你是不是应该买卖股票.
DRAWGBKlast(c>0,strip(RGB(0,0,80),RGB(0,0,0),0));
m13:=ZIG(3,13);
A:=if(cross(m13,ref(m13,1))and ref(m13,1)<=m13, m13*1.2,ZIG(3,10));
PARTLINE(A,A>REF(A,1),rgb(255,0,0),A<=REF(A,1),rgb(0,255,0) ),LINETHICK3,LAYER0;
DRAWGBK(m13>REF(m13,1) ,STRIP(RGB(0,0,255),RGB(80,0,80),0)),LAYER3;{------}
MID:=MA(CLOSE,21);
UPPER:=MID + 2*STD(CLOSE,21);
LOWER:=MID - 2*STD(CLOSE,21);
var1:=zig(3,30);
var2:=ref(var1,1);
var3:=cross(C,LOWER);
var3D:=cross(C,UPPER);
var4:=cross(var1,var2);
LC:=REF(C,1);
RSI:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100),LINETHICK0;
var4R:=(RSI>85);
var5:=vol/REF(vol,1)>2;
ZAB:=if(BARSCOUNT(c)>20,var3,1) and var4 and var5;
关注筑底:if(ZAB,A,A),stick,color0000ff,linethick1,LAYER5;
if(ZAB,A,A*0.8),stick,color0022ff,linethick1,LAYER4;
if(ZAB,A,A*0.6),stick,color0044ff,linethick1,LAYER4;
if(ZAB,A,A*0.4),stick,color0077ff,linethick1,LAYER4;
if(ZAB,A,A*0.2),stick,color0099ff,linethick1,LAYER4;;
if(ZAB,A,A*0.1),stick,color00BBff,linethick1,LAYER4;
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);
股价趋势:=ZIG(3,5);
当心变盘:if( (股价趋势=m13 and 股价趋势>ref(股价趋势,1) and m13>ref(m13,1)) OR J>95 OR var4R,A*1.3,A),stick,color00ffff,linethick1,LAYER7;
当心下跌:if(cross(ref(m13,1),m13)and ref(m13,1)>=m13 ,A*1.3 ,A ),stick,colorgreen,linethick1,LAYER6;
布顶:STICKLINE(var3D ,a*0.5 ,a*0.8 ,8 , 0),color0000FF,LAYER0;
布底:STICKLINE(var3 ,0 ,a*0.7 ,8 , 0),colorFF9900,LAYER0;
长底:STICKLINE(var4 ,0 ,a*0.5 ,8 ,0 ),color999999,LAYER0;
倍量:STICKLINE(var5 ,0 ,a*0.2 , 8, 0),color00ffff,LAYER0;
JJX:STICKLINE(J<10 ,0 ,a*0.1 , 8, 0),color0000ff,LAYER0;
JJD:STICKLINE(J>90 ,a*0.9 ,a , 8, 0),color00ff00,LAYER0;
RSID:STICKLINE(RSI>81 ,a*0.9 ,a*0.8 , 8, 0),color0077ff,LAYER0;
{持有.空仓}
持有:LAST(m13>ref(m13,1)),PRECIS0 ,LINETHICK0;
空仓:LAST(m13<ref(m13,1)),PRECIS0,LINETHICK0;
布林低:COUNT(var3>0 OR var5>0,空仓),PRECIS0,LINETHICK0;
布林顶:COUNT(var3D=1 ,持有),PRECIS0,LINETHICK0;
变盘:COUNT(当心变盘>A,持有),PRECIS0,LINETHICK0;
变盘B:COUNT(当心变盘>A,空仓),PRECIS0,LINETHICK0;
下跌:COUNT(当心下跌>A,持有),PRECIS0,LINETHICK0;
DRAWRECTABS(3,2 ,590 ,55 , rgb(20,0,40)),color0044FF,LINETHICK2,LAYER2;
DRAWTEXTABS(10,5,IFS((A>REF(A,1)),'★升势【第'+NUMTOSTRN(持有,0)+'天】发出预警【'+NUMTOSTRN(变盘,0)+'次】当心下跌,布林顶【'+NUMTOSTRN(布林顶+下跌,0)+'次】','')),linethick4,color00FFFF;
DRAWTEXTABS(10,5,IFS((A<REF(A,1)),'★跌势【第'+NUMTOSTRN(空仓,0)+'天】发出预警【'+NUMTOSTRN(变盘B,0)+'次】倍量.布林低【'+NUMTOSTRN(布林低,0)+'次】','')),linethick4,color00FF00;
N:=10;
High1:=PEAK(3,N,1);
Low1:=TROUGH(3,N ,1);
drawtextabs(5,30,IFS((A>REF(A,1)),'【ZIG(3,10)低点转向价格C='+NUMTOSTRN(Low1,2)+'元.高于'+N+'%:的价格是'+NUMTOSTRN(Low1*(1+N/100),2)+'元.现在涨幅是'+NUMTOSTRN((C-Low1)/Low1*100,2)+'%】','')),Color00ffFF,linethick2;
drawtextabs(5,30,IFS((A<REF(A,1)),'【ZIG(3,10)高点转向价格C='+NUMTOSTRN(High1,2)+'元.低于'+N+'%:的价格是'+NUMTOSTRN(High1*(1-N/100),2)+'元.现在跌幅是'+NUMTOSTRN((C-High1)/High1*100,2)+'%】','')),Color00FF00,linethick2;
这是用未来函数的选股公式,我们加进了其他内容.不是仅仅用未来函数.如果我们仅仅利ZIG的买入信号成功率都在90%以上.可是我们不敢那么用就是害怕被飘逸咬着.才增加了附带条件成功率降低我们反而觉得可靠了
{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);
级买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);
级买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);
Low1:=TROUGH(3,10 ,1);
买:COUNT((级买1+级买2+级买3+级买4+级买5)>=2,15)=1 AND C>LOW1*1.05 AND C<LOW1*1.08 AND C>REF(C,1)*1.01 AND DYNAINFO(4)>0;
我来说明选股公式的含义.大家能够明白选股的思路.也好按照自己的想法调整适合自己的需要.一旦趋势变化你就能【及时应变】----------没有一成不变的公式---------------------
选股公式里这一句是15天里出现买入在二级以上.而且现在在转折点以上的涨幅百分之五到百分之八之间.今天收阳. 【 DYNAINFO(4)>0-----开盘价大于零.就是剔除没开盘的股票】
gd23321