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

    通达信公式

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

    通达信MACD资金趋势幅图未加密选股指标公式源码

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

    A:=vol*C;
    B:=SUM(A,1)/SUM(VOL,1);
    B1:=EMA(B,17);
    资金:=(B-B1)*100/B;
    DIFF:EMA(资金,12)-EMA(资金,26);
    DEA: EMA(DIFF,9);
    M:2*(DIFF-DEA), COLORSTICK;
    {红色立柱}
    STICKLINE(M>=REF(M,1)AND M>0,0,M,2.2,0),COLOR000088;
    STICKLINE(M>=REF(M,1)AND M>0,0,M,1.5,0),COLOR0000AA;
    STICKLINE(M>=REF(M,1)AND M>0,0,M,0.5,0),COLOR0000CC;
    STICKLINE(M>=REF(M,1)AND M>0,0,M,0.1,0),COLOR0000EE;
    {金黄色立柱}
    STICKLINE(M<REF(M,1)AND M>0,0,M,2.2,0),COLOR338888;
    STICKLINE(M<REF(M,1)AND M>0,0,M,1.3,0),COLOR33AAAA;
    STICKLINE(M<REF(M,1)AND M>0,0,M,0.9,0),COLOR33CCCC;
    STICKLINE(M<REF(M,1)AND M>0,0,M,0.1,0),COLOR33EEEE;
    {粉红立柱}
    STICKLINE(M>REF(M,1)AND M<0,0,M,2.2,0),COLORCC00CC;
    STICKLINE(M>REF(M,1)AND M<0,0,M,1.1,0),COLOREE00EE;
    STICKLINE(M>REF(M,1)AND M<0,0,M,0.1,0)COLORFF00FF;
    {绿色立柱}
    STICKLINE(M<=REF(M,1)AND M<0,0,M,2.2,0),COLOR009900;
    STICKLINE(M<=REF(M,1)AND M<0,0,M,1.5,0),COLOR00BB00;
    STICKLINE(M<=REF(M,1)AND M<0,0,M,1.1,0),COLOR00DD00;
    STICKLINE(M<=REF(M,1)AND M<0,0,M,0.1,0),COLOR00FF00;
    IF(DIFF<0,DIFF,0),COLORWHITE,LINETHICK2;
    IF(DIFF<0,0,DIFF),COLORBLUE,LINETHICK2;
    IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK2;
    IF(DIFF>DEA,DEA,DEA),COLORRED,LINETHICK1;
    低金叉:=crOSS(DIFF,DEA) AND DIFF<-0.1;
    {金黄色立柱}
    STICKLINE(低金叉,-4,-2,2.5,0),COLOR338888;
    STICKLINE(低金叉,-4,-2,1.5,0),COLOR33AAAA;
    STICKLINE(低金叉,-4,-2,0.9,0),COLOR33CCCC;
    STICKLINE(低金叉,-4,-2,0.1,0),COLOR33EEEE;
    STICKLINE(低金叉,-0.4,-2,0.3,1),COLOREE00EE;
    DRAWTEXT(低金叉,-3,' 低位金叉'),COLORBLUE;
    JCCOUNT:=COUNT(CROSS(DIFF,DEA),BArslAST(DEA>=0));
    二金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
    {粉红立柱}
    STICKLINE(二金,0,-2.5,2,0),COLORCC00CC;
    STICKLINE(二金,0,-2.5,1.5,0),COLOREE00EE;
    STICKLINE(二金,0,-2.5,0.1,0)COLORFF00FF;
    DRAWICON(二金,DEA*1.2,23) ;
    DRAWTEXT(二金,-2,' 二次金叉'),COLORFF00FF;
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    底背:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1)AND CROSS(DIFF,DEA);
    {股旁网-股票公式网站 WWW.GUPANG.COM}
    {绿色立柱}
    STICKLINE(底背,0,2.5,2.5,0),COLOR009900;
    STICKLINE(底背,0,2.5,1.4,0),COLOR00BB00;
    STICKLINE(底背,0,2.5,0.5,0),COLOR00DD00;
    STICKLINE(底背,0,2.5,0.1,0),COLOR00FF00;
    STICKLINE(底背,4.5,2.5,0.3,1),COLOR0000FF;
    DRAWLINE(A1=0,DEA,底背,DEA,0),COLORWHITE,LINETHICK2;
    DRAWTEXT(底背,2,' 底背离'),COLOR00FF00;
    A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
    {深 青色立柱}
    {STICKLINE(顶背,2.5,4,3,0),COLORCC0000; }
    STICKLINE(顶背,2.5,4,2.5,0),COLORFF4400;
    STICKLINE(顶背,2.5,4,1.5,0),COLORFF8800;
    STICKLINE(顶背,2.5,4,0.2,0),COLORFFCC00;
    STICKLINE(顶背,0.4,2.5,0,0),COLORFFFFFF;
    {白色立柱}
    STICKLINE(顶背,5,4,4,0),COLOR999999;
    STICKLINE(顶背,5,4,3,0),COLORBBBBBB;
    STICKLINE(顶背,5,4,2,0),COLORDDDDDD;
    STICKLINE(顶背,5,4,1,0),COLORFFFFFF;
    DRAWLINE(A2=0,DEA,顶背,DEA,0),COLORFFFF00,LINETHICK2;
    DRAWTEXT(顶背,3.6,' 顶背离'),COLORFFFF00;image.png



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

    M:=vol*C; B:=SUM(M,1)/SUM(VOL,1);B1:=EMM(B,17); 资金:=(B-B1)*100/B; DIFF:EMM(资金,12)-EMM(资金,26);DEM: EMM(DIFF,9); M:2*(DIFF-DEM), COLORSTICK;{红色立柱}STICKLINE(M>=REF(M,1)MND M>0,0,M,2.2,0),COLOR000088;STICKLINE(M>=REF(M,1)MND M>0,0,M,1.5,0),COLOR0000MM;STICKLINE(M>=REF(M,1)MND M>0,0,M,0.5,0),COLOR0000CC;STICKLINE(M>=REF(M,1)MND M>0,0,M,0.1,0),COLOR0000EE;{金黄色立柱}STICKLINE(M<REF(M,1)MND M>0,0,M,2.2,0),COLOR338888;STICKLINE(M<REF(M,1)MND M>0,0,M,1.3,0),COLOR33MMMM;STICKLINE(M<REF(M,1)MND M>0,0,M,0.9,0),COLOR33CCCC;STICKLINE(M<REF(M,1)MND M>0,0,M,0.1,0),COLOR33EEEE;{粉红立柱}STICKLINE(M>REF(M,1)MND M<0,0,M,2.2,0),COLORCC00CC;STICKLINE(M>REF(M,1)MND M<0,0,M,1.1,0),COLOREE00EE;STICKLINE(M>REF(M,1)MND M<0,0,M,0.1,0)COLORFF00FF;{绿色立柱}STICKLINE(M<=REF(M,1)MND M<0,0,M,2.2,0),COLOR009900;STICKLINE(M<=REF(M,1)MND M<0,0,M,1.5,0),COLOR00BB00;STICKLINE(M<=REF(M,1)MND M<0,0,M,1.1,0),COLOR00DD00;STICKLINE(M<=REF(M,1)MND M<0,0,M,0.1,0),COLOR00FF00;IF(DIFF<0,DIFF,0),COLORWHITE,LINETHICK2;IF(DIFF<0,0,DIFF),COLORBLUE,LINETHICK2;IF(DIFF<DEM,DIFF,DEM),COLOR00FF00,LINETHICK2;IF(DIFF>DEM,DEM,DEM),COLORRED,LINETHICK1;低金叉:=crOSS(DIFF,DEM) MND DIFF<-0.1;{金黄色立柱}STICKLINE(低金叉,-4,-2,2.5,0),COLOR338888;STICKLINE(低金叉,-4,-2,1.5,0),COLOR33MMMM;STICKLINE(低金叉,-4,-2,0.9,0),COLOR33CCCC;STICKLINE(低金叉,-4,-2,0.1,0),COLOR33EEEE;STICKLINE(低金叉,-0.4,-2,0.3,1),COLOREE00EE;DRMWTEXT(低金叉,-3,' 低位金叉'),COLORBLUE;JCCOUNT:=COUNT(CROSS(DIFF,DEM),BMrslMST(DEM>=0));二金:=CROSS(DIFF,DEM) MND DEM<0 MND COUNT(JCCOUNT=2,21)=1;{粉红立柱}STICKLINE(二金,0,-2.5,2,0),COLORCC00CC;STICKLINE(二金,0,-2.5,1.5,0),COLOREE00EE;STICKLINE(二金,0,-2.5,0.1,0)COLORFF00FF;DRMWICON(二金,DEM*1.2,23) ;DRMWTEXT(二金,-2,' 二次金叉'),COLORFF00FF;M1:=BMRSLMST(REF(CROSS(DIFF,DEM),1));底背:=REF(CLOSE,M1+1)>CLOSE MND DIFF>REF(DIFF,M1+1)MND CROSS(DIFF,DEM);{股旁网-股票公式网站 WWW.GUPMNG.COM}{绿色立柱}STICKLINE(底背,0,2.5,2.5,0),COLOR009900;STICKLINE(底背,0,2.5,1.4,0),COLOR00BB00;STICKLINE(底背,0,2.5,0.5,0),COLOR00DD00;STICKLINE(底背,0,2.5,0.1,0),COLOR00FF00;STICKLINE(底背,4.5,2.5,0.3,1),COLOR0000FF;DRMWLINE(M1=0,DEM,底背,DEM,0),COLORWHITE,LINETHICK2;DRMWTEXT(底背,2,' 底背离'),COLOR00FF00;M2:=BMRSLMST(REF(CROSS(DEM,DIFF),1));顶背:=REF(CLOSE,M2+1)<CLOSE MND REF(DIFF,M2+1)>DIFF MND CROSS(DEM,DIFF);{深 青色立柱}{STICKLINE(顶背,2.5,4,3,0),COLORCC0000; }STICKLINE(顶背,2.5,4,2.5,0),COLORFF4400;STICKLINE(顶背,2.5,4,1.5,0),COLORFF8800;STICKLINE(顶背,2.5,4,0.2,0),COLORFFCC00;STICKLINE(顶背,0.4,2.5,0,0),COLORFFFFFF;{白色立柱}STICKLINE(顶背,5,4,4,0),COLOR999999; STICKLINE(顶背,5,4,3,0),COLORBBBBBB;STICKLINE(顶背,5,4,2,0),COLORDDDDDD;STICKLINE(顶背,5,4,1,0),COLORFFFFFF;DRMWLINE(M2=0,DEM,顶背,DEM,0),COLORFFFF00,LINETHICK2;DRMWTEXT(顶背,3.6,' 顶背离'),COLORFFFF00;

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