修改后如下:x1:改成X1:=X;X5 AND X6 AND X2;改成:X5 AND X7 AND X2;
{小阳过近顶}
X1:=REF(HHV(C,20),1);
X2:=C>X1;
X3:=REF(C,1);
X4:=(C-X3)*100/X3;
X5:=X4>1.8 AND X4<4;
X6:=(C-X1)*100/X1;
X7:=X6>1 AND X6<4;
X:X5 AND X7 AND X2;
{小阳过近顶}
X1:=REF(HHV(C,20),1);
X2:=C>X1;
X3:=REF(C,1);
X4:=(C-X3)*100/X3;
X5:=X4>1.8 AND X4<4;
X6:=(C-X1)*100/X1;
X7:=X6>1 AND X6<4;
X:X5 AND X7 AND X2;