同花順DMI動(dòng)向優(yōu)化指標(biāo)公式
- 指標(biāo)類別: 同花順指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)分類: 趨勢(shì)
- 畫線方法: 副圖
- 日期:2019-01-07 來(lái)源:互聯(lián)網(wǎng)
同花順DMI動(dòng)向優(yōu)化指標(biāo)公式:
TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0 OR HD>LD,HD,0),14);
DMM:=EMA(IF(LD>0 OR LD>HD,LD,0),14);
PDI: DMP*100/TR,colorwhite;
MDI: DMM*100/TR,coloryellow;
趨勢(shì)線:MA(EMA(PDI,2),10),colorred,LINETHICK2;
STICKLINE(PDI>趨勢(shì)線,趨勢(shì)線,PDI,0.05,0),colormagenta;
STICKLINE(PDI>MDI,PDI,趨勢(shì)線,0.1,0),colorred;
STICKLINE(PDI>MDI,MDI,趨勢(shì)線,0.1,0),colorlired;
STICKLINE(PDI<趨勢(shì)線,趨勢(shì)線,PDI,0.05,0),COLORFF8000;
STICKLINE(PDI<MDI,PDI,MDI,0.1,0),colorblue;
ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,6),colorgreen;
ADXR:EMA(ADX,6),colormagenta;
同花順DMI動(dòng)向優(yōu)化指標(biāo)公式實(shí)例圖解:
同花順DMI動(dòng)向優(yōu)化指標(biāo)公式