|
A:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),10);
A1:=HIGH-REF(HIGH,1);
A2:=REF(LOW,1)-LOW;
DMP:=SUM(IF(A1>0 AND A1>A2,A1,0),10);
DMM:=SUM(IF(A2>0 AND A2>A1,A2,0),10);
PDI:=DMP*100/A;MDI:=DMM*100/A;
ADX:=MA((ABS(MDI-PDI))/(MDI+PDI)*100,10);
ADXR:=(ADX+REF(ADX,10))/2;
暴涨前夜:ADX>90 AND PDI=0;
DRAWTEXT(暴涨前夜 AND REF(ADX,1)<90 ,0.70,'更多交流:QQ2583788903'),COLORYELLOW; |
|