您现在的位置:  股票知识 > 股票公式 > 通达信股票公式 > 正文
南财搜索

通达信K线+MACD股票指标公式

2013-11-22 15:02    股票知识   zhishi.southmoney.com
    

  通达信K线+MACD股票指标公式

  DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);

  DEA : EMA(DIFF,9);

  MACD : 2*(DIFF-DEA);

  STICKLINE(MACD》0,MACD,0,0.5,1),COLORRED;

  STICKLINE(MACD《0,MACD,0,0.5,1),COLORGREEN;

  STICKLINE(MACD》0 AND MACD

  STICKLINE(MACD《0 AND MACD》REF(MACD,1),MACD,0,0.5,1),COLORFF00FF;

  绿柱面积:IF (MACD《0,SUM(MACD,BARSLAST(MACD》0)),0),nodraw,colorgreen;

  红柱面积:IF (MACD》0,SUM(MACD,BARSLAST(MACD《0)),0),nodraw,Colorred;

  DRAWTEXT(CROSS(diff,80),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-80,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-80),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(80,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,30),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-30,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-30),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(30,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,50),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-50,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-50),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(50,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,80),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-8,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-8),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(8,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,5),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-50,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-5),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(5,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,3),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-3,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-3),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(3,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,10),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-10,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-10),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(10,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,1),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-1,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-1),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(1,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,2),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-2,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-2),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(2,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,20),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(-20,diff),diff,‘弱’),COLORGREEN;

  DRAWTEXT(CROSS(diff,-20),diff,‘强’),COLORRED;

  DRAWTEXT(CROSS(20,diff),diff,‘弱’),COLORGREEN;

(股票知识网zhishi.southmoney.com)
    股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
商务进行时
股票知识学习
联盟广告

关于股票知识网 -版权声明 -诚聘英才 -广告服务 -网站地图 -
特此声明:广告商的言论与行为均与股票知识网无关
zhishi.southmoney.com
股票知识网 © 版权所有 闽ICP备09035581号