通达信PDI趋势指标公式

2024-09-13 06:00发布

N:=14;M:=9;T:=120;AN1:=20;MTR:=SUM(MAX(MAX(HIGH-LOW,A(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=SUM(IF(HD>0&&HD>LD,HD,0),N);DMM:=SUM(IF(LD>0&&LD>HD,LD,0),N);PDI: DMP*100/MTR;: DMM*100/MTR;ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M) NODRAW ;ADXR:(ADX+REF(ADX,M))/2 NODRAW;X轴:20.00,COLORRED,LINETHICK2;AA1:=REF(PDI,AN1)=LLV(PDI,2*AN1+1);QY1:=BACKSET(AA1,AN1+1);ACC1:=FILTER(QY1,AN1) AND PDI=LLV(PDI,AN1+1);JQS:=OSS(BACKSET(BARSTATUS=2,SUMBARS(ACC1,1)),0.5);
 解锁全文需 1  财富值,免费注册即送20财富值!