{分时差}
主力买:SUM("资金博弈.主力买",0),LINETHICK0;
主力卖:SUM("资金博弈.主力卖",0),LINETHICK0;
买卖差:主力买+主力卖,colorred;
最大买卖差:HHV(买卖差,0),colorred;
散买:SUM("资金博弈.散买",0),LINETHICK0;
散卖:SUM("资金博弈.散卖",0),LINETHICK0,colorgreen;
总额:主力买-主力卖+散买-散卖,LINETHICK0,colorwhite;
partline(买卖差,买卖差>=100,RGB(255,0,0),买卖差<100,RGB(0,255,0)),linethick3;
{主力分时比}
主力买:=SUM("资金博弈.主力买",0);
主力卖:=SUM("资金博弈.主力卖",0);
z:=主力卖<0 AND 主力买>0;
买卖比:if(z,主力买/abs(主力卖),1),colorred,LINETHICK0;
最大买卖比:hhv(买卖比,0),LINETHICK0;
partline(买卖比,买卖比>=1.2 and 主力买+主力卖>=100,RGB(255,0,0),买卖比<1.2 or 主力买+主力卖<100,RGB(0,100,0)),linethick3;