VAR1:=vol/((H-L)*2-Abs(C-O));
主买1:=IF(C>O,VAR1*(H-L),IF(C<O,VAR1*((H-O)+(C-L)),VOL/2)),COLORRED;
主卖1:=IF(C>O,0-VAR1*((H-C)+(O-L)),IF(C<O,0-VAR1*(H-L),0+V/2)),COLOR00FF00;
ddx:=主买1+主卖1;
DX:=MA(DDX,5)*5;
DDX1:=SMA(DX,3,1),COLORRED,LINETHICK1;
DDX2:=SMA(DDX1,3,1),COLORYELLOW,LINETHICK1;
mtm:=C-REF(C,1);
DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买1:=LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND crOSS(DX1,MA(DX1,2));
买:FILTER(DDX1>=DDX2 AND 买1=1,5);