当前位置:分析家公式网 → 股票公式 → 大智慧L2公式 → 一键转帖:DMI变色-大智慧2 用
软件名称:[B]DMI变色-大智慧2 用[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2009-12-03 10:02:14
软件简介:
{DMI变色-大智慧2 用}
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;
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;
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;
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;
[url=http://www.70822.com/soft/sort013/sort03/down-14907.html]DMI变色-大智慧2 用[/url]