通达信自用资金流指标 源码
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,COLORMAGENTA,NODRAW;
差亿:流入亿+流出亿,COLORFFFF00,NODRAW;
净:=EMA(EMA(差亿,2),2),COLOR00FFFF,NODRAW;
{}
净1:=EMA(净,2);
流:=EMA(净1,7);
净流:=3*EMA(净1+流,2);
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),COLOR009900;
STICKLINE(净流<REF(净流,1)AND 净流>0,0,净流,3,0),COLOR00BB00;
STICKLINE(净流<REF(净流,1)AND 净流>0,0,净流,2,0),COLOR00DD00;
STICKLINE(净流<REF(净流,1)AND 净流>0,0,净流,1,0),COLOR00FF00;
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,'买'),COLORFF00FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:成交额/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出
流入亿:IF(收盘价>开盘价,VAR1*(最高价-最低价),IF(收盘价<开盘价,VAR1*((最高价-开盘价)+(收盘价-最低价)),成交额/2))/100000000,画红色,NODRAW
输出
流出亿:IF(收盘价>开盘价,0-VAR1*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,0-VAR1*(最高价-最低价),0-成交额/2))/100000000,画洋红色,NODRAW
输出
差亿:流入亿+流出亿,COLORFFFF00,NODRAW
净赋值:差亿的2日指数移动平均,2),COLOR00FFFF,NODRAW
{}
净1:=净的2日指数移动平均
流赋值:净1的7日指数移动平均
净流:=3*净1+流的2日指数移动平均
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流<0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
当满足条件净流>0时,在0和净流之间画柱状线
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,4,0),COLOR009900
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,3,0),COLOR00BB00
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,2,0),COLOR00DD00
STICKLINE(净流<1日前的净流AND 净流>0,0,净流,1,0),COLOR00FF00
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,'买'),COLORFF00FF