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

    通达信公式

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

    通达信macd资金流向副图未加密选股指标公式源码

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

    difF:=ema(CLOSE,3)-EMA(CLOSE,7);

    DEA:=EMA(DIFF,3);

    macd2:=2*(DIFF-DEA);

    (CLOSE<0 AND crOSS(DIFF,0),H*1.3),COLOR000080,NODRAW;

    (CLOSE<0 AND CROSS(MACD2,0),H*1.3),COLOR000080,NODRAW;

    (CLOSE<0 AND CROSS(0,DIFF),H*1.3),COLOR808080,NODRAW;

    (CLOSE<0 AND CROSS(0,MACD2),H*1.3),COLOR808080,NODRAW;

    DU0:=CROSS(DIFF,0);

    UD0:=CROSS(0,DIFF);

    TDU0:=BArslAST(DU0);

    TUD0:=BARSLAST(UD0);

    DU3:=REF(DU0,1);

    UD3:=REF(UD0,1);

    TDU3:=BARSLAST(DU3);

    TUD3:=BARSLAST(UD3);

    UDGLINE:=IF(TDU3<TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));

    JDU0:=REF(CLOSE,1)<=REF(UDGLINE,1) AND CLOSE>UDGLINE AND TDU0<TUD0;

    JUD0:=REF(CLOSE,1)>=REF(UDGLINE,1) AND CLOSE<UDGLINE AND TUD0<TDU0;

    JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;

    JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;

    JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);

    JUD2:=JUD1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);

    JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);

    JUD3:=JUD1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);

    bsLINE:=IF(BARSLAST(JDU2)<BARSLAST(JUD2),IF(REF(CROSS(0,MACD2),1),LLV(LOW,2),REF(LLV(LOW,2),BARSLAST(REF(CROSS

    (0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1)))));

    STICKLINE(MACD2>=0,0,MACD2,2,1),COLOR0000FF;

    STICKLINE(MACD2>=0 AND MACD2<REF(MACD2,1),0,MACD2,2,0),COLOR0000FF;

    STICKLINE(MACD2<0,0,MACD2,2,0),COLORFFFF00;

    STICKLINE(MACD2<0 AND MACD2>REF(MACD2,1),0,MACD2,2,1),COLORFFFF00;

    DIFF,LINETHICK2,COLOR0000FF;

    MACD,COLORFF0000;

    DEF:MACD2,LINETHICK0,COLORFFFF00;

    STICKLINE(CLOSE>0,0,0,2,0),COLOR808080;

    DEFUT:=BARSLAST(CROSS(MACD2,0));

    DEFDT:=BARSLAST(CROSS(0,MACD2));

    DEFUL:=IF(MACD2>=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1));

    DEFDL:=IF(MACD2<0,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1));

    DEFU2L:=REF(DEFUL,DEFUT+1);

    DEFD2L:=REF(DEFDL,DEFDT+1);

    DRAWICON(LLV(MACD2,4)>0 AND MACD2<REF(MACD2,1) AND REF(MACD2,1)>REF(MACD2,2) AND REF(MACD2,2)>REF(MACD2,3),MACD2,2);

    DRAWICON(HHV(MACD2,4)<0 AND MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF(MACD2,2)<REF(MACD2,3),MACD2,1);

    DRAWICON((JUD1 OR BARSLAST(JDU1)>BARSLAST(JUD1)) AND MACD2>=0 AND REF(MACD2,1)<REF(DEFU2L,1) AND MACD2>DEFU2L,MACD2,5);

    DRAWICON((JDU1 OR BARSLAST(JDU1)<BARSLAST(JUD1)) AND MACD2<0 AND REF(MACD2,1)>REF(DEFD2L,1) AND MACD2<DEFD2L,MACD2,3);

    VAR111:=JDU1 OR BARSLAST(JDU1)<BARSLAST(JUD1);

    VAR112:=HHV(MACD2,4)<0 AND MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF(MACD2,2)<REF(MACD2,3);

    image.png



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

    difF:=ema(CLOSE,3)-EMM(CLOSE,7);DEM:=EMM(DIFF,3);macd2:=2*(DIFF-DEM);(CLOSE<0 MND crOSS(DIFF,0),H*1.3),COLOR000080,NODRMW;(CLOSE<0 MND CROSS(MMCD2,0),H*1.3),COLOR000080,NODRMW;(CLOSE<0 MND CROSS(0,DIFF),H*1.3),COLOR808080,NODRMW;(CLOSE<0 MND CROSS(0,MMCD2),H*1.3),COLOR808080,NODRMW;DU0:=CROSS(DIFF,0);UD0:=CROSS(0,DIFF);TDU0:=BMrslMST(DU0);TUD0:=BMRSLMST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BMRSLMST(DU3);TUD3:=BMRSLMST(UD3);UDGLINE:=IF(TDU3<TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));JDU0:=REF(CLOSE,1)<=REF(UDGLINE,1) MND CLOSE>UDGLINE MND TDU0<TUD0;JUD0:=REF(CLOSE,1)>=REF(UDGLINE,1) MND CLOSE<UDGLINE MND TUD0<TDU0;JDU1:=JDU0 MND COUNT(JDU0,TDU0)=1;JUD1:=JUD0 MND COUNT(JUD0,TUD0)=1;JDU2:=JDU1 MND REF(BMRSLMST(JUD1),1)<REF(BMRSLMST(JDU1),1);JUD2:=JUD1 MND REF(BMRSLMST(JUD1),1)>REF(BMRSLMST(JDU1),1);JDU3:=JDU1 MND REF(BMRSLMST(JUD1),1)>REF(BMRSLMST(JDU1),1);JUD3:=JUD1 MND REF(BMRSLMST(JUD1),1)<REF(BMRSLMST(JDU1),1);bsLINE:=IF(BMRSLMST(JDU2)<BMRSLMST(JUD2),IF(REF(CROSS(0,MMCD2),1),LLV(LOW,2),REF(LLV(LOW,2),BMRSLMST(REF(CROSS(0,MMCD2),1)))),IF(REF(CROSS(MMCD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BMRSLMST(REF(CROSS(MMCD2,0),1)))));STICKLINE(MMCD2>=0,0,MMCD2,2,1),COLOR0000FF;STICKLINE(MMCD2>=0 MND MMCD2<REF(MMCD2,1),0,MMCD2,2,0),COLOR0000FF;STICKLINE(MMCD2<0,0,MMCD2,2,0),COLORFFFF00;STICKLINE(MMCD2<0 MND MMCD2>REF(MMCD2,1),0,MMCD2,2,1),COLORFFFF00;DIFF,LINETHICK2,COLOR0000FF;MMCD,COLORFF0000;DEF:MMCD2,LINETHICK0,COLORFFFF00;STICKLINE(CLOSE>0,0,0,2,0),COLOR808080;DEFUT:=BMRSLMST(CROSS(MMCD2,0));DEFDT:=BMRSLMST(CROSS(0,MMCD2));DEFUL:=IF(MMCD2>=0,HHV(MMCD2,DEFUT+1),REF(HHV(MMCD2,DEFUT+1),DEFDT+1));DEFDL:=IF(MMCD2<0,LLV(MMCD2,DEFDT+1),REF(LLV(MMCD2,DEFDT+1),DEFUT+1));DEFU2L:=REF(DEFUL,DEFUT+1);DEFD2L:=REF(DEFDL,DEFDT+1);DRMWICON(LLV(MMCD2,4)>0 MND MMCD2<REF(MMCD2,1) MND REF(MMCD2,1)>REF(MMCD2,2) MND REF(MMCD2,2)>REF(MMCD2,3),MMCD2,2);DRMWICON(HHV(MMCD2,4)<0 MND MMCD2>REF(MMCD2,1) MND REF(MMCD2,1)<REF(MMCD2,2) MND REF(MMCD2,2)<REF(MMCD2,3),MMCD2,1);DRMWICON((JUD1 OR BMRSLMST(JDU1)>BMRSLMST(JUD1)) MND MMCD2>=0 MND REF(MMCD2,1)<REF(DEFU2L,1) MND MMCD2>DEFU2L,MMCD2,5);DRMWICON((JDU1 OR BMRSLMST(JDU1)<BMRSLMST(JUD1)) MND MMCD2<0 MND REF(MMCD2,1)>REF(DEFD2L,1) MND MMCD2<DEFD2L,MMCD2,3);VMR111:=JDU1 OR BMRSLMST(JDU1)<BMRSLMST(JUD1);VMR112:=HHV(MMCD2,4)<0 MND MMCD2>REF(MMCD2,1) MND REF(MMCD2,1)<REF(MMCD2,2) MND REF(MMCD2,2)<REF(MMCD2,3);

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