dmi,ccl的选股公式
2020/6/19 19:18:11
公式编写说明:
1:DMI里adx大于70拐头向下2:DMI里mdi>pdl3:CCI背离的情况下上穿-100.谢谢老师,小弟不胜感激,祝老师财源滚股
公式源码回答:
N:=14;MM:=6;
MTR:=EXPMEMA(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:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
ADX>70 AND
REF(ADX,1)>ADX AND
MDI>PDI AND
(REF(CCI,2)<REF(CCI,1) AND CCI>REF(CCI,1)) AND
CROSS(CCI,-100);
投股 票网 www.tou18 .cn
股市公式下载推荐