设为首页加入收藏

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

通达信公式源码 通达信好用的DDX公式源码

2015-4-13 10:16:12 股票入门 http://rumen.southmoney.com

  通达信公式源码 通达信好用的DDX公式源码:

  AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

  买量:=IF(CLOSE》OPEN,AA*(HIGH-LOW),IF(CLOSE《OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;

  卖量:=IF(CLOSE》OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE《OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;

  进出量:=买量+卖量,COLOR00FFFF;

  STICKLINE(进出量《0,0,进出量,4,0),COLORFF6600;

  STICKLINE(进出量《0,0,进出量,3,0),COLORFF9900;

  STICKLINE(进出量《0,0,进出量,1.5,0),COLORFFCC00;

  STICKLINE(进出量《0,0,进出量,0.5,0),COLORCYAN;

  STICKLINE(进出量》0,0,进出量,4,0),COLOR000099;

  STICKLINE(进出量》0,0,进出量,3,0),COLOR0000CC;

  STICKLINE(进出量》0,0,进出量,1.5,0),COLOR0000FF;

  STICKLINE(进出量》0,0,进出量,0.5,0),COLORCC66FF;

  N:=5; M:=13; N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;

  流入:IF(N日内净流入》REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;

  连红天:BARSLASTCOUNT(进出量》0);

  M日内翻红天:COUNT(进出量》0,M),COLORRED;

  走熊天:BARSLASTCOUNT(N日内净流入《0),COLORCYAN;

  走牛天:BARSLASTCOUNT(N日内净流入》0),COLORRED;

  强势天:BARSLASTCOUNT((N日内净流入》REF(N日内净流入,1))》0 AND N日内净流入》0);

  弱势天:BARSLASTCOUNT((N日内净流入《REF(N日内净流入,1))》0 AND N日内净流入《0);

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