最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧股海波浪主图指标公式

    正文概述    2024-04-13 00:29:37  

    a:=(3*c+l+o+h)/6;
    X:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+
    14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)
    +7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+
    ref(a,20))/210;
    生命线:EMA(X,13),colorFF00FF,LINETHICK2;
    M:=MA((C+O+H+L)/4,2);
    M3:MA(M,3),COLOR8AFAAA;
    M5:MA(M3,5),COLORFF00FF;
    买入:crOSS(M3,M5),COLORRED;
    卖出:CROSS(M5,M3),COLOR00FF00;
    {k线修饰}
    STICKLINE(M3>=M5,H,L,1,1),COLORRED;
    STICKLINE(M3>=M5,OPEN,CLOSE,5,0),COLOR000099;
    STICKLINE(M3>=M5,OPEN,CLOSE,3,0),COLOR0000BB;
    STICKLINE(M3>=M5,OPEN,CLOSE,1,0),COLOR0000FF;
    STICKLINE(M3 STICKLINE(M3 STICKLINE(M3 STICKLINE(M3 {买入显示}
    DRAWTEXT(买入,LOW*0.98,'▲'),COLOR0000FF;
    DRAWTEXT(买入,LOW*0.975,'∣'),COLOR0000FF;
    DRAWTEXT(买入,LOW*0.975,'‖'),COLOR0000FF;
    {买出显示}
    DRAWTEXT(卖出,HIGH*1.02,'▼'),COLOR00FF00;
    DRAWTEXT(卖出,HIGH*1.025,'∣'),COLOR00FF00;
    DRAWTEXT(卖出,HIGH*1.025,'‖'),COLOR00FF00;
    {加仓}
    加仓:M3>REF(M3,1) AND REF(M3,1)M5 AND 买入<>1 AND 卖出<>1,COLORFF00FF;
    DRAWTEXT(加仓,LOW*0.98,'▲'),COLORFF00FF;
    STICKLINE(加仓,H,L,1,1),COLORFF00FF;
    STICKLINE(加仓,OPEN,CLOSE,5,0),COLOR660099;
    STICKLINE(加仓,OPEN,CLOSE,3,0),COLOR6600CC;
    STICKLINE(加仓,OPEN,CLOSE,1,0),COLORFF00FF;
    {减仓}
    减仓:M3REF(M3,2) AND M3>M5 AND 卖出<>1 AND 买入<>1,COLORYELLOW;
    DRAWTEXT(减仓,HIGH*1.02,'▼'),COLORYELLOW;
    STICKLINE(减仓,H,L,1,1),COLORYELLOW;
    STICKLINE(减仓,OPEN,CLOSE,5,0),COLOR00CCCC;
    STICKLINE(减仓,OPEN,CLOSE,3,0),COLOR33FFCC;
    STICKLINE(减仓,OPEN,CLOSE,1,0),COLOR00FFFF;
    {波浪顶底}
    TY:=C;
    HD:=FILTER(BacKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
    LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
    A2:=REF(C,BArslAST(HD));
    B2A:=REF(C,BARSLAST(LD));
    T1:=BARSLAST(HD) T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
    顶:IF(T1,A2,A2),COLOR00FF00,POINTDOT,LINETHICK2;
    STICKLINE(T1,A2,A2,9,0),COLOR00FF00;
    底:IF(T2,B2A,B2A),COLORFF00FF,POINTDOT,LINETHICK2;
    STICKLINE(T2,B2A,B2A,9,0),COLORFF00FF;
    【股海方舟】:0,COLORRED;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧股海波浪主图指标公式 加入收藏