通達信DMI黃金分割指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 超買超賣
- 畫線方法: 副圖
- 日期:2023-11-16 來源:互聯網
通達信DMI黃金分割指標公式:
N:=14;
M:=6;
ADXP:=1;
TR1:= SUM(MAX(MAX(HIGH-LOW,ABS(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);
PDI: DMP*100/TR1;
MDI: DMM*100/TR1;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:(ADX+REF(ADX,M))/2;
{傳統MDI加進四條線 兩句話較好}
CD0:20;
CD1:40;
TD0:60;
TD1:80;
DRAWTEXT(CROSS( PDI,CD0), CD0,'●金'),COLORMAGENTA;
DRAWTEXT(CROSS( TD0,PDI), PDI,'●死'),COLORBLUE;
DRAWTEXT(CROSS( ADX,CD0), CD0,'●金'),COLORMAGENTA;
DRAWTEXT(CROSS( TD0,ADX), ADX,'●死'),COLORBLUE;
DRAWTEXT(CROSS( PDI,MDI), MDI,'★金'), COLORYELLOW;
DRAWTEXT(CROSS( MDI,PDI), PDI,'★死'), COLORGREEN;
DRAWTEXT(CROSS( ADX,ADXP), ADXP,'★金'), COLOR000999 ;
DRAWTEXT(CROSS( ADXP,ADX), ADX,'★死'), COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=35,80.1,'夢的海洋友情提示:'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,76,'PDI線上穿20介入,下破60急出手 '),COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=35,69.1,'ADX線上穿20介入,下破60急出手'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=35,64.1,'如果回調幅度在0.618內屬強勢調整后市方向不會改變'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,59.1,'如果回調超過在0.618后市方向可能逆轉:'),COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=35,54.1,'如果反彈高度在0.382內屬反彈行情后市方向不會改變:'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,50,'如果反彈超過在0.382后市方向可能逆轉:'),COLORBLUE;
通達信DMI黃金分割指標公式實例圖解:
通達信DMI黃金分割指標公式