通达信机构能量副图源码

2016-07-02 15:10:00来源:本站整理浏览:257

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

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式