【大智慧】DMI變色指標公式
攻城獅 2016.01.14 03:22
N:=13;
M:=5;
TR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),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/TR;
MDI:= DMM*100/TR;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLORBLUE,LINETHICK2;
拐點:ADX,COLORRED,LINETHICK0;
漲:ADX,COLORYELLOW,LINETHICK0;
泥沼:ADX,COLORGREEN,LINETHICK0;
{概念股網(wǎng)-股票公式網(wǎng)站 m.chiang1015.com}
PARTLINE(adx,adx>60,RGB(255,0,0),adx<20,RGB(0,255,0),(ADX>20 AND ADX>REF(ADX,1) AND REF(ADX,1)>REF(ADX,2) AND ADX<60),RGB(241,225,22)),LINETHICK2;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。