通达信成交额优化公式指标
AA:=(AMOUNT / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买亿:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))/100000000,COLORRED,NODRAW;
卖亿:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2))/100000000,LINETHICK0,COLORCYAN,NODRAW;
净:买亿+卖亿,NODRAW;
净流:=XMA(净,3),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;
DRAWICON(CROSS(净流,0),0,1);
DRAWICON(CROSS(0,净流),0,2);
未来函数检测结果如下:
该公式包含未来函数:XMA
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AA赋值:(成交额 / (((最高价 - 最低价) * 2) - (收盘价 - 开盘价的绝对值)))
输出
买亿:IF(收盘价>开盘价,AA*(最高价-最低价),IF(收盘价<开盘价,AA*((最高价-开盘价)+(收盘价-最低价)),成交量/2))/100000000,画红色,NODRAW
输出
卖亿:IF(收盘价>开盘价,0-AA*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,0-AA*(最高价-最低价),0-成交量/2))/100000000,LINETHICK0,画青色,NODRAW
输出
净:买亿+卖亿,NODRAW
净流:=X净的3日简单移动平均,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
DRAWICON(净流上穿0,0,1)
DRAWICON(0上穿净流,0,2)