设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

通达信副图源码 清晰MACD副图源码

2015-3-9 9:26:34 股票入门 http://rumen.southmoney.com

  南方财富网带来通达信副图源码 清晰MACD副图源码:

  DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);

  DEA1:=EMA(DIF1,9);

  MACD1:=2*(DIF1-DEA1),STICK;

  MACD2:=EMA(MACD1,3);

  DIF:DIF1,COLOR33FF33;

  DEA:DEA1,COLORYELLOW;

  MACD:MACD1,NODRAW,COLORMAGENTA;

  STICKLINE(MACD》REF(MACD,1) AND MACD》0,0,MACD,3,1),COLORRED;

  STICKLINE(MACD《=REF(MACD,1) AND MACD》0,0,MACD,3,1),COLORYELLOW;

  STICKLINE(MACD》REF(MACD,1) AND MACD《0,0,MACD,3,1),COLORWHITE;

  STICKLINE(MACD《=REF(MACD,1) AND MACD《0,0,MACD,3,1),COLORGREEN;

  IF(DIF1》=DEA1,DIF1,DRAWNULL),COLORRED,LINETHICK2;

  DRAWTEXT(CROSS(DIF,DEA),DIF-0.1,‘金叉’),COLORRED;

  DRAWTEXT(CROSS(DEA,DIF),DIF+0.1,‘死叉’),COLORGREEN;

  DRAWICON(CROSS(DIF,DEA),-0.05,1);

  DRAWICON(CROSS(DEA,DIF),+0.05,2);

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。