zjtz288 发表于 2016-2-14 21:34

通达信N日内净流入副图

N日内净流入副图指标
源码

AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
进出量:=买量+卖量,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日内净流入0 AND N日内净流入<0);
N1:=22;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDY:((QJ2+QJ4)-(QJ1+QJ3))/IF(CAPITAL=0,1000000,10000),COLOR00DD00,LINETHICK;
DY:=MA(DDY,5)*N1;
STICKLINE(DDY<0,0,DDY,3,0),COLORFF8800;
STICKLINE(DDY<0,0,DDY,2.5,0),COLORFFAA00;
STICKLINE(DDY<0,0,DDY,1.5,0),COLORFFCC00;
STICKLINE(DDY<0,0,DDY,1,0),COLORFFEE00;
STICKLINE(DDY>0,0,DDY,3,0),COLOR880088;
STICKLINE(DDY>0,0,DDY,2.5,0),COLORAA00AA;
STICKLINE(DDY>0,0,DDY,1.5,0),COLORCC00CC;
STICKLINE(DDY>0,0,DDY,1,0),COLOREE00EE;
DDY1:SMA(DY,3,1),COLORFFFFFF;
DDY2:SMA(DDY1,3,1),COLOR00FFFF;
DDY3:EMA(DDY2,5),COLORFF00FF;
预警:DDY>0 AND CROSS(DDY1,DDY2) AND DDY1<0,LINETHICK;
DRAWTEXT(预警,DDY*1.06,'★'),LINETHICK3,COLORYELLOW;
{原文链接:http://www.guhai.com.cn/html/GS/tong-da-xin/82226.html}

阿怯尼 发表于 2016-2-14 22:04

#在这里快速回复#多彩K线主图公式(通达信) 热度 113已有 4801 次阅读2014-2-28 15:52 | 通达信, 公式 多彩K线-主图公式, 显示大阳\大阴\涨停\跌停\假阴\假阳\跳空\大K线中点,适用于最新版通达信 } DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块} DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块} DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块} {跳空} STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY; STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY; wen98编_C: CONST(C),COLORLIRED,POINTDOT;{现价线} MA5:=MA(C,5); MA5角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW; DRAWKLINE(H,O,L,C);{重绘K线} RC1:=REF(C,1);{178448-WEN98编写} CS:=IF(C>=1,10000,100000); C涨停10:=1.10*RC1-49/CS;{考虑到4舍5入} C涨停5 :=1.05*RC1-49/CS; C跌停10:=0.90*RC1+51/CS; C跌停5 :=0.95*RC1+51/CS; ST:=NAMELIKE('S') OR NAMELIKE('*S'); 涨停:= IF(ST, C>=C涨停5, C>=C涨停10); 跌停:= IF(ST, C<=C跌停5, C<=C跌停10); 盘中涨停:=IF(ST, H>=C涨停5, H>=C涨停10); 盘中跌停:=IF(ST, L<=C跌停5, L<=C跌停10); STICKLINE(盘中涨停,H,MAX(C,O),0,0),COLORMAGENTA;{涨停后回落} STICKLINE(盘中跌停,L,MIN(C,O),0,0),COLORLICYAN;{跌停后回升} 大阳线:= C>O AND (C>=C涨停5 OR C>(1.05*O-51/CS) )          OR (C>1000 AND C > RC1*1.024); STICKLINE(大阳线,O,C,1,0),COLOR0000BB; 大阴线:= C<O AND (C<=C跌停5 OR C<(0.95*O+49/CS) )         OR (C>1000 AND C < RC1*0.976); STICKLINE(大阴线,O,C,1,0),COLORLIGREEN; STICKLINE(涨停,O,C,1,0),COLORMAGENTA; STICKLINE(跌停,O,C,1,0),COLORLICYAN; 假阴:=C<O AND C>REF(C,1); STICKLINE(假阴,O,C,0,0),COLORRED;{假阴柱}; 假阳:=C>O AND C<REF(C,1); STICKLINE(假阳,O,C,0,0),COLORGREEN;{假阳柱}; 大盘TJ:=PERIOD=5 AND NAMELIKE('上证指数')          AND (ABS((C-REF(C,1)))/REF(C,1)>=0.025 OR ABS(C-O)>=60); STICKLINE(大盘TJ,(H+L)/2,(H+L)/2,2,0),COLORYELLOW;{显示大盘日线的60点大K线中值}; STICKLINE((大阳线 OR 大阴线 OR 涨停 OR 跌停)    AND BETWEEN(C,1,500),L+(H-L)/2,L+(H-L)/2,1,0),COLORYELLOW;{大K线画中点线};

sxxzguojh 发表于 2016-2-20 18:09

不能用的
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE

南萍晚钟 发表于 2016-2-14 22:26

黄金T2——梯量柱的提前介入法

三严三实 发表于 2016-2-14 21:56

认认真真学习认认真真学习

t20ily 发表于 2016-2-14 22:10

感谢楼主无私分享

ching55 发表于 2016-2-14 22:13

谢谢老师分享!!

aarongan 发表于 2016-2-14 22:32

谢谢楼主分享

回忆格式化 发表于 2016-2-14 22:46

谢谢楼主分享

ppklm3796 发表于 2016-2-14 22:50

这样的公式不能用。你试了吗????????????

木炫煌 发表于 2016-2-14 23:59

学习了!!!!!!!!!!!!

吾道问道 发表于 2016-2-15 00:10

谢谢分享,好好学习,天天向上。

zjtz298 发表于 2016-2-17 09:05

通达信N日内净流入副图

wangwei618 发表于 2016-2-17 09:51

感谢楼主分享

kfxiaoyuan 发表于 2016-2-20 17:22

学习学习在学习
页: [1] 2
查看完整版本: 通达信N日内净流入副图