• 网站首页
  • 股票池
  • 通达信公式
  • 大智慧公式
  • 同花顺公式
  • 套装公式
  • 指标专题
  • 股票内参
  • 滚动播报

    通达信公式

    当前位置: 主页 > 通达信公式

    通达信最牛主图回调预测撑压线黄金分割线板块信息未加密选股指标公式源码

    来源:网络|编辑:小编|时间:2022-08-02|栏目:通达信公式

    N:=72;
    M:=1357;
    P1:=151;
    P2:=14;
    {回调预测-M=200-1000-738}
    高:=REF(HHV(H,N),3);
    顶:REFDATE(高,DATE),COLORRED;
    Z1:REFDATE(高/1.0809,DATE),POINTDOT,LINETHICK1,COLORBLUE;
    Z2:REFDATE(高/1.1618,DATE),POINTDOT,LINETHICK1,COLORBLUE;
    Z3:REFDATE(高/1.2558,DATE),POINTDOT,LINETHICK1,COLORmaGENTA;
    Z4:REFDATE(高/1.4589,DATE),POINTDOT,LINETHICK1,COLORBLUE;
    Z5:REFDATE(高/1.5770,DATE),POINTDOT,LINETHICK1,COLORWHITE;
    {Z6:REFDATE(高/1.8322,DATE),POINTDOT,LINETHICK1,COLORBLUE;
    Z7:REFDATE(高/1.9804,DATE),POINTDOT,LINETHICK1,COLORCYAN;
    Z8:REFDATE(高/2.3008,DATE),POINTDOT,LINETHICK1,COLORBLUE;
    Z9:REFDATE(高/2.4870,DATE),POINTDOT,LINETHICK1,COLORRED;}
    Z:REFDATE(高/(M/1000),DATE),LINETHICK4,COLORBLUE;
    支:REFDATE(高/(M/1000),DATE),LINETHICK2,COLORWHITE;
    DRAWTEXT(ISLASTBAR,顶,'顶'),COLORRED;
    DRAWTEXT(ISLASTBAR,Z1,'8.09'),COLORCYAN;
    DRAWTEXT(ISLASTBAR,Z2,'16.18'),COLORCYAN;
    DRAWTEXT(ISLASTBAR,Z3,'25.58'),COLORCYAN;
    DRAWTEXT(ISLASTBAR,Z4,'45.98'),COLORCYAN;
    DRAWTEXT(ISLASTBAR,Z5,'57.7'),COLORCYAN;
    {DRAWTEXT(ISLASTBAR,Z6,'83.22'),COLORCYAN;
    DRAWTEXT(ISLASTBAR,Z7,'98.04'),COLORCYAN;
    DRAWTEXT(ISLASTBAR,Z8,'130.08'),COLORCYAN;
    DRAWTEXT(ISLASTBAR,Z9,'148.7'),COLORCYAN;}
    DRAWKLINE(H,O,L,C);
    {龙抬头Ⅲ}
    PL5:=zig(3,5);
    EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
    EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
    PL10:=ZIG(3,10);
    EN2:=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);
    EX2:=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);
    PL20:=ZIG(3,20);
    EN3:=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);
    EX3:=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);
    PL40:=ZIG(3,40);
    走强1:=BArslAST(PL5<REF(PL5,1));
    走弱1:=BARSLAST(PL5>REF(PL5,1));
    走强2:=BARSLAST(PL10<REF(PL10,1));
    走弱2:=BARSLAST(PL10>REF(PL10,1));
    走强3:=BARSLAST(PL20<REF(PL20,1));
    走弱3:=BARSLAST(PL20>REF(PL20,1));
    ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
    ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
    DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
    DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
    ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
    ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
    DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
    DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
    DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'★龙抬头Ⅲ'),COLOR00FFFF LINETHICK2;
    {自动画线}
    A1:=REF(H,N)=HHV(H,2*N+1);
    B1:=FILTER(A1,N);
    C1:=BacKSET(B1,N+1);
    D1:=FILTER(C1,N);{高点}
    A2:=REF(L,N)=LLV(L,2*N+1);
    B2:=FILTER(A2,N);
    C2:=BACKSET(B2,N+1);
    D2:=FILTER(C2,N);{低点}
    E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;
    E2:=(H+L)/2;{高低点出现在同一k线上时可作取舍}
    H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
    L1:=(D2 AND NOT(D1 AND E1<E2));
    H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;
    F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));
    G1:=F1>REF(F1,1); I1:=BACKSET(G1,2);
    LD:=I1>REF(I1,1),LINETHICK0;{过滤后低点}
    L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;
    X2:=REF(BARSLAST(L2),1)+1;
    F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));
    G2:=F2>REF(F2,1);
    I2:=BACKSET(G2,2);
    HD:=I2>REF(I2,1),LINETHICK0;{过滤后高点}
    R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
    S1:=R1>REF(R1,1); {前一高}
    T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
    U1:=T1>REF(T1,1); {前一低}
    R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);
    S2:=R2>REF(R2,1); {前二高}
    T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
    U2:=T2>REF(T2,1); {前二低}
    T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);
    U3:=T3>REF(T3,1); {前三低}
    T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);
    U4:=T4>REF(T4,1); {前四低}
    R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);
    S3:=R3>REF(R3,1); {前三高}
    R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);
    S4:=R4>REF(R4,1); {前四高}
    ★压力1:DRAWLINE(S2,H,S1,H,1),COLORLIMAGENTA,LINETHICK1;
    ★支撑1:DRAWLINE(U2,L,U1,L,1),COLOR8FBC8F,LINETHICK1;
    ★压力2:DRAWLINE(S3,H,S2,H,1),COLORFF8000;
    ★支撑2:DRAWLINE(U3,L,U2,L,1),COLOR99CC32;
    ★压力3:DRAWLINE(S4,H,S3,H,1),COLOR0000FF;
    ★支撑3:DRAWLINE(U4,L,U3,L,1),COLOR00FF7F;
    DRAWICON(S2,H*1.01,10);
    DRAWICON(S3,H*1.01,10);
    DRAWNUMBER(S2,H*1.02,H),COLORCFB53B;
    DRAWNUMBER(S1,H*1.02,H),COLORCFB53B;
    DRAWNUMBER(S3,H*1.02,H),COLORCFB53B;
    DRAWICON(U1,L*0.99,11);
    DRAWICON(U2,L*0.99,11);
    DRAWICON(U3,L*0.99,11);
    DRAWICON(U4,L*0.99,11);
    DRAWNUMBER(U1,L*0.98,L),COLORGREEN;
    DRAWNUMBER(U2,L*0.98,L),COLORGREEN;
    DRAWNUMBER(U3,L*0.98,L),COLORGREEN;
    DRAWNUMBER(U4,L*0.98,L),COLORGREEN;
    {十战七胜}
    A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
    A4:=SMA(A3,3,1);
    A5:=SMA(A4,3,1);
    A6:=3*A4-2*A5;
    A7:=C-REF(C,1);
    A8:=100*ema(EMA(A7,6),6)/EMA(EMA(Abs(A7),6),6);
    买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND crOSS(A8,MA(A8,2));
    DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORBLUE;
    STICKLINE(买,OPEN,CLOSE,2,0),COLORBLUE;
    Z11:=STRCAT(HYBLOCK,' ');
    Z22:=STRCAT(Z11,FGBLOCK);
    Z33:=STRCAT(Z22,DYBLOCK);
    Z44:=STRCAT(Z33,' ');
    DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z44,GNBLOCK)),COLORGREEN;
    MA1:MA(CLOSE,5);
    MA2:MA(CLOSE,10);
    MA3:MA(CLOSE,20);

    MA4:MA(CLOSE,60);

    image.png



    未来函数检测公式代码域:

    N:=72;M:=1357;P1:=151;P2:=14;{回调预测-M=200-1000-738}高:=REF(HHV(H,N),3);顶:REFDMTE(高,DMTE),COLORRED;Z1:REFDMTE(高/1.0809,DMTE),POINTDOT,LINETHICK1,COLORBLUE;Z2:REFDMTE(高/1.1618,DMTE),POINTDOT,LINETHICK1,COLORBLUE;Z3:REFDMTE(高/1.2558,DMTE),POINTDOT,LINETHICK1,COLORmaGENTM;Z4:REFDMTE(高/1.4589,DMTE),POINTDOT,LINETHICK1,COLORBLUE;Z5:REFDMTE(高/1.5770,DMTE),POINTDOT,LINETHICK1,COLORWHITE;{Z6:REFDMTE(高/1.8322,DMTE),POINTDOT,LINETHICK1,COLORBLUE;Z7:REFDMTE(高/1.9804,DMTE),POINTDOT,LINETHICK1,COLORCYMN;Z8:REFDMTE(高/2.3008,DMTE),POINTDOT,LINETHICK1,COLORBLUE;Z9:REFDMTE(高/2.4870,DMTE),POINTDOT,LINETHICK1,COLORRED;}Z:REFDMTE(高/(M/1000),DMTE),LINETHICK4,COLORBLUE;支:REFDMTE(高/(M/1000),DMTE),LINETHICK2,COLORWHITE; DRMWTEXT(ISLMSTBMR,顶,'顶'),COLORRED;DRMWTEXT(ISLMSTBMR,Z1,'8.09'),COLORCYMN;DRMWTEXT(ISLMSTBMR,Z2,'16.18'),COLORCYMN;DRMWTEXT(ISLMSTBMR,Z3,'25.58'),COLORCYMN;DRMWTEXT(ISLMSTBMR,Z4,'45.98'),COLORCYMN;DRMWTEXT(ISLMSTBMR,Z5,'57.7'),COLORCYMN;{DRMWTEXT(ISLMSTBMR,Z6,'83.22'),COLORCYMN;DRMWTEXT(ISLMSTBMR,Z7,'98.04'),COLORCYMN;DRMWTEXT(ISLMSTBMR,Z8,'130.08'),COLORCYMN;DRMWTEXT(ISLMSTBMR,Z9,'148.7'),COLORCYMN;}DRMWKLINE(H,O,L,C); {龙抬头Ⅲ}PL5:=zig(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) MND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) MND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) MND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) MND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) MND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) MND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) MND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) MND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) MND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) MND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) MND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) MND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BMrslMST(PL5<REF(PL5,1));走弱1:=BMRSLMST(PL5>REF(PL5,1));走强2:=BMRSLMST(PL10<REF(PL10,1));走弱2:=BMRSLMST(PL10>REF(PL10,1));走强3:=BMRSLMST(PL20<REF(PL20,1));走弱3:=BMRSLMST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRMWTEXT(EN3 MND ZTJZ10=1,L*0.93,'★龙抬头Ⅲ'),COLOR00FFFF LINETHICK2;{自动画线}M1:=REF(H,N)=HHV(H,2*N+1); B1:=FILTER(M1,N); C1:=BacKSET(B1,N+1); D1:=FILTER(C1,N);{高点}M2:=REF(L,N)=LLV(L,2*N+1); B2:=FILTER(M2,N); C2:=BMCKSET(B2,N+1); D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低点出现在同一k线上时可作取舍}H1:=(D1 MND NOT(D2 MND E1>=E2)) OR ISLMSTBMR OR BMRSCOUNT(C)=1;L1:=(D2 MND NOT(D1 MND E1<E2)); H2:=D1 MND NOT(D2 MND E1>=E2);X1:=REF(BMRSLMST(H1),1)+1; F1:=BMCKSET(H1 MND COUNT(L1,X1)>0,LLVBMRS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1); I1:=BMCKSET(G1,2); LD:=I1>REF(I1,1),LINETHICK0;{过滤后低点}L2:=LD OR ISLMSTBMR OR BMRSCOUNT(C)=1;X2:=REF(BMRSLMST(L2),1)+1; F2:=BMCKSET(L2 MND COUNT(H2,X2)>0,HHVBMRS(IF(H2,H,0),X2));G2:=F2>REF(F2,1); I2:=BMCKSET(G2,2); HD:=I2>REF(I2,1),LINETHICK0;{过滤后高点}R1:=BMCKSET(ISLMSTBMR,BMRSLMST(HD)+1); S1:=R1>REF(R1,1); {前一高}T1:=BMCKSET(ISLMSTBMR,BMRSLMST(LD)+1); U1:=T1>REF(T1,1); {前一低}R2:=BMCKSET(S1,REF(BMRSLMST(HD),1)+2); S2:=R2>REF(R2,1); {前二高}T2:=BMCKSET(U1,REF(BMRSLMST(LD),1)+2); U2:=T2>REF(T2,1); {前二低}T3:=BMCKSET(U2,REF(BMRSLMST(LD),1)+2); U3:=T3>REF(T3,1); {前三低}T4:=BMCKSET(U3,REF(BMRSLMST(LD),1)+2); U4:=T4>REF(T4,1); {前四低}R3:=BMCKSET(S2,REF(BMRSLMST(HD),1)+2); S3:=R3>REF(R3,1); {前三高}R4:=BMCKSET(S3,REF(BMRSLMST(HD),1)+2); S4:=R4>REF(R4,1); {前四高}★压力1:DRMWLINE(S2,H,S1,H,1),COLORLIMMGENTM,LINETHICK1;★支撑1:DRMWLINE(U2,L,U1,L,1),COLOR8FBC8F,LINETHICK1;★压力2:DRMWLINE(S3,H,S2,H,1),COLORFF8000; ★支撑2:DRMWLINE(U3,L,U2,L,1),COLOR99CC32; ★压力3:DRMWLINE(S4,H,S3,H,1),COLOR0000FF;★支撑3:DRMWLINE(U4,L,U3,L,1),COLOR00FF7F;DRMWICON(S2,H*1.01,10);DRMWICON(S3,H*1.01,10);DRMWNUMBER(S2,H*1.02,H),COLORCFB53B;DRMWNUMBER(S1,H*1.02,H),COLORCFB53B;DRMWNUMBER(S3,H*1.02,H),COLORCFB53B;DRMWICON(U1,L*0.99,11); DRMWICON(U2,L*0.99,11);DRMWICON(U3,L*0.99,11);DRMWICON(U4,L*0.99,11);DRMWNUMBER(U1,L*0.98,L),COLORGREEN;DRMWNUMBER(U2,L*0.98,L),COLORGREEN;DRMWNUMBER(U3,L*0.98,L),COLORGREEN;DRMWNUMBER(U4,L*0.98,L),COLORGREEN;{十战七胜}M3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;M4:=SMM(M3,3,1);M5:=SMM(M4,3,1);M6:=3*M4-2*M5;M7:=C-REF(C,1);M8:=100*ema(EMM(M7,6),6)/EMM(EMM(Mbs(M7),6),6);买:=LLV(M8,2)=LLV(M8,7) MND COUNT(M8<0,2) MND crOSS(M8,MM(M8,2));DRMWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORBLUE;STICKLINE(买,OPEN,CLOSE,2,0),COLORBLUE;Z11:=STRCMT(HYBLOCK,' ');Z22:=STRCMT(Z11,FGBLOCK);Z33:=STRCMT(Z22,DYBLOCK);Z44:=STRCMT(Z33,' ');DRMWTEXT_FIX(ISLMSTBMR,0,0,0,STRCMT(Z44,GNBLOCK)),COLORGREEN;MM1:MM(CLOSE,5);MM2:MM(CLOSE,10);MM3:MM(CLOSE,20);MM4:MM(CLOSE,60);

    未发现:CMPITML...

    未发现:COST...

    未发现:DYNMINFO...

    未发现:FINMNCE...

    未发现:LWINNER...

    未发现:WINNER...

    警惕!警惕!警惕!该公式包含未来函数:BMCKSET...

    未发现:BMRSNEXT...

    未发现:CURRBMRSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    警惕!警惕!警惕!该公式包含未来函数:DRMWLINE...

    未发现:REFX...

    未发现:FLMTZIG...

    未发现:FLMTZIGM...

    未发现:FFT...

    未发现:FILTERX...

    未发现:PEMK...

    未发现:PEMKM...

    未发现:PEMKBMRS...

    未发现:PEMKBMRSM...

    未发现:PLOYLINE...

    警惕!警惕!警惕!该公式包含未来函数:REFDMTE...

    未发现:TROUGH...

    未发现:TROUGHM...

    未发现:TROUGHBMRS...

    未发现:XMM...

    警惕!警惕!警惕!该公式包含未来函数:ZIG...

    未发现:ZIGM...

    未发现:ZXNH...

    未发现:#YEMR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEMK...

    未发现:$PEMKBMRS...

    未发现:$TROUGH...

    未发现:$TROUGHBMRS...

    未发现:$FLMTZIG...

    未发现:$FLMTZIGM...

    未发现:$PEMKM...

    未发现:$PEMKBMRSM...

    未发现:$TROUGHM...

    未发现:$ZIGM...

    未发现:$FFT...

    未发现:$BMCKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNMINFO...

    未发现:$FINMNCE...

    未发现:$DRMWLINE...


    免责声明 | 联系我们 | 服务协议

    重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

    如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

    联系QQ:875328188 | 邮箱:875328188@qq.com

    Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号