JJZ:=(HIGH+LOW+CLOSE)/3;
QJ0Z:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0Z*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0Z*(JJZ-MIN(CLOSE,OPEN));
卖1:=QJ0Z*(maX(CLOSE,OPEN)-JJZ);
卖2:=QJ0Z*(HIGH-MAX(OPEN,CLOSE));
DTZ:=((买1+买2)-(卖1+卖2))/10000;
主力持仓:=SUM(DTZ,66),COLORWHITE,LINETHICK1;
MA主力持仓:=SMA(主力持仓,15,1),COLORWHITE,LINETHICK1;
EMA主力持仓:=SMA(MA主力持仓,6,1),COLORLIBLUE,LINETHICK1;
红箭头:crOSS(MA主力持仓,EMA主力持仓);