A:=SUM(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),3);
AA1:=HIGH-REF(HIGH,1);
AA2:=REF(LOW,1)-LOW;
ADMP:=SUM(IF(AA1>0 AND AA1>AA2,AA1,0),3);
ADMM:=SUM(IF(AA2>0 AND AA2>AA1,AA2,0),5);
APDI:=ADMP*100/A;
Amdi:=ADMM*100/A;
AADX:=MA((ABS(AMDI-APDI))/(AMDI+APDI)*100,7);
暴涨前夜:IF(AADX>90 AND APDI=0,0.6,0),COLORRED;