通達信自用DMI指標(biāo)公式
基本概況:
- 指標(biāo)類別: 通達信指標(biāo)
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)語言: 簡體中文
- 指標(biāo)來源: 互聯(lián)網(wǎng)
- 指標(biāo)日期: 2017-08-29 00:00:00
內(nèi)容介紹:
通達信自用DMI指標(biāo)公式:
DRAWGBK(C>0, RGB(1,0,1),RGB(1,0,1),0,'0',0);
MTR:=EXPMEMA(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:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:DMP*100/MTR,COLORWHITE,NODRAW;
MDI:DMM*100/MTR,COLORYELLOW,NODRAW;
ADX:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6)COLORMAGENTA;
ADXR:EXPMEMA(ADX,6)COLORGREEN;
MZD:=MAX(ADX,MAX(PDI,MDI));
MZX:=MIN(ADX,MIN(PDI,MDI));
高點:=REFDATE(HHV(MZD,120),DATE);
低點:=REFDATE(LLV(MZX,120),DATE);
STICKLINE(PDI>MDI,高點,低點,5,0)COLOR001050;
STICKLINE(PDI<MDI,高點,低點,5,0)COLOR404050;
DRAWBAND(PDI,RGB(150,50,50),MDI,RGB(0,50,100));
STICKLINE(ADX>ADXR,ADX,ADXR,1,0)COLORRED;
STICKLINE(ADX<ADXR,ADX,ADXR,1,0)COLORLIGREEN;
通達信自用DMI指標(biāo)公式
NOTEXT1:ADX,COLORMAGENTA;
NOTEXT2:ADXR,COLORGREEN;
STICKLINE(C>0,60,60,28,-1)COLORYELLOW;
STICKLINE(C>0,20,20,28,-1)COLORYELLOW;
DRAWTEXT(ISLASTBAR,ADX,' ←ADX'),COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.00,0,'股價連續(xù)上漲到高位,ADX下穿ADXR或下穿60時賣出;'),COLORGREEN;
DRAWTEXT_FIX(1,0,0.10,0,'股價連續(xù)下跌到低位,ADX下穿ADXR或下穿60時買入;'),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.20,0,'股價在低位盤整過后,ADX上穿20時啟動(上升);'),COLORWHITE;
DRAWTEXT_FIX(1,0,0.30,0,'股價在高位盤整過后,ADX上穿20時啟動(下跌);'),COLORCYAN;
DRAWTEXT_FIX(1,0.55,0.00,0,'20軸附近 -- 紅色背景 -- 出現(xiàn)紅柱(或綠柱縮短)-- 可以買入;'),COLORWHITE;
DRAWTEXT_FIX(1,0.55,0.10,0,'紅色背景(PDI>MDI):安全;'),COLORWHITE;
通達信自用DMI指標(biāo)公式更新時間:2017-08-29 13:18
相關(guān)推薦: