黑马趋向指标源码
2015-11-16 21:39:06点击:
IR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),3);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),3);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),3);
PDI:DMP*100/IR;
MDI:DMM*100/IR;
ADX:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,2);
ADXR:EXPMEMA(ADX,2);
DRAWBAND(PDI,RGB(240,0,0),MDI,RGB(0,120,0));
DRAWBAND(ADX,RGB(220,0,130),ADXR,RGB(240,240,0));
关注线:50,COLORF0F000,POINTDOT;
IF(ADX>ADXR,100,DRAWNULL),COLORF580F5,LINETHICK5;
IF(PDI>MDI,0,DRAWNULL),COLORF580F5,LINETHICK5;
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),3);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),3);
PDI:DMP*100/IR;
MDI:DMM*100/IR;
ADX:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,2);
ADXR:EXPMEMA(ADX,2);
DRAWBAND(PDI,RGB(240,0,0),MDI,RGB(0,120,0));
DRAWBAND(ADX,RGB(220,0,130),ADXR,RGB(240,240,0));
关注线:50,COLORF0F000,POINTDOT;
IF(ADX>ADXR,100,DRAWNULL),COLORF580F5,LINETHICK5;
IF(PDI>MDI,0,DRAWNULL),COLORF580F5,LINETHICK5;
- 上一篇:精确寻底的精品指标 2015/11/16
- 下一篇:资金为王 强者恒强 没有成交量的支撑 谈何上涨 2015/11/16