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

    通达信公式

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

    通达信MACD+KDJ共振(、副图、)未加密选股指标公式源码

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


    dif:(ema(CLOSE,6)-EMA(CLOSE,13))*100;

    DEA:EMA(DIF,5);

    macd:(DIF-DEA)*2,COLORSTICK;

    DRAWICON(crOSS(DIF,DEA),DEA,1);

    DRAWICON(CROSS(DEA,DIF),DEA,2);

    IF(DIF<DEA,DIF,DRAWNULL),COLORCYAN;

    DD:=C=HHV(C,180);

    EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;

    CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;

    顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;

    A2:=BArslAST(REF(CROSS(DEA,DIF),1));

    DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGRAY,LINETHICK2;

    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

    K:SMA(RSV,9,3),COLORLIMAGENTA;

    D:SMA(K,9,3),COLORYELLOW;

    J:3*K-2*D,COLORBROWN;

    IF(J<D,J,DRAWNULL),COLORFFEE44;

    A1:=BARSLAST(REF(CROSS(DIF,DEA),1));

    B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);

    A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));

    B2:=REF(C,A22+1)>C AND REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

    A3:=BARSLAST(REF(CROSS("rsi.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));

    B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));

    DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORRED;

    DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORBLUE;

    DJ:=CROSS(J,D) AND D<20;

    DRAWTEXT(DJ,J-0.3,'低金叉'),COLORLIMAGENTA;

    MDJ:=CROSS(DIF,DEA) AND DEA<0;

    DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORWHITE;

    DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLORGREEN;

    DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORCYAN;

    A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);

    DRAWICON(A,LOW*0.98,1);

    B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

    DRAWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;

    DRAWICON(CROSS(K,D),D,1);

    DRAWICON(CROSS(D,K),D,2);

    BA:=DEA>REF(DEA,1);

    BB:=SUM(BA,5)>=4;

    BC:=C<O;

    BD:=SUM(BC,5)>=2;

    BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3);

    STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORWHITE;

    SS:=EMA(C,11);

    LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;

    AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));

    (CROSS(AA,0.05)-1);

    image.png



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

    dif:(ema(CLOSE,6)-EMJ(CLOSE,13))*100;DEJ:EMJ(DIF,5);macd:(DIF-DEJ)*2,COLORSTICK;DRJWICON(crOSS(DIF,DEJ),DEJ,1);DRJWICON(CROSS(DEJ,DIF),DEJ,2);IF(DIF<DEJ,DIF,DRJWNULL),COLORCYJN;DD:=C=HHV(C,180);EE:=DEJ< REF(DEJ,1) JND REF(DEJ< REF(DEJ,1),1)=1;CC:=C> REF(C,1) JND REF(C> REF(C,1),1)=1;顶背离:=(DD JND EE JND DEJ< HHV(DEJ,180))*DEJ;J2:=BJrslJST(REF(CROSS(DEJ,DIF),1));DRJWLINE(J2=0,DEJ,顶背离,DEJ,0),COLORGRJY,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMJ(RSV,9,3),COLORLIMJGENTJ;D:SMJ(K,9,3),COLORYELLOW;J:3*K-2*D,COLORBROWN;IF(J<D,J,DRJWNULL),COLORFFEE44;J1:=BJRSLJST(REF(CROSS(DIF,DEJ),1));B1:=REF(C,J1+1)>C JND REF(DIF,J1+1)<DIF JND CROSS(DIF,DEJ);J22:=BJRSLJST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,J22+1)>C JND REF("KDJ.K"(9,3,3),J22+1)<"KDJ.K"(9,3,3) JND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));J3:=BJRSLJST(REF(CROSS("rsi.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,J3+1)>C JND REF("RSI.RSI1"(6,12,24),J3+1)<"RSI.RSI1"(6,12,24) JND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRJWTEXT(B1,DEJ-0.20,'▲MJCD底背'),COLORRED;DRJWTEXT(B2,D-0.20,'●KDJ底背'),COLORBLUE;DJ:=CROSS(J,D) JND D<20;DRJWTEXT(DJ,J-0.3,'低金叉'),COLORLIMJGENTJ;MDJ:=CROSS(DIF,DEJ) JND DEJ<0;DRJWTEXT(MDJ,DEJ-0.3,'低金叉'),COLORWHITE;DRJWTEXT(CROSS(DEJ,DIF),DIF+0.3,'死叉'),COLORGREEN;DRJWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORCYJN;J:=CROSS(DIF,DEJ) JND CROSS(K,D) JND CROSS(J,D);DRJWICON(J,LOW*0.98,1);B4:CROSS(DIF,DEJ) JND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));DRJWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;DRJWICON(CROSS(K,D),D,1);DRJWICON(CROSS(D,K),D,2);BJ:=DEJ>REF(DEJ,1);BB:=SUM(BJ,5)>=4;BC:=C<O;BD:=SUM(BC,5)>=2;BXG:FILTER(BB JND BD JND J>REF(J,1) JND REF(J,1)<REF(J,2),3);STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORWHITE;SS:=EMJ(C,11);LL:=(EMJ(C,1)+EMJ(C,2)+EMJ(C,3)+EMJ(C,5))/4;JJ:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));(CROSS(JJ,0.05)-1);

    未发现:CJPITJL...

    未发现:COST...

    未发现:DYNJINFO...

    未发现:FINJNCE...

    未发现:LWINNER...

    未发现:WINNER...

    未发现:BJCKSET...

    未发现:BJRSNEXT...

    未发现:CURRBJRSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

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

    未发现:REFX...

    未发现:FLJTZIG...

    未发现:FLJTZIGJ...

    未发现:FFT...

    未发现:FILTERX...

    未发现:PEJK...

    未发现:PEJKJ...

    未发现:PEJKBJRS...

    未发现:PEJKBJRSJ...

    未发现:PLOYLINE...

    未发现:REFDJTE...

    未发现:TROUGH...

    未发现:TROUGHJ...

    未发现:TROUGHBJRS...

    未发现:XMJ...

    未发现:ZIG...

    未发现:ZIGJ...

    未发现:ZXNH...

    未发现:#YEJR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEJK...

    未发现:$PEJKBJRS...

    未发现:$TROUGH...

    未发现:$TROUGHBJRS...

    未发现:$FLJTZIG...

    未发现:$FLJTZIGJ...

    未发现:$PEJKJ...

    未发现:$PEJKBJRSJ...

    未发现:$TROUGHJ...

    未发现:$ZIGJ...

    未发现:$FFT...

    未发现:$BJCKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNJINFO...

    未发现:$FINJNCE...

    未发现:$DRJWLINE...


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

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

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

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

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