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

    通达信公式

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

    通达信缠论MACD(副图贴图)未加密选股指标公式源码

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

    {缠论maCD}
    SHORT:=12;
    LONG:=26;
    MID:=9;
    TSARROW:=1;
    difF:=ema(CLOSE*100,SHORT)-EMA(CLOSE*100,LONG);
    DEA:=EMA(DIFF,MID);
    MacD2:=(DIFF - DEA)*2;
    DIF:DIFF;
    DEF:DEA;
    macd:MACD2,NODRAW;
    获利比:WINNER(C),NODRAW;
    STICKLINE((MACD2>=0),0,MACD2,0,1),COLORWHITE;
    STICKLINE(((MACD2>=0) AND (MACD2 < REF(MACD2,1))),0,MACD2,0,0),COLORLIMAGENTA;
    STICKLINE((MACD2<0),0,MACD2,0,0),COLORCYAN;
    STICKLINE(((MACD2<0) AND (MACD2 > REF(MACD2,1))),0,MACD2,0,1),COLORRED;
    DRAWICON(LONGcrOSS(CLOSE,MA(CLOSE,5),17),MACD2,1);
    DRAWICON(LONGCROSS(MA(CLOSE,5),CLOSE,17),MACD2,2);
    低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
    JCCOUNT:=COUNT(CROSS(DIFF,DEA),BArslAST(DEA>=0));
    二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
    DRAWTEXT(二次金叉,0,'二次金叉');
    三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,60)=1;
    DRAWTEXT(三次金叉,0,'三次金叉');
    A1:=IF(MACD2>0,1,-1);
    A2:=REF(A1,1);
    A3:=A1*A2;
    A4:=BARSLAST(A3<0);
    A5:=A4+1;
    累计面积:SUM(MACD2,A5),NODRAW;
    平均力度:SUM(MACD2,A5)/A5,NODRAW;
    0,DOTLINE;
    WK:="KD.K#WEEK"(9,3,3);
    WD:="KD.D#WEEK"(9,3,3);
    DK:="KD.K#DAY"(9,3,3);
    DD:="KD.D#DAY"(9,3,3);
    DRAWICON(CROSS(WK,WD) AND WK<70 AND PERIOD>4,LLV(MACD2,30),9);
    DRAWICON(CROSS(DK,DD) AND DK<70 AND PERIOD>4,LLV(MACD2,10),10);
    TJ:=MACD2>0;T:=MACD2<0;
    A:=LLV(MACD2,50)=MACD2;
    DRAWICON(A AND FILTERX(A,20), MACD2,1);
    DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORBLUE;
    DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORBLUE;
    DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORCYAN;
    DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORCYAN;image.png



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

    {缠论maCD}SHORT:=12;LONG:=26;MID:=9;TSARROW:=1;difF:=ema(CLOSE*100,SHORT)-EMA(CLOSE*100,LONG);DEA:=EMA(DIFF,MID);MacD2:=(DIFF - DEA)*2;DIF:DIFF;DEF:DEA;macd:MACD2,NODRAW;获利比:WINNER(C),NODRAW;STICKLINE((MACD2>=0),0,MACD2,0,1),COLORWHITE;STICKLINE(((MACD2>=0) AND (MACD2 < REF(MACD2,1))),0,MACD2,0,0),COLORLIMAGENTA;STICKLINE((MACD2<0),0,MACD2,0,0),COLORCYAN;STICKLINE(((MACD2<0) AND (MACD2 > REF(MACD2,1))),0,MACD2,0,1),COLORRED;DRAWICON(LONGcrOSS(CLOSE,MA(CLOSE,5),17),MACD2,1);DRAWICON(LONGCROSS(MA(CLOSE,5),CLOSE,17),MACD2,2);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BArslAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;DRAWTEXT(二次金叉,0,'二次金叉');三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,60)=1;DRAWTEXT(三次金叉,0,'三次金叉');A1:=IF(MACD2>0,1,-1);A2:=REF(A1,1);A3:=A1*A2;A4:=BARSLAST(A3<0);A5:=A4+1;累计面积:SUM(MACD2,A5),NODRAW;平均力度:SUM(MACD2,A5)/A5,NODRAW;0,DOTLINE;WK:="KD.K#WEEK"(9,3,3);WD:="KD.D#WEEK"(9,3,3);DK:="KD.K#DAY"(9,3,3);DD:="KD.D#DAY"(9,3,3);DRAWICON(CROSS(WK,WD) AND WK<70 AND PERIOD>4,LLV(MACD2,30),9);DRAWICON(CROSS(DK,DD) AND DK<70 AND PERIOD>4,LLV(MACD2,10),10);TJ:=MACD2>0;T:=MACD2<0;A:=LLV(MACD2,50)=MACD2;DRAWICON(A AND FILTERX(A,20), MACD2,1);DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORBLUE;DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORBLUE;DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORCYAN;DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORCYAN;DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORCYAN;DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORCYAN;DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORCYAN;DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORCYAN;DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORCYAN;DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORCYAN;DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORCYAN;

    未发现:CAPITAL...

    未发现:COST...

    未发现:DYNAINFO...

    未发现:FINANCE...

    未发现:LWINNER...

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

    未发现:BACKSET...

    未发现:BARSNEXT...

    未发现:CURRBARSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    未发现:DRAWLINE...

    未发现:REFX...

    未发现:FLATZIG...

    未发现:FLATZIGA...

    未发现:FFT...

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

    未发现:PEAK...

    未发现:PEAKA...

    未发现:PEAKBARS...

    未发现:PEAKBARSA...

    未发现:PLOYLINE...

    未发现:REFDATE...

    未发现:TROUGH...

    未发现:TROUGHA...

    未发现:TROUGHBARS...

    未发现:XMA...

    未发现:ZIG...

    未发现:ZIGA...

    未发现:ZXNH...

    未发现:#YEAR...

    未发现:#MONTH...

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

    未发现:$ZIG...

    未发现:$PEAK...

    未发现:$PEAKBARS...

    未发现:$TROUGH...

    未发现:$TROUGHBARS...

    未发现:$FLATZIG...

    未发现:$FLATZIGA...

    未发现:$PEAKA...

    未发现:$PEAKBARSA...

    未发现:$TROUGHA...

    未发现:$ZIGA...

    未发现:$FFT...

    未发现:$BACKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNAINFO...

    未发现:$FINANCE...

    未发现:$DRAWLINE...


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

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

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

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

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