通达信主动买卖温度指标公式

通达信所属板块主图指标公式

通达信主动买卖温度指标公式:
成交量:=vol,VOLstICK;

MA5:=MA(VOL,5);

MA10:=MA(VOL,10);

MA20:=MA(VOL,20),LINETHICK0;

MA35:=MA(VOL,35),LINETHICK0;

AAA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));

主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))*0.8,LINETHICK0;

主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AAA*(HIGH-LOW),0-VOL/2))*0.9,LINETHICK0;

主力净量:=(主买-主卖),LINETHICK0;

O0:0;

总量:100,LINETHICK0;

主买占%:主买/成交量*100,COLORRED,LINETHICK0;

主卖占%:主卖/成交量*100,COLOR00FF00,LINETHICK0;

比差:=主买占%-主卖占%;

STICKLINE(CURRBARSCOUNT=1 AND 100>0,100,0,2,1),COLORYELLOW;

STICKLINE(CURRBARSCOUNT=1 AND 主卖占%>0,主卖占%,0,1.8,0),COLORBLUE;

STICKLINE(CURRBARSCOUNT=1 AND 主买占%>0,主买占%,0,1,0),COLORRED;

DRAWICON(CURRBARSCOUNT=1 AND 5>0,0,97);

DRAWTEXT(CURRBARSCOUNT=1,主买占%+5,'____主买'),COLORFF00FF;

DRAWTEXT(CURRBARSCOUNT=1,主卖占%+5,'____主卖'),COLORFF00FF;

DRAWTEXT(CURRBARSCOUNT=1,102,'总量'),COLORFF00FF;

DRAWTEXT(CURRBARSCOUNT=1,22,'----20'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,32,'----30'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,42,'----40'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,52,'----50'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,62,'----60'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,72,'----70'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,82,'----80'),COLORFFFFFF;

通达信布林牛主图指标公式