公式源码N=14 M=6MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);PDI:DMP*100/MTR;MDI:DMM*100/MTR;ADX
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/24 00:47:36
公式源码N=14 M=6MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);PDI:DMP*100/MTR;MDI:DMM*100/MTR;ADX
公式源码
N=14 M=6
MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N);
DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);
PDI:DMP*100/MTR;
MDI:DMM*100/MTR;
ADX:MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:(ADX+REF(ADX,M))/2;
条件是 ADX和ADXR在20以内金叉 同时 PDI值大于30,MDI值小于20
ADX和ADXR在20以内是向上金叉
公式源码N=14 M=6MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);PDI:DMP*100/MTR;MDI:DMM*100/MTR;ADX
N=14 M=6
MTR:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N);
DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);
PDI: =DMP*100/MTR;
MDI: =DMM*100/MTR;
ADX: =MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=(ADX+REF(ADX,M))/2;
XG:ADX