image.png

 

    {买入结构}TA1:=C0,9)ORBACKSET(TJ13>0,TN1))*TN1;DRAWTEXT(TY1>0,L*0.98,VAR2STR(TY1,0)),COLORRED;DRAWTEXT(TN1=9,L*0.98,'9'),COLORGREEN;{卖出结构}TA2:=C>REF(C,4);TN2:=BARSLASTCOUNT(TA2);TJ21:=TN2=9;TJ23:=ISLASTBARANDBETWEEN(TN2,5,8);TY2:=(BACKSET(TJ21>0,9)ORBACKSET(TJ23>0,TN2))*TN2;DRAWTEXT(TY2>0,H*1.01,VAR2STR(TY2,0)),COLORFF00FF,DRAWABOVE;DRAWTEXT(TN2=9,H*1.01,'9'),COLORYELLOW,DRAWABOVE;

主图指标N:=CURRBARSCOUNT;{买入构}B:=C=9ANDREFXV(COUNT(B,9),8)=9ANDREF(B,1)=0,L,1),COLORRED;DRAWNUMBER(N=5ANDREFXV(COUNT(B,5),4)=5ANDCOUNT(B,2)=2ANDREF(B,1)=0,L,2),COLORRED;DRAWNUMBER(N=6ANDREFXV(COUNT(B,6),5)=6ANDCOUNT(B,2)=2ANDREF(B,1)=0,L,2),COLORRED;DRAWNUMBER(N=7ANDREFXV(COUNT(B,7),6)=7ANDCOUNT(B,2)=2ANDREF(B,1)=0,L,2),COLORRED;DRAWNUMBER(N>=8ANDREFXV(COUNT(B,8),7)=8ANDCOUNT(B,2)=2ANDREF(B,2)=0,L,2),COLORRED;DRAWNUMBER(N=4ANDREFXV(COUNT(B,4),3)=4ANDCOUNT(B,3)=3ANDREF(B,3)=0,L,3),COLORRED;DRAWNUMBER(N=5ANDREFXV(COUNT(B,5),4)=5ANDCOUNT(B,3)=3ANDREF(B,3)=0,L,3),COLORRED;DRAWNUMBER(N=6ANDREFXV(COUNT(B,6),5)=6ANDCOUNT(B,3)=3ANDREF(B,3)=0,L,3),COLORRED;DRAWNUMBER(N>=7ANDREFXV(COUNT(B,7),6)=7ANDCOUNT(B,3)=3ANDREF(B,3)=0,L,3),COLORRED;DRAWNUMBER(N=3ANDREFXV(COUNT(B,3),2)=3ANDCOUNT(B,4)=4ANDREF(B,4)=0,L,4),COLORRED;DRAWNUMBER(N=4ANDREFXV(COUNT(B,4),3)=4ANDCOUNT(B,4)=4ANDREF(B,4)=0,L,4),COLORRED;DRAWNUMBER(N=5ANDREFXV(COUNT(B,5),4)=5ANDCOUNT(B,4)=4ANDREF(B,4)=0,L,4),COLORRED;DRAWNUMBER(N>=6ANDREFXV(COUNT(B,6),5)=6ANDCOUNT(B,4)=4ANDREF(B,4)=0,L,4),COLORRED;DRAWNUMBER(N=2ANDREFXV(COUNT(B,2),1)=2ANDCOUNT(B,5)=5ANDREF(B,5)=0,L,5),COLORRED;DRAWNUMBER(N=3ANDREFXV(COUNT(B,3),2)=3ANDCOUNT(B,5)=5ANDREF(B,5)=0,L,5),COLORRED;DRAWNUMBER(N=4ANDREFXV(COUNT(B,4),3)=4ANDCOUNT(B,5)=5ANDREF(B,5)=0,L,5),COLORRED;DRAWNUMBER(N>=5ANDREFXV(COUNT(B,5),4)=5ANDCOUNT(B,5)=5ANDREF(B,5)=0,L,5),COLORRED;DRAWNUMBER(N=1ANDCOUNT(B,6)=6ANDREF(B,6)=0,L,6),COLORRED;DRAWNUMBER(N=2ANDREFXV(COUNT(B,2),1)=2ANDCOUNT(B,6)=6ANDREF(B,6)=0,L,6),COLORRED;DRAWNUMBER(N=3ANDREFXV(COUNT(B,3),2)=3ANDCOUNT(B,6)=6ANDREF(B,6)=0,L,6),COLORRED;DRAWNUMBER(N>=4ANDREFXV(COUNT(B,4),3)=4ANDCOUNT(B,6)=6ANDREF(B,6)=0,L,6),COLORRED;DRAWNUMBER(N=1ANDCOUNT(B,7)=7ANDREF(B,7)=0,L,7),COLORRED;DRAWNUMBER(N=2ANDREFXV(COUNT(B,3),1)=3ANDCOUNT(B,7)=7ANDREF(B,7)=0,L,7),COLORRED;DRAWNUMBER(N>=3ANDREFXV(COUNT(B,3),2)=3ANDCOUNT(B,7)=7ANDREF(B,7)=0,L,7),COLORRED;DRAWNUMBER(N=2ANDCOUNT(B,8)=8ANDREF(B,8)=0,L,8),COLORRED;DRAWNUMBER(N>=2ANDREFXV(COUNT(B,2),1)=2ANDCOUNT(B,8)=8ANDREF(B,8)=0,L,8),COLORRED;DRAWNUMBER(N>=1ANDCOUNT(B,9)=9ANDREF(B,9)=0,L,9),COLORGREEN;{卖出结构}S:=C>REF(C,4);DRAWNUMBER(N=6ANDREFXV(COUNT(S,6),5)=6ANDREF(S,1)=0,H*1.01,1),COLORMAGENTA;DRAWNUMBER(N=7ANDREFXV(COUNT(S,7),6)=7ANDREF(S,1)=0,H*1.01,1),COLORMAGENTA;DRAWNUMBER(N=8ANDREFXV(COUNT(S,8),7)=8ANDREF(S,1)=0,H*1.01,1),COLORMAGENTA;DRAWNUMBER(N>=9ANDREFXV(COUNT(S,9),8)=9ANDREF(S,1)=0,H*1.01,1),COLORMAGENTA;DRAWNUMBER(N=5ANDREFXV(COUNT(S,5),4)=5ANDCOUNT(S,2)=2ANDREF(S,1)=0,H*1.01,2),COLORMAGENTA;DRAWNUMBER(N=6ANDREFXV(COUNT(S,6),5)=6ANDCOUNT(S,2)=2ANDREF(S,1)=0,H*1.01,2),COLORMAGENTA;DRAWNUMBER(N=7ANDREFXV(COUNT(S,7),6)=7ANDCOUNT(S,2)=2ANDREF(S,1)=0,H*1.01,2),COLORMAGENTA;DRAWNUMBER(N>=8ANDREFXV(COUNT(S,8),7)=8ANDCOUNT(S,2)=2ANDREF(S,2)=0,H*1.01,2),COLORMAGENTA;DRAWNUMBER(N=4ANDREFXV(COUNT(S,4),3)=4ANDCOUNT(S,3)=3ANDREF(S,3)=0,H*1.01,3),COLORMAGENTA;DRAWNUMBER(N=5ANDREFXV(COUNT(S,5),4)=5ANDCOUNT(S,3)=3ANDREF(S,3)=0,H*1.01,3),COLORMAGENTA;DRAWNUMBER(N=6ANDREFXV(COUNT(S,6),5)=6ANDCOUNT(S,3)=3ANDREF(S,3)=0,H*1.01,3),COLORMAGENTA;DRAWNUMBER(N>=7ANDREFXV(COUNT(S,7),6)=7ANDCOUNT(S,3)=3ANDREF(S,3)=0,H*1.01,3),COLORMAGENTA;DRAWNUMBER(N=3ANDREFXV(COUNT(S,3),2)=3ANDCOUNT(S,4)=4ANDREF(S,4)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N=4ANDREFXV(COUNT(S,4),3)=4ANDCOUNT(S,4)=4ANDREF(S,4)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N=5ANDREFXV(COUNT(S,5),4)=5ANDCOUNT(S,4)=4ANDREF(S,4)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N>=6ANDREFXV(COUNT(S,6),5)=6ANDCOUNT(S,4)=4ANDREF(S,4)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N=2ANDREFXV(COUNT(S,2),1)=2ANDCOUNT(S,5)=5ANDREF(S,5)=0,H*1.01,5),COLORMAGENTA;DRAWNUMBER(N=3ANDREFXV(COUNT(S,3),2)=3ANDCOUNT(S,5)=5ANDREF(S,5)=0,H*1.01,5),COLORMAGENTA;DRAWNUMBER(N=4ANDREFXV(COUNT(S,4),3)=4ANDCOUNT(S,5)=5ANDREF(S,5)=0,H*1.01,5),COLORMAGENTA;DRAWNUMBER(N>=5ANDREFXV(COUNT(S,5),4)=5ANDCOUNT(S,5)=5ANDREF(S,5)=0,H*1.01,5),COLORMAGENTA;DRAWNUMBER(N=1ANDCOUNT(S,6)=6ANDREF(S,6)=0,H*1.01,6),COLORMAGENTA;DRAWNUMBER(N=2ANDREFXV(COUNT(S,2),1)=2ANDCOUNT(S,6)=6ANDREF(S,6)=0,H*1.01,6),COLORMAGENTA;DRAWNUMBER(N=3ANDREFXV(COUNT(S,3),2)=3ANDCOUNT(S,6)=6ANDREF(S,6)=0,H*1.01,6),COLORMAGENTA;DRAWNUMBER(N>=4ANDREFXV(COUNT(S,4),3)=4ANDCOUNT(S,6)=6ANDREF(S,6)=0,H*1.01,6),COLORMAGENTA;DRAWNUMBER(N=1ANDCOUNT(S,7)=7ANDREF(S,7)=0,H*1.01,7),COLORMAGENTA;DRAWNUMBER(N=2ANDREFXV(COUNT(S,3),1)=3ANDCOUNT(S,7)=7ANDREF(S,7)=0,H*1.01,7),COLORMAGENTA;DRAWNUMBER(N>=3ANDREFXV(COUNT(S,3),2)=3ANDCOUNT(S,7)=7ANDREF(S,7)=0,H*1.01,7),COLORMAGENTA;DRAWNUMBER(N=2ANDCOUNT(S,8)=8ANDREF(S,8)=0,H*1.01,8),COLORMAGENTA;DRAWNUMBER(N>=2ANDREFXV(COUNT(S,2),1)=2ANDCOUNT(S,8)=8ANDREF(S,8)=0,H*1.01,8),COLORMAGENTA;DRAWNUMBER(N>=1ANDCOUNT(S,9)=9ANDREF(S,9)=0,H*1.01,9),COLORYELLOW;副图指标AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),34,1)/SMA(ABS(CLOSE-AA),34,1)*1000;HHH:=BBB-LLV(BBB,36);短期:=(MA(HHH,2)*3+HHH*13)/16;中期:=MA(HHH,10);差值:短期-中期,NODRAW;CCC:=LLV(BBB,36)-BBB;短期二:=(MA(CCC,2)*3+CCC*13)/16;中期二:=MA(CCC,10);VB:=2*(短期-中期),NODRAW;乖离率6:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;乖离率12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;乖离率24:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;ZP:=乖离率6=0ANDVB>REF(VB,1),0,VB,1,0),COLORRED;STICKLINE(VB>=0ANDVBREF(中期,1),0,VB,1,1),COLORRED;STICKLINE(VBREF(VB,1),0,VB,1,1),COLORGREEN;STICKLINE(VBREF(中期,1),0,VB,2,-1),COLORRED;STICKLINE(VB>=0AND中期60ANDVB>0AND中期>50,VB,0,1,0),COLORBLUE;准备卖:IF(差值>60ANDVB>0AND中期>50,4,0),COLORBLUE;STICKLINE(差值>60ANDVB>0AND中期>100,VB,0,1,0),COLORCYAN;卖出:IF(差值>60ANDVB>0AND中期>100,4,0),COLORCYAN;坚决卖:IF(EVERY(差值>60ANDVB>0AND中期>100,2),4,0),COLORGREEN;DRAWICON(EVERY(差值>60ANDVB>0AND中期>100,2),VB,2);STICKLINE(VB>100,100,VB,1,0),COLORBROWN;STICKLINE(VB>200,200,VB,1,0),COLORLIRED;100,DOTLINE,COLORGRAY;DRAWTEXT_FIX(ISLASTBAR,0,0,0,'准备买~黄色'),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.12,0,0,'买入~洋红色'),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.24,0,0,'加仓~红箭头'),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0.36,0,0,'准备卖~蓝色'),COLORBLUE;DRAWTEXT_FIX(ISLASTBAR,0.48,0,0,'卖出~青色'),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.60,0,0,'坚决卖~绿箭头'),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,'{红色柱~买入}'),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0,0.24,0,'{绿色柱~卖出}'),COLORGREEN;

    简单来说,就是收盘价低于四天前的收盘价,这样的现象连续出现9次,到第9次的时候就是最低点,原理很简单,这里要强调一个连续,一定是收盘价低于四天前的收盘价连续不间隔,一直保持9次,才能算,附上图大家更直观看一下

    当这样的结构出现时,要配合100日均线,60日均线,30日均线,3条均线都是向上的,最好是30日均线大于60日均线大于100日均线,那么这时候你就抄个底,随后便有一波非常像样的拉升,如果,你能碰到出现9转后3日涨幅把前边的整个9转下跌都吃回去的话,恭喜你,你抄到暴涨股了。

    来,我们来看一下实例:

    这个神奇9转原理很简单,但他是著名交易大师汤姆迪马克的成名技术。我一开始也不信,但当我找到一个自动数九的程序后,翻了大量的上市公司,发现普遍精确存在。成功率真的很高。

    上图的买九,卖13就是程序自动标的。而且你还可以用选股程序自动找到当天达到买九的股票。

    附上源码,有兴趣的可以研究研究,如不知道如何导入,可以联系我,无偿奉上合成好的,并告诉你如何导入。

    t1:=ref(close,1)<ref(close,5);

    T2:=REF(CLOSE,2)<REF(CLOSE,6);

    T3:=REF(CLOSE,3)<REF(CLOSE,7);

    T4:=REF(CLOSE,4)<REF(CLOSE,8);

    T5:=REF(CLOSE,5)<REF(CLOSE,9);

    T6:=REF(CLOSE,6)<REF(CLOSE,10);

    T7:=REF(CLOSE,7)<REF(CLOSE,11);

    T8:=REF(CLOSE,8)<REF(CLOSE,12);

    DrawIcon(CL,close,14);

    百日线:=ma(close,100),NoTitle;

    均线2:=ma(close,60),NoTitle;

    均线3:=ma(close,30),NoTitle;

    每根平均值:=sum(abs(百日线),BarPos)/BarPos/10;

    b:=百日线-ref(百日线,21),NoDraw;

    a:=21*每根平均值;

    角度c:=90-(atan(a/b)*57.29578);

    角度cqr:iif(角度c>90,(180-角度c)*-1,角度c),NoDraw;

    CLqr:=角度cqr>0&&ref(CL,1)&&cl<>1&&角度cqr<1.1,NoDraw;

    DrawIcon(CLqr,CLOSE,1);

    CLqr2:角度cqr>0&&ref(CL,1)&&cl<>1,NoDraw;

    DrawIcon(CLqr2,CLOSE,6);

    DrawText(CLqr2,low-low*0.02,'买九'),LineThick26,ColorRed;

    n天前买九:ref(CLqr2,n天),NoDraw;

    ///drawtext(CL&&t9,low-low*0.02,'9'),ColorWhite;

    无差买9:=CL;

    无差买9节点:CL&&ref(CL,1)<>1,NoDraw;

    买十三基本:=close<ref(close,2);

    无差买9节点wz:BarsLast(无差买9节点,1),NoDraw;

    立qr:=十三买成立&&ref(十三买成立,1)<>1&&close<ref(close,无差买9节点wz);

    DrawText(十三立马买成立&&买十三基本&&买九计数=13&&close<ref(close,无差买9节点wz)or十三买成立qr,low-low*0.02,'13买'),LineThick26,Colorred;

    十三买选股zb:=十三立马买成立&&买十三基本&&买九计数=13&&close<ref(close,无差买9节点wz)or十三买成立qr;

    十三买选股:=ref(十三买选股zb,1),NoDraw;

    买13:十三立马买成立&&买十三基本&&买九计数=13&&close<ref(close,无差买9节点wz)or十三买成立qr,NoDraw;

    //卖点

    反t1:=ref(close,1)>ref(close,5);

    反T2:=REF(CLOSE,2)>REF(CLOSE,6);

    反T3:=REF(CLOSE,3)>REF(CLOSE,7);

    反T4:=REF(CLOSE,4)>REF(CLOSE,8);

    反T5:=REF(CLOSE,5)>REF(CLOSE,9);

    反T6:=REF(CLOSE,6)>REF(CLOSE,10);

    反T7:=REF(CLOSE,7)>REF(CLOSE,11);

    反T8:=REF(CLOSE,8)>REF(CLOSE,12);

    卖9:=角度cqr>0&&反CL,NoDraw;

    无差卖9节点:=反CL&&ref(反CL,1)<>1,NoDraw;

    //DrawIcon(无差卖9,CLOSE,7);

    无差卖9节点wz:=BarsLast(无差卖9节点,1),NoDraw;

    卖九计数:=count(十三基本,无差卖9节点wz+1),NoDraw;

    十三成立:=卖九计数>=13&&close>ref(close,BarsLast(卖九计数=8,1))&&Exist(十三立马成立,BarsLast(卖九计数=8,1))<>1,NoDraw;

    十三成立qr:=十三成立&&ref(十三成立,1)<>1;

    //DrawIcon(十三成立qr,high,3);

    DrawText(十三立马成立&&十三基本&&卖九计数=13or十三成立qr,high*1.01,'13卖'),LineThick26,ColorGreen;

    DrawText(十三基本&&卖九计数=12,high*1.0,'12'),LineThick26,ColorWhite;

    DrawText(十三基本&&卖九计数=11,high*1.01,'11'),LineThick26,ColorWhite;

    DrawText(十三基本&&卖九计数=8,high*1.01,'8'),LineThick26,ColorYellow;

    卖13:=十三立马成立&&十三基本&&卖九计数=13or十三成立qr;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。