通达信股票公式 通达信DMI关注线指标公式
2014-11-3 10:29:23 股票入门 http://rumen.southmoney.com
N:=14;M:=6;
TRTR:=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/TRTR;
MDI:= DMM*100/TRTR;
STICKLINE(PDI》=MDI,PDI-MDI,0,2,1),COLOR9900FF;
STICKLINE(PDI《MDI,PDI-MDI,0,2,1),COLORF69ECE;
ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
DRAWBAND(ADX,RGB(200,0,200),ADXR,RGB(150,150,150));
ADX2:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR00EEEE,LINETHICK1;
ADXR2:EXPMEMA(ADX,M),COLORFFFFFF,LINETHICK1;
关注线:=50,COLORF0F000,POINTDOT;
IF(ADX》=ADXR,85,DRAWNULL),COLORF580F5,LINETHICK8;
IF(ADX《ADXR,85,DRAWNULL),COLORCCDD66,LINETHICK6;
IF(PDI》=MDI,-55,DRAWNULL),COLOR0000EE,LINETHICK8;
IF(PDI《MDI,-55,DRAWNULL),COLOR33AA33,LINETHICK6;
更多通达信股票公式,请关注南方财富网。
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。