主力持仓(大智慧L2)

Ddmr:=(bigorder(1,2)-bigorder(2,2))*v/capital*100;

Ddmrs:=sum(Ddmr,0);

gold:=Ddmrs+50;

主力资金:gold,LINETHICK1,color00ddff;

Xl:=slope(gold,3)>0;

PARTLINE(gold,xl,rgb(255,100,0)),LINETHICK1;

stICKLINE(Ddmr>0 and Ddmr<0.5,gold,gold+Ddmr,0.5,0),colorred;

STICKLINE(Ddmr>=0.5 and Ddmr<1,gold,gold+Ddmr,2,0),colorred;

STICKLINE(Ddmr>=1 and Ddmr<2,gold,gold+Ddmr,3,0),colorred;

STICKLINE(Ddmr>=2,gold,gold+Ddmr,4,0),colorred;

STICKLINE(Ddmr>-0.5 and Ddmr<=0,gold+Ddmr,gold,0.5,0),COLOR00AA00;

STICKLINE(Ddmr<=-0.5 and Ddmr>-1,gold+Ddmr,gold,2,0),COLOR00BB00;

STICKLINE(Ddmr<=-1 and Ddmr>-2,gold+Ddmr,gold,3,0),COLOR00cc00;

STICKLINE(Ddmr<=-2,gold+Ddmr,gold,4,0),COLOR00ee00;