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

    通达信公式

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

    通达信MACD+KDJ金叉共振未加密选股指标公式源码

    来源:网络|编辑:小编|时间:2023-01-01|栏目:通达信公式

    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)-ema(CLOSE,13))*100;DEM:EMM(DIF,5);MacD:(DIF-DEM)*2,COLORSTICK;DRMWICON(crOSS(DIF,DEM),DEM,1);DRMWICON(CROSS(DEM,DIF),DEM,2);IF(DIF<DEM,DIF,DRMWNULL),COLORCYMN;DD:=C=HHV(C,180);EE:=DEM< REF(DEM,1) MND REF(DEM< REF(DEM,1),1)=1;CC:=C> REF(C,1) MND REF(C> REF(C,1),1)=1;顶背离:=(DD MND EE MND DEM< HHV(DEM,180))*DEM;M2:=BMrslMST(REF(CROSS(DEM,DIF),1));DRMWLINE(M2=0,DEM,顶背离,DEM,0),COLORGRMY,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMM(RSV,9,3),COLORLIMMGENTM;D:SMM(K,9,3),COLORYELLOW;J:3*K-2*D,COLORBROWN;IF(J<D,J,DRMWNULL),COLORFFEE44;M1:=BMRSLMST(REF(CROSS(DIF,DEM),1));B1:=REF(C,M1+1)>C MND REF(DIF,M1+1)<DIF MND CROSS(DIF,DEM);M22:=BMRSLMST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,M22+1)>C MND REF("KDJ.K"(9,3,3),M22+1)<"KDJ.K"(9,3,3) MND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));M3:=BMRSLMST(REF(CROSS("rsi.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,M3+1)>C MND REF("RSI.RSI1"(6,12,24),M3+1)<"RSI.RSI1"(6,12,24) MND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRMWTEXT(B1,DEM-0.20,'▲macd底背'),COLORRED;DRMWTEXT(B2,D-0.20,'●KDJ底背'),COLORBLUE;DJ:=CROSS(J,D) MND D<20;DRMWTEXT(DJ,J-0.3,'低金叉'),COLORLIMMGENTM;MDJ:=CROSS(DIF,DEM) MND DEM<0;DRMWTEXT(MDJ,DEM-0.3,'低金叉'),COLORWHITE;DRMWTEXT(CROSS(DEM,DIF),DIF+0.3,'死叉'),COLORGREEN;DRMWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORCYMN;M:=CROSS(DIF,DEM) MND CROSS(K,D) MND CROSS(J,D);DRMWICON(M,LOW*0.98,1);B4:CROSS(DIF,DEM) MND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));DRMWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;DRMWICON(CROSS(K,D),D,1);DRMWICON(CROSS(D,K),D,2);BM:=DEM>REF(DEM,1);BB:=SUM(BM,5)>=4;BC:=C<O;BD:=SUM(BC,5)>=2;BXG:FILTER(BB MND BD MND J>REF(J,1) MND REF(J,1)<REF(J,2),3);STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORWHITE;SS:=EMM(C,11);LL:=(EMM(C,1)+EMM(C,2)+EMM(C,3)+EMM(C,5))/4;MM:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));(CROSS(MM,0.05)-1);

    未发现: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号