时钟式主动买卖指示仪(代码及图)
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);
- 上一篇:刘剑macd副图指标,逃顶抄底,买卖利器 2014/11/28
- 下一篇:顶底如神 买卖利器 买卖向导 2014/11/28