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

通达信MACD起涨指标公式

2014-07-21 16:38    股票知识   zhishi.southmoney.com
    

  通达信MACD起涨指标公式SHORT:=12;

  LONG:=27;

  MID:=9;

  DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

  DEA:=EMA(DIFF,MID);

  MACD:=2*(DIFF-DEA);

  MACD上拐:= REF(MACD,1)《REF(MACD,2) AND REF(MACD,1)《MACD AND REF(DIFF,1)《REF(DIFF,2);

  MACD下拐:= REF(MACD,1)》REF(MACD,2) AND REF(MACD,1)》MACD;

  DIFF上拐:={REF(DIFF,4)《REF(DIFF,3) AND REF(DIFF,3)《REF(DIFF,2) AND} REF(DIFF,1)《REF(DIFF,2) AND REF(DIFF,1)《DIFF;

  DIFF短调再上:={REF(DIFF,4)《REF(DIFF,3) AND} REF(DIFF,3)《REF(DIFF,2) AND REF(DIFF,1)《REF(DIFF,2) AND REF(DIFF,1)《DIFF;

  DIFF在DEA上:={REF(DEA,4)《REF(DIFF,4) AND} REF(DEA,3)《REF(DIFF,3) AND REF(DEA,2)《REF(DIFF,2) AND REF(DEA,1)《REF(DIFF,1) AND DEA《DIFF;

  放量起涨:= V》REF(V,1)*1.618;

  BUYDIFF再上:IF(DIFF短调再上 {AND DIFF在DEA上} {AND 放量起涨},1,0),COLORBLUE;

  BUYDIF上拐:IF(DIFF上拐 AND NOT(BUYDIFF再上),1.1,0.1),COLORRED;

  BUYMACD上拐:IF(MACD上拐,2.3,1.3),COLORMAGENTA;

  SELLMACD下拐:IF(MACD下拐,4,5),COLOR008000

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

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