通达信资金流量副图指标公式
安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。
不会安装点击 安装指南 步骤操作。
K1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1/(K1+K2);
KT:=VOL-DT;
买量:SUM(DT,5),COLOR0000FF;
卖量:-SUM(KT,5),COLORFFFF00
{需要编写选股关注微信公众号:程序化指标};
DRAWBAND(买量,RGB(0,80,0),0,RGB(0,120,0));
DRAWBAND(卖量,RGB(0,120,0),0,RGB(0,80,0));
进出量:买量+卖量,POINTDOT,COLOR00FFFF;
净量换手:100*进出量/CAPITAL,POINTDOT,COLOR00FF33;
STICKLINE(进出量>=0,0,进出量,6,1),COLOR0000FF;
STICKLINE(进出量<0,0,进出量,6,1),COLORFFFF00;
D5:=100*SUM(DT,5)/CAPITAL;
K5:=100*SUM(KT,5)/CAPITAL;
J5:=D5-K5;
D10:=100*SUM(DT,10)/CAPITAL;
K10:=100*SUM(KT,10)/CAPITAL;
J10:=D10-K10;
D20:=100*SUM(DT,20)/CAPITAL;
K20:=100*SUM(KT,20)/CAPITAL;
J20:=D20-K20;
BL5:=400/MAX(D5,K5);
BL10:=400/MAX(D10,K10);
BL20:=400/MAX(D20,K20);
DRAWRECTREL(0,0,360,999,RGB(50,50,50));
D5B:=999-D5*BL5;
K5B:=999-K5*BL5;
J5B:=999-ABS(J5)*BL5;
D10B:=999-D10*BL10;
K10B:=999-K10*BL10;
J10B:=999-ABS(J10)*BL10;
D20B:=999-D20*BL20;
K20B:=999-K20*BL20;
J20B:=999-ABS(J20)*BL20;
{画直方图}
DRAWRECTREL(30,D5B,50,999,RGB(150,0,0));
DRAWRECTREL(50,K5B,70,999,RGB(0,150,150));
DRAWRECTREL(70,J5B,90,999,RGB(150,150,0));
DRAWRECTREL(150,D10B,170,999,RGB(150,0,0));
DRAWRECTREL(170,K10B,190,999,RGB(0,150,150));
DRAWRECTREL(190,J10B,210,999,RGB(150,150,0));
DRAWRECTREL(270,D20B,290,999,RGB(150,0,0));
DRAWRECTREL(290,K20B,310,999,RGB(0,150,150));
DRAWRECTREL(310,J20B,330,999,RGB(150,150,0));
DRAWTEXT_FIX(1,0.05,0,0,'买量'), COLORDDFFFF;
DRAWTEXT_FIX(1,0.15,0,0,'卖量'), COLORDDFFFF;
DRAWTEXT_FIX(1,0.25,0,0,'进出量'), COLORDDFFFF;
DRAWTEXT_FIX(1,0,0.09,0,'今日'), COLOR33FFFF;
DRAWTEXT_FIX(1,0.05,0.09,0,CON2STR(100*DT/CAPITAL,2)), COLOR33FFFF;
DRAWTEXT_FIX(1,0.15,0.09,0,CON2STR(100*KT/CAPITAL,2)), COLOR33FFFF;
DRAWTEXT_FIX(1,0.25,0.09,0,CON2STR(100*DT/CAPITAL-100*KT/CAPITAL,2)), COLOR33FFFF;
DRAWTEXT_FIX(1,0,0.18,0,'5日'), COLORDDFFFF;
DRAWTEXT_FIX(1,0.05,0.18,0,CON2STR(D5,2)), COLORDDFFFF;
DRAWTEXT_FIX(1,0.15,0.18,0,CON2STR(K5,2)), COLORDDFFFF;
DRAWTEXT_FIX(1,0.25,0.18,0,CON2STR(J5,2)), COLORDDFFFF;
DRAWTEXT_FIX(1,0,0.27,0,'10日'), COLOR33FFFF;
DRAWTEXT_FIX(1,0.05,0.27,0,CON2STR(D10,2)), COLOR33FFFF;
DRAWTEXT_FIX(1,0.15,0.27,0,CON2STR(K10,2)), COLOR33FFFF;
DRAWTEXT_FIX(1,0.25,0.27,0,CON2STR(J10,2)), COLOR33FFFF;
DRAWTEXT_FIX(1,0,0.36,0,'20日'), COLORDDFFFF;
DRAWTEXT_FIX(1,0.05,0.36,0,CON2STR(D20,2)), COLORDDFFFF;
DRAWTEXT_FIX(1,0.15,0.36,0,CON2STR(K20,2)), COLORDDFFFF;
DRAWTEXT_FIX(1,0.25,0.36,0,CON2STR(J20,2)), COLORDDFFFF;
DRAWTEXT_FIX(1,0.01,0.7,0,'5'), COLORBBFFFF;
DRAWTEXT_FIX(1,0.01,0.8,0,'日'), COLORBBFFFF;
DRAWTEXT_FIX(1,0.12,0.7,0,'10'), COLORBBFFFF;
DRAWTEXT_FIX(1,0.12,0.8,0,'日'), COLORBBFFFF;
DRAWTEXT_FIX(1,0.24,0.7,0,'20'), COLORBBFFFF;
DRAWTEXT_FIX(1,0.24,0.8,0,'日'), COLORBBFFFF;
版权声明
所有指标均为免费分享。
文章内容来自互联网,本网站无任何收费项目也不推荐股票广告投放请自行识别风险。