飞狐DMI暴涨指标公式

2023-05-11 06:00发布

n:=4;m:=3;R := SUM(MAX(MAX(HIGH-LOW,A(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);:= DMP*100/TRTR;:= DMM*100/TRTR;ADX:= MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:=(ADX+REF(ADX,M))/2;:if(ADX>90 and PDI=0,30,0),coloryellow,linethick2;买:if(oss(PDI,MDI) and (C >1.05*ref(C,1) or ref(C,1)>1.05*ref(C,2)) and (V>2*ref(V,1) or ref(V,1)>2*ref(V,2))and ma(V,5)>ma(V,60) ,20,0),colorred,lineth
 解锁全文需 1  财富值,免费注册即送20财富值!