烦请老师改一下DMI指标PDI,MDI线加粗,谢谢 [博易POBO]
咨询内容:
烦请老师改一下DMI指标PDI,MDI线加粗,谢谢
TR :=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IFELSE(HD>0 && HD>LD,HD,0),14);
DMM:= SUM(IFELSE(LD>0 && LD>HD,LD,0),14);
PDI: DMP*100/TR,LINETHICK3;
MDI: DMM*100/TR,LINETHICK3;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:(ADX+REF(ADX,6))/2;
BACKGROUNDSTYLE(1);
80,COLORRED;
50,COLORYELLOW;
20,COLORGREEN;
10;
JC:=CROSS(PDI,MDI);
SC:=CROSSDOWN(PDI,MDI);
DRAWTEXT(JC,PDI,'多');
DRAWTEXT(SC,PDI,'空');
PLAYSOUND(JC,'A');
PLAYSOUND(SC,'B');
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IFELSE(HD>0 && HD>LD,HD,0),14);
DMM:= SUM(IFELSE(LD>0 && LD>HD,LD,0),14);
PDI: DMP*100/TR,LINETHICK3;
MDI: DMM*100/TR,LINETHICK3;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:(ADX+REF(ADX,6))/2;
80,COLORRED;
50,COLORYELLOW;
20,COLORGREEN;
10;
JC:=CROSS(PDI,MDI);
SC:=CROSS(MDI,PDI);
DRAWTEXT(JC,PDI,'多');
DRAWTEXT(SC,PDI,'空'); 来源 程序化久久网
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IFELSE(HD>0 && HD>LD,HD,0),14);
DMM:= SUM(IFELSE(LD>0 && LD>HD,LD,0),14);
PDI: DMP*100/TR,LINETHICK3;
MDI: DMM*100/TR,LINETHICK3;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:(ADX+REF(ADX,6))/2;
BACKGROUNDSTYLE(1);
80,COLORRED;
50,COLORYELLOW;
20,COLORGREEN;
10;
JC:=CROSS(PDI,MDI);
SC:=CROSSDOWN(PDI,MDI);
DRAWTEXT(JC,PDI,'多');
DRAWTEXT(SC,PDI,'空');
PLAYSOUND(JC,'A');
PLAYSOUND(SC,'B');
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: TR :=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IFELSE(HD>0 && HD>LD,HD,0),14);
DMM:= SUM(IFELSE(LD>0 && LD>HD,LD,0),14);
PDI: DMP*100/TR,LINETHICK3;
MDI: DMM*100/TR,LINETHICK3;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:(ADX+REF(ADX,6))/2;
80,COLORRED;
50,COLORYELLOW;
20,COLORGREEN;
10;
JC:=CROSS(PDI,MDI);
SC:=CROSS(MDI,PDI);
DRAWTEXT(JC,PDI,'多');
DRAWTEXT(SC,PDI,'空'); 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容