当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:DMI指标-(源码)
软件名称:[B]DMI指标-(源码)[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:2.00 KB
官方主页:Home Page
更新时间:2010-06-05 03:04:40
软件简介:
N的值为大家输入(2,1000,7)
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);
PDI:DMP*100/TR,COLORRED;
MDI:DMM*100/TR,COLORBLUE;
ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1),COLORFF66FF;
ADXR:(ADX+REF(ADX,6))/2,COLOR66FF66;
DRAWTEXT(CROSS(PDI,MDI)AND PDI>ADX,PDI,'火箭');
DRAWTEXT(CROSS(MDI,PDI)AND MDI>ADX,MDI,'`70B8`!,39');
DRAWTEXT(CROSS(PDI,ADX),PDI,'持股');
DRAWTEXT(CROSS(ADX,PDI),ADX,'风险');
DRAWTEXT(CROSS(ADX,MDI) AND ADX>PDI,ADX,'即将见底');
[url=http://www.70822.com/soft/sort013/sort05/down-21184.html]DMI指标-(源码)[/url]