DMI优化 通达信副图指标 贴图
2019-03-15 10:11:00来源:本站整理浏览:928
DMI优化 通达信副图指标 贴图
DMI是一个非常好的指标,但很多人不是很理解,现将它优化了一下,优化后它可以直观的看清个股趋势,还可以抓到金牛股呢!
DRAWGBK(C>0,RGB(48,48,8),RGB(48,48,8),0,'BEIJINGTU',0);
MTR:=SUM(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:=SUM(IF(HD>0&&HD>LD,HD,0),14);
DMM:=SUM(IF(LD>0&&LD>HD,LD,0),14);
PDI:DMP*100/MTR,NODRAW;
MDI:DMM*100/MTR,NODRAW;
ADX:MA(ABS(MDI-PDI)/(MDI+PDI)*100,6),NODRAW;
ADXR:(ADX+REF(ADX,6))/2,NODRAW;
STICKLINE(PDI<=MDI,0,100,3,-1)COLORGREEN,LINETHICK1;
STICKLINE(PDI>MDI,0,10,3,0)COLORLIRED;
STICKLINE(PDI>MDI AND ADX>ADXR,0,10,3,0)COLORRED;
STICKLINE(PDI>MDI,90,100,3,0)COLORLIRED;
STICKLINE(PDI>MDI AND ADX>ADXR,90,100,3,0)COLORRED;
DRAWBAND(IF(PDI>0,PDI,0),RGB(155,0,155),IF(MDI>0,MDI,0),RGB(0,97,0));
DRAWBAND(IF(ADX>0,ADX,0),RGB(200,0,0),IF(ADXR>0,ADXR,0),RGB(72,118,255));
IF(PDI>MDI,PDI,DRAWNULL)COLORLIRED;
STICKLINE(C>0,79.5,80,3,-1),COLORBROWN,LINETHICK2;
STICKLINE(C>0,100,100,4,0),COLORBROWN,LINETHICK2;
STICKLINE(C>0,0,0,4,0),COLORBROWN,LINETHICK2;
STICKLINE(C>0,39.5,40,3,-1),COLORBROWN,LINETHICK2;
STICKLINE(C>0,20,19.5,3,-1),COLORBROWN,LINETHICK2;
- 上一篇公式:BS操盘线+仓位管控+变色筹码 通达信主图/副图指标 贴图
- 下一篇公式:乾坤无极线 市盈率 通达信主图指标 源码 贴图