JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
荬1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
荬2:=QJ0*(JJ-MIN(CLOSE,OPEN));
迈1:=QJ0*(MAX(CLOSE,OPEN)-JJ);
迈2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
DT:=((荬1+荬2)-(迈1+迈2))/10000;
主力持仓:SUM(DT,66),COLORBROWN,LINETHICK1;
STICKLINE(DT>0,主力持仓,主力持仓+DT,6,0),COLORred;
STICKLINE(DT<0,主力持仓+DT,主力持仓,6,0),COLORCYAN;