最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧把123求4联系到ZIG未来函数上取得阻力支撑.(主副图.源码.说明)

    正文概述    2024-04-12 23:06:27  

    咱们把徐小明的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 STICKLINE(CLOSE 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 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),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),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),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),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),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)=1 AND C>LOW1*1.02 AND CREF(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) 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 STICKLINE(CLOSE
    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 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;
     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧把123求4联系到ZIG未来函数上取得阻力支撑.(主副图.源码.说明) 加入收藏