机构能量指标源码 副图 通达信 贴图
AAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AAA*(HIGH-LOW),0-VOL/2)),LINETHICK0;
主买占%:主买/V*100,COLORRED,LINETHICK0;
主卖占%:主卖/V*100,COLOR00FF00,LINETHICK0;
STICKLINE(CURRBARSCOUNT=3,80,-80,17,0),COLOR97694F;
STICKLINE(CURRBARSCOUNT=1,80,-80,0.01,0);
DRAWLINE(CURRBARSCOUNT=5,0,CURRBARSCOUNT=1,0,0);
DRAWLINE(CURRBARSCOUNT=5,80,CURRBARSCOUNT=1,80,0);
DRAWLINE(CURRBARSCOUNT=5,-80,CURRBARSCOUNT=1,-80,0);
DRAWLINE(CURRBARSCOUNT=5,80,CURRBARSCOUNT=4,75,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=4,75,CURRBARSCOUNT=3,68,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=3,68,CURRBARSCOUNT=2,45,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=2,45,CURRBARSCOUNT=1,0,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=5,-80,CURRBARSCOUNT=4,-75,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=4,-75,CURRBARSCOUNT=3,-68,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=3,-68,CURRBARSCOUNT=2,-45,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=2,-45,CURRBARSCOUNT=1,0,0),COLORFFFFFF;
DRAWLINE(CURRBARSCOUNT=5,0,CURRBARSCOUNT=1,主买占%,0),LINETHICK3,COLORRED;
DRAWLINE(CURRBARSCOUNT=5,0,CURRBARSCOUNT=1,-主卖占%,0),LINETHICK3,COLOR00FF00;
STICKLINE(主买占%>0 AND CURRBARSCOUNT=1,80,0,0.5,0),COLORRED;
STICKLINE(-主卖占%<0 AND CURRBARSCOUNT=1,-80,0,0.5,0),COLOR00FF00;
DRAWICON(CURRBARSCOUNT=5,0,97);
DRAWICON(CURRBARSCOUNT=1,主买占%,97);
DRAWICON(CURRBARSCOUNT=1,-主卖占%,97);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AAA赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
主买赋值:IF(收盘价>开盘价,AAA*(最高价-最低价),IF(收盘价<开盘价,AAA*((最高价-开盘价)+(收盘价-最低价)),成交量/2)),LINETHICK0
主卖赋值:-IF(收盘价>开盘价,0-AAA*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,0-AAA*(最高价-最低价),0-成交量/2)),LINETHICK0
主买占%:主买/V*100,画红色,LINETHICK0
主卖占%:主卖/V*100,COLOR00FF00,LINETHICK0
当满足条件 到最后交易的周期=3时,在80和-80之间画柱状线
当满足条件 到最后交易的周期=1时,在80和-80之间画柱状线
DRAWLINE( 到最后交易的周期=5,0, 到最后交易的周期=1,0,0)
DRAWLINE( 到最后交易的周期=5,80, 到最后交易的周期=1,80,0)
DRAWLINE( 到最后交易的周期=5,-80, 到最后交易的周期=1,-80,0)
DRAWLINE( 到最后交易的周期=5,80, 到最后交易的周期=4,75,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=4,75, 到最后交易的周期=3,68,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=3,68, 到最后交易的周期=2,45,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=2,45, 到最后交易的周期=1,0,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=5,-80, 到最后交易的周期=4,-75,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=4,-75, 到最后交易的周期=3,-68,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=3,-68, 到最后交易的周期=2,-45,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=2,-45, 到最后交易的周期=1,0,0),COLORFFFFFF
DRAWLINE( 到最后交易的周期=5,0, 到最后交易的周期=1,主买占%,0), 线宽为3,画红色
DRAWLINE( 到最后交易的周期=5,0, 到最后交易的周期=1,-主卖占%,0), 线宽为3,COLOR00FF00
当满足条件主买占%>0 AND 到最后交易的周期=1时,在80和0之间画柱状线
当满足条件-主卖占%<0 AND 到最后交易的周期=1时,在-80和0之间画柱状线
当满足条件 到最后交易的周期=5时,在0和97之间画图标
当满足条件 到最后交易的周期=1时,在主买占%和97之间画图标
当满足条件 到最后交易的周期=1时,在-主卖占%和97之间画图标