通达信DMI强弱线指标公式

通达信冲锋一击选股指标公式

通达信DMI强弱线指标公式:

N:=14; M:=6;

A:=SUM(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);

A1:=HIGH-REF(HIGH,1);

A2:=REF(LOW,1)-LOW;

DMP:=SUM(IF(A1>0 AND A1>A2,A1,0),N);

DMM:=SUM(IF(A2>0 AND A2>A1,A2,0),N);

pdi:=DMP*100/A;

mdi:=DMM*100/A;

强弱:pdi-mdi,Color00ff00;

MA强弱3:EMA(强弱,3),colorred;

MA强弱20:EMA(强弱,20),color00FFFF;

V0:0,Colorffa2af;

通达信超漂亮的MACD指标公式