【资料名称】:DMI指标-(源码)介绍【资料描述】:
DMI指标-(源码)
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,'炸弹');
DRAWTEXT(CROSS(PDI,ADX),PDI,'持股');
DRAWTEXT(CROSS(ADX,PDI),ADX,'风险');
DRAWTEXT(CROSS(ADX,MDI) AND ADX>PDI,ADX,'即将见底'); ;
gd7347
【下载地址隐藏】: 点:回复可见地址