九毛八公式指标
公式模块:
dmi日线指标
TR := 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/TR;
mdi: DMM*100/TR;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:(ADX+REF(ADX,M))/2; 周PDI: "DMI.PDI#WEEK";
周MDI: "DMI.MDI#WEEK";
周ADX: "DMI.ADX#WEEK";
周ADXR:"DMI.ADXR#WEEK";