我的KDJ
-
相关简介:C/C++ Code 复制内容到剪贴板 {为感谢论坛,我把我常用的KDJ送给大家} input:N(9),M1(3),M2(3); RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:SMA(RSV,M1,1),colorwhite; D:SMA(K,M2,1),coloryellow; J:3*K-2*D,colorff00ff; RSw:=(CLOSE-LLV(LOW,19))/(HHV(HIGH
-
文章来源:择股网作者:股海网发布时间:2009-09-04浏览次数:
C/C++ Code复制内容到剪贴板
- {为感谢论坛,我把我常用的KDJ送给大家}
- input:N(9),M1(3),M2(3);
- RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- K:SMA(RSV,M1,1),colorwhite;
- D:SMA(K,M2,1),coloryellow;
- J:3*K-2*D,colorff00ff;
- RSw:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
- Kw:=SMA(RSw,4,1);
- Dw:=SMA(Kw,4,1);
- Jw:3*Kw-2*Dw,color008f00,linethick3;
- DRAWTEXT(cross(jw,kw) and kw<45,jw,'周'),colorred,linethick2;
- DRAWTEXT(cross(kw,jw) and kw>55,jw,'周'),colorgreen,linethick2;
- RSm:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;
- Km:=SMA(RSm,5,1);
- Dm:=SMA(Km,5,1);
- RSj:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
- Kj:=SMA(RSj,6,1);
- Dj:=SMA(Kj,6,1);
- TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
- HD := HIGH-REF(HIGH,1);
- LD := REF(LOW,1)-LOW;
- DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14);
- DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);
- {TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7);
- HD := HIGH-REF(HIGH,1);
- LD := REF(LOW,1)-LOW;
- DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),7);
- DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),7);}
- PDI:=DMP*100/TR;
- MDI:=DMM*100/TR;
- ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,6),colorred,linethick2;
- TYP := (HIGH + LOW + CLOSE)/3;
- cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
- 买点0:=j+jw<68 and j>ref(j,1) and jw>ref(jw,1) and adx>28 and cci>ref(cci,1) and (cci<-90 or cci>90) and c>ref(c,1);
- 买点1:=j>ref(j,1) and cci>ref(cci,1) and c>ref(c,1) and (ref(j,1)<5 or ref(cci,1)<-180);
- 买点:买点0 or 买点1;
- DIBU:=K<20 AND D<20 AND Kw<20 AND Dw<20;
- STICKLINE(DIBU=1,100,80,1,0),COLORRED;
- DIBU0:= Km<20 AND Dm<20 AND Kj<20 AND Dj<20;
- STICKLINE(DIBU0=1,100,90,4,1),COLOR00008f;
- TOBU:=K>80 AND D>80 AND Kw>80 AND Dw>80;
- STICKLINE(TOBU=1,20,0,1,0),COLORGREEN;
- TOBU0:=Km>80 AND Dm>80 AND Kj>80 AND Dj>80;
- STICKLINE(TOBU0=1,10,0,4,1),COLOR008f00;
- ——:60,colorwhite,dotline;0,colorred,dotline;
- 100,colorgreen,dotline;
- partline(j,j<5 and j>ref(j,1),rgb(255,0,0),(j<5 and j<ref(j,1)) or (j>95 and j>ref(j,1)),rgb(255,255,0),j>95 and j<ref(j,1),rgb(0,255,0)),linethick2;
- partline(jw,jw<5 and jw>ref(jw,1),rgb(128,0,0),(jw<5 and jw<ref(jw,1)) or (jw>95 and jw>ref(jw,1)),rgb(128,128,0),jw>5 and jw<95 and j>ref(j,1) and jw>ref(jw,1),rgb(128,0,128)),linethick3;
- partline(adx,adx>ref(adx,1) and adx>25 and mdi>pdi,rgb(0,255,0),
- adx<ref(adx,1) and adx>25 and mdi<pdi,rgb(0,255,0),
- adx<25,rgb(88,88,88)),linethick2;
- DRAWICON(FILTER(mdi>ref(mdi,1) and mdi>25 and cci<-90 and adx>ref(adx,1) and c>o,3),adx*1.0,12);
- STICKLINE(filter(买点,2),j+0,j+5,6,0),COLOR0000FF;
- STICKLINE(filter(买点,2),j+5,j+10,3,0),COLORWHITE;
- STICKLINE(filter(买点,2),j+10,j+15,1,0),COLORYELLOW;
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|