最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 抓牛拐点

    正文概述    2024-04-13 11:59:50  


    N:=5;
    P1:=80;
    AAA:=(3*C+H+L+O)/6;
    VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
    VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
    VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3,POINTDOT;
    VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
    VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3,POINTDOT;
    VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
    JJ:=(HIGH+LOW+CLOSE)/3;
    QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
    QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
    QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
    QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
    QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
    DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;
    V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
    V5:=SMA(V2*120/FROMOPEN*5,2,1);
    V10:=SMA(V5,5,1);
    V20:=SMA(V10,5,1);
    DY:=CURRBARSCOUNT=1 AND C DY2:=REF(V2,1)-DY;
    异动:=CROSS(V2,REF(V2,1)*1.2) AND LONGCROSS(CLOSE,REF(C,1)*1.025,4) AND V/REF(MA(V,5),1)>2,COLORMAGENTA;
    抓牛:C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND REF(MACD,1) GD:=DY2O AND VAR3>VAR5 AND C/REF(C,1)>=1.02;
    GD2:=DY2VAR5;
    DRAWTEXT(CROSS(V2,REF(V2,1)*1.2) AND LONGCROSS(CLOSE,REF(C,1)*1.025,4) AND DDX/REF(MA(DDX,5),1)>2,0,'★'),COLORMAGENTA;
    MACD:="MACD.MACD",NODRAW;
    拐点:CROSS(C,VAR2) AND CROSS(C,VAR6) AND MACD<0 AND REF(MACD,1) STICKLINE(抓牛=1,0,8,2,0),COLORYELLOW;
    DRAWTEXT(抓牛=1,5,' 抓牛'),COLORYELLOW;
    STICKLINE(拐点=1,0,8,2,0),COLORMAGENTA;
    DRAWTEXT(拐点=1,4,' 拐点'),COLORMAGENTA;
    EMA13:EMA(C,5),COLORWHITE; {13-21-34-60}
    EMA21:EMA(C,13),COLORYELLOW;
    EMA34:EMA(C,21),COLORFF00FF;
    EMA60:MA(C,60),COLORFFCC66;
    {大阴线:大跌超2.3}
    C2:=REF(C,1);
    BG:=IF((C2-C)*100/C2>=2.3,1,0) OR IF((O-C)*100/O>=5,1,0){ OR IF((H-L)*100/REF(C,1)>5,1,0)};{第二个条件开盘价过高掉下来}
    BG2:=IF((H-L)*100/C2>=3.58,1,0);
    BB1:=L {卖点信号}
    SELL1:=BG AND BB1 ;
    {大阳线:升幅超2.64}
    BR:=IF((C-C2)*100/C2>=2.59,1,0) OR IF((C-O)*100/O>=4.5,1,0) OR IF((C-L)*100/L>5,1,0);{第二个条件开盘价太低升上来}
    STICKLINE(BR,O,C,3,0),COLORRED;
    {以下条件记住最近一次卖出点}
    DAY1:=BARSLAST(SELL1);
    JIA1:=REF(O,DAY1);
    JIA2:=REF(O,1);
    BB4:=C>JIA2;
    BB2:=H>JIA1;
    {买入信号}
    BUY1:=BR AND BB2 AND BB4;
    {记住最后一次买点}
    DAY2:=BARSLAST(BUY1);
    {买卖谁先}
    S1:=DAY1 B1:=DAY2 {画出卖出信号}
    {DRAWTEXT(S1,H*1.05,'S'),COLORGREEN;}
    STICKLINE(S1,O,C,3,0),COLORGREEN;
    {画出买入信号}
    {DRAWTEXT(B1,L-0.2,'B'),COLORRED;}
    STICKLINE(B1,H,L,0.3,0),COLORRED;
    STICKLINE(B1,O,C,3,1),LINETHICK2,COLORRED;
    {其它补充1:买点}
    AA2:=AMOUNT/VOL;
    BB3:=L CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;
    DD2:=L DD1:=L EE2:=VOL FF2:=BB3 AND CC2 AND DD2 AND EE2;
    老鼠仓:=BB3 AND CC2 AND DD1 AND EE2,LINETHICK0,COLOR0099FF;
    DRAWTEXT(老鼠仓,L*0.97,'老鼠仓'),COLOR0099FF;
    {DRAWTEXT(FF2,L*0.99,'买点'),COLOR00FFFF;}
    STICKLINE(FF2,H,L,0.3,0),COLOR00FFFF;
    {STICKLINE(FF2,O,C,3,1),LINETHICK2,COLOR00FFFF;}
    {检查买点是否成立}
    B4:=BARSLAST(FF2);{底点日期}
    E4:=B4<5;{5日内的线}
    F4:=E4 AND C>REF(C,1);
    STICKLINE(F4,H,L,0.3,0),COLOR00FFFF;
    {其它补充2:卖点}
    A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
    A3:=H>MA(C,5)*1.12;
    AA:= A2 AND A3;
    DRAWTEXT(AA,H*1.05,'卖点'),COLORFF0000;
    STICKLINE(AA,H,L,0.3,0),COLORFF0000;
    {STICKLINE(AA,H,L,3,0),COLORFF0000;};
    {补充阳光买点}


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 抓牛拐点 加入收藏