通达信机构能量副图源码

[复制链接]
查看70 | 回复0 | 2022-7-24 05:05:52 | 显示全部楼层 |阅读模式

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);

631399427.jpg

631399427.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则