2474| 1
|
请老师费心帮我编写一个dmi的选股公式,先谢谢了!! |
30爱心果
最佳答案MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
A1:=PDI>MDI;
A2:=ADX>REF(ADX,1) AND REF(ADX,1)20;
XG: (A1+A2+A3+A4)=4;
| ||
| ||
|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号
GMT+8, 2024-11-24 17:55 , Processed in 0.146263 second(s), 21 queries .
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.