手机端
当前位置:爱约股 > 公式技巧 > 好指标KDJ共振+周线KDJ

好指标KDJ共振+周线KDJ

请老师帮助 尊敬的老师您好。我很想要下面这个通达信KDJ共振指标。但输入到我的通达信4.15版本的股票软件里,总是提示有错误。请在百忙中抽空帮助看一下,修正下,好吗?非常感谢您了! 指标附下: KDJ共振+周线KDJ公式(tdx) ZKDJ {周线KDJ公式} VAR1:=WEEKDAY>REF(WEEKDAY,1); VAR2:=WEEKDAY<REF(WEEKDAY,1); 上周收盘价:=REF(C,SUMBARS(VAR2,1)); 上周开盘价:=REF(O,SUMBARS(VAR2,1)); 上周交易天数:=SUMBARS(VAR2,2)-SUMBARS(VAR2,1); 上周最高价:=REF(H,SUMBARS(VAR2,1)); 上周最低价:=REF(L,SUMBARS(VAR2,1)); ZRSV:=(CLOSE-MIN(LLV(LOW,SUMBARS(VAR2,1)),LLV(上周最低价,SUMBARS(VAR2,5)))) /(MAX(HHV(HIGH,SUMBARS(VAR2,1)),HHV(上周最高价,SUMBARS(VAR2,5)))- MIN(LLV(LOW,SUMBARS(VAR2,1)),LLV(上周最低价,SUMBARS(VAR2,5))))*100; ZK:SMA(ZRSV,SUMBARS(VAR2,3)-SUMBARS(VAR2,1),1),COLORWHITE; ZD:SMA(ZK,SUMBARS(VAR2,3)-SUMBARS(VAR2,1),1),COLORYELLOW; ZJ:3*ZK-2*ZD,COLORMAGENTA,LINETHICK1; KDJ共振 {KDJ共振+周KDJ} K13:"KDJ.K"(13,3,3),COLORFFFFFF; D13:"KDJ.D"(13,3,3),COLORFFFFFF,LINETHICK1; K21:="KDJ.K"(21,3,3),COLOR0000FF; D21:="KDJ.D"(21,3,3),COLOR0000FF,LINETHICK2; K34:"KDJ.K"(34,3,3),COLORFF8800; D34:"KDJ.D"(34,3,3),COLORFF8800,LINETHICK1; K55:="KDJ.K"(55,3,3),COLOR00FF00; D55:="KDJ.D"(55,3,3),COLOR008000; DIBU:= K13<20 AND D13<20 AND K21<20 AND D21<20 AND K34<20 AND D34<20 AND D55<20; STICKLINE(DIBU=1,-2,5,1,0),COLORRED; TOBU:= K34>80 AND K21>80 ; STICKLINE(TOBU=1,100,95,1,0) ,COLORGREEN; DD:=-10; ZK:"ZKDJ.ZK",COLORRED; ZD:"ZKDJ.ZD",COLORRED; ZJ:"ZKDJ.ZJ",COLORRED;.

爱约股解答:

KDJ共振+周线KDJ公式(tdx)

ZKDJ

{周线KDJ公式}

VAR1:=WEEKDAY>REF(WEEKDAY,1);

VAR2:=WEEKDAY<REF(WEEKDAY,1);

上周收盘价:=REF(C,SUMBARS(VAR2,1));

上周开盘价:=REF(O,SUMBARS(VAR2,1));

上周交易天数:=SUMBARS(VAR2,2)-SUMBARS(VAR2,1);

上周最高价:=REF(H,SUMBARS(VAR2,1));

上周最低价:=REF(L,SUMBARS(VAR2,1));

ZRSV:=(CLOSE-MIN(LLV(LOW,SUMBARS(VAR2,1)),LLV(上周最低价,SUMBARS(VAR2,5))))

/(MAX(HHV(HIGH,SUMBARS(VAR2,1)),HHV(上周最高价,SUMBARS(VAR2,5)))-

MIN(LLV(LOW,SUMBARS(VAR2,1)),LLV(上周最低价,SUMBARS(VAR2,5))))*100;

ZK:SMA(ZRSV,SUMBARS(VAR2,3)-SUMBARS(VAR2,1),1),COLORWHITE;

ZD:SMA(ZK,SUMBARS(VAR2,3)-SUMBARS(VAR2,1),1),COLORYELLOW;

ZJ:3*ZK-2*ZD,COLORMAGENTA,LINETHICK1;

 

 

KDJ共振

{KDJ共振+周KDJ}

K13:"KDJ.K"(13,3,3),COLORFFFFFF; 

D13:"KDJ.D"(13,3,3),COLORFFFFFF,LINETHICK1; 

K21:="KDJ.K"(21,3,3),COLOR0000FF; 

D21:="KDJ.D"(21,3,3),COLOR0000FF,LINETHICK2;

K34:"KDJ.K"(34,3,3),COLORFF8800; 

D34:"KDJ.D"(34,3,3),COLORFF8800,LINETHICK1;

K55:="KDJ.K"(55,3,3),COLOR00FF00; 

D55:="KDJ.D"(55,3,3),COLOR008000; 

DIBU:= K13<20 AND D13<20 AND K21<20 AND D21<20 AND K34<20 AND D34<20 AND D55<20;

STICKLINE(DIBU=1,-2,5,1,0),COLORRED;

TOBU:= K34>80 AND K21>80 ;

STICKLINE(TOBU=1,100,95,1,0)  ,COLORGREEN;

DD:=-10;

ZK:"ZKDJ.ZK",COLORRED;

ZD:"ZKDJ.ZD",COLORRED;

ZJ:"ZKDJ.ZJ",COLORRED;.

TAG:
分享至:

相关推荐