
JJZ:=(H+LOW+C)/3;
VAR1:=AMOUNT/IF(H=LOW,4,H-LOW);
买1:=VAR1*(MIN(O,C)-LOW);
买2:=VAR1*(JJZ-MIN(C,O));
卖1:=VAR1*(MAX(C,O)-JJZ);
卖2:=VAR1*(H-MAX(O,C));
DTZ:=((买1+买2)-(卖1+卖2))/10000;
主力持仓:=SUM(DTZ,66),COLORWHITE,LINETHICK1;
MA主力持仓:SMA(主力持仓,15,1),COLORWHITE,LINETHICK1;
EMA主力持仓:SMA(MA主力持仓,6,1),COLORLIBLUE,LINETHICK1;
主力买:DTZ>0,,NODRAW,COLOR0000FF;
DRAWTEXT_FIX(1,0,1,0,'公众号:精选指标'),COLORMAGENTA;
STICKLINE(DTZ>0,MA主力持仓,MA主力持仓+DTZ,2,0),COLOR0000FF;
STICKLINE(DTZ<0,MA主力持仓+DTZ,MA主力持仓,2,0),COLOR00FF00;
主力增仓:IF(EMA主力持仓>REF(EMA主力持仓,1),EMA主力持仓,DRAWNULL) ,COLORFF00FF,LINETHICK3;
DRAWICON(CROSS(MA主力持仓,EMA主力持仓),EMA主力持仓*0.92,1);
JJ:=(H+LOW+C)/3;
QJ0:=AMOUNT/IF(H=LOW,4,H-LOW);
TD1:=QJ0*(MIN(O,C)-LOW);
DD1:=QJ0*(JJ-MIN(C,O));
DD2:=QJ0*(H-MAX(O,C));