关闭
股票资讯
「杠杆炒股」通达信DMI背离指标(源码)

「杠杆炒股」通达信DMI背离指标(源码)

N:=21; M:=6; M1:=20; TR1:=EMA(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:=EMA(IF(HD0 AND HDLD,HD,0),N); DMM:=EMA(IF(LD0 AND LDHD,LD,0),N); PDI:= DMP*100/TR1; MDI:= D...

二维码