通达信主力资金副图公式
VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VAR3:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VAR4:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-VAR1);
VAR5:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VAR6:=IF(HIGH=LOW,1,VAR1-MIN(CLOSE,OPEN));
买入:=(VAR5*VAR2)+(VAR6*VAR2);
卖出:=VOL-买入;
买卖差:=(买入-卖出);
金线:sum(买卖差,15),coloryellow;
银线:sum(买卖差,25),colorff00ff;
攻击力度:100*(WINNER(CLOSE)-WINNER(OPEN)),COLOR00FFFF,POINTDOT,LINETHICK0;
换手:=VOL/CAPITAL*100;
追击:攻击力度>15 and 换手<=6 ,LINETHICK0;
获利盘:WINNER(C)*100,LINETHICK0;
DRAWTEXT(追击,金线*1.06,'★'),LINETHICK3,COLOR0000CC;
0,colorgreen;