将MDI大于PDI、ADX死叉ADXR等条件做成预警
2019/12/9 18:10:04
公式编写说明:
麻烦老师将MDI大于PDI、MDI大于15、ADX大于30、ADX死叉ADXR做个预警公式指标:TR:=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/TR;MDI: DMM*100/TR;ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:EXPMEMA(ADX,M);
公式源码示例:
N:=14;M:=6;
TR:=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/TR;
MDI: =DMM*100/TR;
ADX: =EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
MDI>PDI AND MDI>15 AND ADX>30 AND CROSS(ADXR,ADX);
看股吧公 式 w ww.kanguba.com
其它股票公式列表