通達信DMI壓箱底用法指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2022-09-28 來源:互聯(lián)網(wǎng)
通達信DMI壓箱底用法指標公式:
TTR:=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/TTR,NODRAW;
MDI:DMM*100/TTR,NODRAW;
STICKLINE(PDI>MDI,MDI,PDI,1,1),COLORLIRED;
STICKLINE(PDI>30,30,PDI,2,0),COLORRED;
STICKLINE(PDI<=MDI,MDI,PDI,1,1),COLORLIBLUE;
STICKLINE(MDI>30,30,MDI,2,0),COLORBLUE;
STICKLINE(PDI<15,15,PDI,1,0),COLORBLACK;
STICKLINE(MDI<15,15,MDI,1,0),COLORBLACK;
STICKLINE(PDI<15,15,PDI,0.5,0),COLORBLUE;
STICKLINE(MDI<15,15,MDI,0.5,0),COLORRED;
ADX行情指示線:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,5),NODRAW,COLORGREEN;
確認線:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6),COLORGREEN;
盤整區(qū)上軌:30,NODRAW,COLORMAGENTA;
盤整區(qū)下軌:15,NODRAW,COLORMAGENTA;
DRAWBAND(ADX行情指示線,RGB(0,255,0),確認線,RGB(255,255,255));
無方向觀望區(qū):PDI<30 AND MDI<30 AND PDI>15 AND MDI>15,COLORYELLOW,NODRAW;
STICKLINE(無方向觀望區(qū),60,50,0,-1),COLORYELLOW;
通達信DMI壓箱底用法指標公式實例圖解:
通達信DMI壓箱底用法指標公式