通达信买量卖量副图指标公式
安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。
不会安装点击 安装指南 步骤操作。
N:=5;
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);{WWW.HONGHAIE.COM}
买量:SUM(DT,N),COLOR0000FF;
卖量:-SUM(KT,N),COLORFFFF00;
DRAWBAND(买量,RGB(0,120,0),0,DRAWNULL);
DRAWBAND(0,RGB(0,80,0),卖量,DRAWNULL);
进出量:买量+卖量,POINTDOT,COLOR00FFFF;
净量换手:100*进出量/CAPITAL,POINTDOT,COLOR00FF33;
STICKLINE(进出量>=0,0,进出量,3,1),COLOR0000FF;
STICKLINE(进出量<0,0,进出量,3,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;
画:=CONST(FINDLOW(卖量,0,90,1));
DRAWTEXT_FIX(1,0.72,0,0,'☆微信公众号:(程序化指标) ☆'),COLORRED;
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,66,44),ABS(画),DRAWNULL),RGB(50,50,50),画,DRAWNULL);
BL5:=ABS(画)/CONST(FINDHIGH(MAX(D5,K5),0,65,1));
BL10:=ABS(画)/CONST(FINDHIGH(MAX(D10,K10),0,65,1));
BL20:=ABS(画)/CONST(FINDHIGH(MAX(D20,K20),0,65,1));
D5B:=(D5*BL5);
K5B:=(K5*BL5);
J5B:=(ABS(J5)*BL5);
D10B:=(D10*BL10);
K10B:=(K10*BL10);
J10B:=(ABS(J10)*BL10);
D20B:=(D20*BL20);
K20B:=(K20*BL20);
J20B:=(ABS(J20)*BL20);
{画直方图}{WWW.HONGHAIE.COM}
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,63,62),CONST(D5B),DRAWNULL),RGB(150,0,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,62,61),CONST(K5B),DRAWNULL),RGB(0,150,150),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,61,60),CONST(J5B),DRAWNULL),RGB(150,150,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,56,55),CONST(D10B),DRAWNULL),RGB(150,0,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,54),CONST(K10B),DRAWNULL),RGB(0,150,150),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,54,53),CONST(J10B),DRAWNULL),RGB(150,150,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,49,48),CONST(D20B),DRAWNULL),RGB(150,0,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,48,47),CONST(K20B),DRAWNULL),RGB(0,150,150),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,47,46),CONST(J20B),DRAWNULL),RGB(150,150,0),0,DRAWNULL);
DRAWTEXT(CURRBARSCOUNT=60,0,'买量'), COLORDDFFFF;
DRAWTEXT(CURRBARSCOUNT=55,0,'卖量'), COLORDDFFFF;
DRAWTEXT(CURRBARSCOUNT=50,0,'进出量'), COLORDDFFFF;
DRAWTEXT(CURRBARSCOUNT=65,画*0.2,'今日'), COLOR33FFFF;{WWW.HONGHAIE.COM}
DRAWNUMBER(CURRBARSCOUNT=60,画*0.2,CONST(100*DT/CAPITAL)), COLOR33FFFF;
DRAWNUMBER(CURRBARSCOUNT=55,画*0.2,CONST(100*KT/CAPITAL)), COLOR33FFFF;
DRAWNUMBER(CURRBARSCOUNT=50,画*0.2,CONST(100*DT/CAPITAL-100*KT/CAPITAL)), COLOR33FFFF;
DRAWTEXT(CURRBARSCOUNT=65,画*0.4,'5日'), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=60,画*0.4,CONST(D5)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=55,画*0.4,CONST(K5)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=50,画*0.4,CONST(J5)), COLORDDFFFF;
DRAWTEXT(CURRBARSCOUNT=65,画*0.6,'10日'), COLOR33FFFF;
DRAWNUMBER(CURRBARSCOUNT=60,画*0.6,CONST(D10)), COLOR33FFFF;
DRAWNUMBER(CURRBARSCOUNT=55,画*0.6,CONST(K10)), COLOR33FFFF;
DRAWNUMBER(CURRBARSCOUNT=50,画*0.6,CONST(J10)), COLOR33FFFF;
DRAWTEXT(CURRBARSCOUNT=65,画*0.8,'20日'), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=60,画*0.8,CONST(D20)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=55,画*0.8,CONST(K20)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=50,画*0.8,CONST(J20)), COLORDDFFFF;
DRAWTEXT(CURRBARSCOUNT=65,ABS(画)*0.6,'5'), COLORBBFFFF;
DRAWTEXT(CURRBARSCOUNT=58,ABS(画)*0.6,'10'), COLORBBFFFF;
DRAWTEXT(CURRBARSCOUNT=51,ABS(画)*0.6,'20'), COLORBBFFFF;
DRAWTEXT(CURRBARSCOUNT=65 OR CURRBARSCOUNT=58 OR CURRBARSCOUNT=51,ABS(画)*0.4,'日'), COLORBBFFFF;
版权声明
所有指标均为免费分享。
文章内容来自互联网,本网站无任何收费项目也不推荐股票广告投放请自行识别风险。