通达信关注资金介入副图指标 源码分享 附图
额:AMOUNT/10000000,NODRAW;
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;
流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;
差:(流入亿+流出亿),NODRAW;
强:=EMA((CLOSE-REF(CLOSE,1))/CLOSE*10,2);
主力:=EMA(差,1),COLORFF00FF,LINETHICK5;
差A:3*EMA(EMA(EMA(EMA(强,2),2),2),2),NODRAW;
净流:3*EMA(EMA(EMA(EMA(差A,1),2),2),2), COLORRED,NODRAW;
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;
STICKLINE(净流<REF(净流,1)AND 净流>0,0,净流,4,0),COLOR009999;
STICKLINE(净流<REF(净流,1)AND 净流>0,0,净流,3,0),COLOR00BBBB;
STICKLINE(净流<REF(净流,1)AND 净流>0,0,净流,2,0),COLOR00DDDD;
STICKLINE(净流<REF(净流,1)AND 净流>0,0,净流,1,0),COLOR00FFFF;
STICKLINE(净流>REF(净流,1)AND 净流<0,0,净流,4,0),COLOR000099;
STICKLINE(净流>REF(净流,1)AND 净流<0,0,净流,3,0),COLOR0000BB;
STICKLINE(净流>REF(净流,1)AND 净流<0,0,净流,1.5,0),COLOR0000DD;
STICKLINE(净流>REF(净流,1)AND 净流<0,0,净流,0.5,0),COLOR0000FF;
DRAWTEXT(CROSS(0,净流),0+0,'空'),COLORGREEN;
DRAWTEXT(CROSS(REF(净流,1),净流),净流-0,'注意'),COLORFFFF00;
DRAWTEXT(CROSS(净流,0),0,'关注 资金介入'),COLOR00FFFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出额:成交额/10000000,NODRAW
VAR1赋值:成交额/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出流入亿:IF(收盘价>开盘价,VAR1*(最高价-最低价),IF(收盘价<开盘价,VAR1*((最高价-开盘价)+(收盘价-最低价)),成交额/2))/100000000,画红色,NODRAW
输出流出亿:IF(收盘价>开盘价,0-VAR1*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,0-VAR1*(最高价-最低价),0-成交额/2))/100000000,COLOR00FF00,NODRAW
输出差:(流入亿+流出亿),NODRAW
强赋值:EMA((收盘价-1日前的收盘价)/收盘价*10,2)
主力赋值:差的1日指数移动平均,COLORFF00FF,LINETHICK5
差A:3*强的2日指数移动平均,2),2),2),NODRAW
输出净流:3*差A的1日指数移动平均,2),2),2), 画红色,NODRAW
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,4,0),COLOR009999
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,3,0),COLOR00BBBB
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,2,0),COLOR00DDDD
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,1,0),COLOR00FFFF
STICKLINE(净流>1日前的净流AND 净流<0,0,净流,4,0),COLOR000099
STICKLINE(净流>1日前的净流AND 净流<0,0,净流,3,0),COLOR0000BB
STICKLINE(净流>1日前的净流AND 净流<0,0,净流,1.5,0),COLOR0000DD
STICKLINE(净流>1日前的净流AND 净流<0,0,净流,0.5,0),COLOR0000FF
DRAWTEXT(0上穿净流,0+0,'空'),画绿色
DRAWTEXT(CROSS(1日前的净流,净流),净流-0,'注意'),COLORFFFF00
DRAWTEXT(净流上穿0,0,'关注 资金介入'),COLOR00FFFF