A:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
A1:=HIGH-REF(HIGH,1);
A2:=REF(LOW,1)-LOW;
DMP:=SUM(IF(A1>0 AND A1>A2,A1,0),N);
DMM:=SUM(IF(A2>0 AND A2>A1,A2,0),N);
PDI:=DMP*100/A;MDI:=DMM*100/A;ADX:=MA((ABS(MDI-PDI))/(MDI+PDI)*100,M);ADXR:=(ADX+REF(ADX,M))/2;
暴涨前夜:IF(ADX>90 AND PDI=0,3,0),LINETHICK2,COLORFFFF;
ZT:=C/REF(C,1)>1.095 AND H=C;
价格中心:=AMOUNT/V/100;
连续缩量:=COUNT(V<REF(V,1),7)>=6;
价格连续下移:=COUNT(价格中心<=REF(价格中心,1),7)>=6;
XG:COUNT(ZT,10) AND REF(价格连续下移,1) AND REF(连续缩量,1) AND C>=REF(MAX(C,O),1)+0.02;