自用完美KDJ指标公式(付通达信源码)
-
相关简介:淡出指标区很久了,已经很长时间没有发过指标,九月将临,现将我自用的KDJ贴出来,指标不过参考而已,谈不上什么宝贝或者说精品,所以敢拿出来献丑。不想多解释,用则悟之,弃则扔之。指标主要是用来看趋势,你喜欢怎么删减优化都行,希望能为有心人提供一些灵感! C/C++ Code 复制内容到剪贴板 DRAWGBK(CLOSE=CLOSE,COLORRGB(30,30,60),COLORRGB(30,30,60),1); rsvC:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,
-
文章来源:择股网作者:股海网发布时间:2009-08-31浏览次数:
淡出指标区很久了,已经很长时间没有发过指标,九月将临,现将我自用的KDJ贴出来,指标不过参考而已,谈不上什么宝贝或者说精品,所以敢拿出来献丑。不想多解释,用则悟之,弃则扔之。指标主要是用来看趋势,你喜欢怎么删减优化都行,希望能为有心人提供一些灵感!
C/C++ Code复制内容到剪贴板
- DRAWGBK(CLOSE=CLOSE,COLORRGB(30,30,60),COLORRGB(30,30,60),1);
- rsvC:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*(C+H+L+O)/4;
- rsv89:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
- k89:=SMA(rsv89,5,1);
- k:SMA(rsvC,5,1),LINETHICK,COLORRED,PRECISION2;
- d:SMA(k,4,1),Colorfff000,LINETHICK,PRECISION2;
- J:=4*k-3*d;
- RSVZ:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*(C+O+H+L)/4;
- KZ:=SMA(RSVZ,4,1),COLORC080FF,LINETHICK,PRECISION2;
- DZ:=SMA(KZ,3,1),ColorFFFFFF,LINETHICK,PRECISION2;
- jz:4*kz-3*dz,ColorFFFFFF,LINETHICK,LINEDOT,PRECISION2;
- JS:EMA(JZ,5),Color00FF00,LINETHICK,LINEDOT,PRECISION2;
- KEM:ema(k,14),Color1477FF,LINETHICK,PRECISION2;
- RSVT:=(CLOSE-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14))*(C+O+H+L)/4;
- KT:=SMA(RSVT,3,1),COLORC080FF,LINETHICK,PRECISION2;
- DT:=SMA(KT,3,1),ColorFFFFFF,LINETHICK,PRECISION2;
- jT:=4*kT-3*dT;
- macd:=(jz-kz)*0.8;
- macd2:=(jT-kT)*0.5;
- MACD1:=(J-K)*1.2,COLOR8855FF,LINETHICK0;
- FILLRGN(K>EMA(K,14),K,EMA(K,14)),Color441F7D;
- FILLRGN(K<=EMA(K,14),K,EMA(K,14)),COLORGRAY;
- STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1+0,8.3,1),COLORRED;
- STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1+0,8.3,1),COLOrfff000;
- STICKLINE(MACD1>REF(MACD1,1) AND MACD1<0,0,MACD1+0,8.3,1),COLOR555fff;
- STICKLINE(MACD1<=REF(MACD1,1) AND MACD1<0,0,MACD1+0,8.3,1),Color408080;
- STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD+0,5.5,0),COLORaa00bb;
- STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD+0,4,0),COLORcc22bb;
- STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD+0,2,0),COLORdd33BB;
- STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD+0,1,0),COLORff55bb;
- STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD+0,5.5,0),COLOR666666;
- STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD+0,4,0),COLOR777777;
- STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD+0,2,0),COLOR888888;
- STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD+0,1,0),COLOR999999;
- STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD+0,5.5,0),COLOR3377AA;
- STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD+0,4,0),COLOR3388BB;
- STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD+0,2,0),COLOR4499CC;
- STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD+0,1,0),COLOR5599DD;
- STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD+0,5.5,0),COLORFF3300;
- STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD+0,4,0),COLORFF4400;
- STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,2,0),COLORFF5500;
- STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1,0),COLORFF6600;
- STICKLINE(MACD2>REF(MACD2,1) AND MACD2>0,0,MACD2+0,1.5,0),COLOR00FFFF;
- STICKLINE(MACD2<=REF(MACD2,1) AND MACD2>0,0,MACD2+0,1.5,0),COLOrffF000;
- STICKLINE(MACD2>REF(MACD2,1) AND MACD2<0,0,MACD2+0,1.5,0),COLORFFFFFF;
- STICKLINE(MACD2<=REF(MACD2,1) AND MACD2<0,0,MACD2+0,1.5,0),COLOR00FF00;
- STICKLINE(K>D,K,D,4,0),COLORFF0070;
- STICKLINE(K>D,K,D,2,0),COLORFF1180;
- STICKLINE(K>D,K,D,1,0),COLORFF2290;
- STICKLINE(K<D,K,D,4,0),COLORFF4400;
- STICKLINE(K<D,K,D,2,0),COLORFF6600;
- STICKLINE(K<D,K,D,1,0),COLORFF8800;
- STICKLINE(K<D AND K89>50,K,D,4,0),COLORBBBB00;
- STICKLINE(K<D AND K89>50,K,D,2,0),COLORDDDD00;
- STICKLINE(K<D AND K89>50,K,D,1,0),COLORFFFF00;
- STICKLINE(K>D AND K89<20,K,D,4,0),COLOR1155AA;
- STICKLINE(K>D AND K89<20,K,D,2,0),COLOR2277BB;
- STICKLINE(K>D AND K89<20,K,D,1,0),COLOR3399CC;
- STICKLINE(K>D AND K89>50,K,D,4,0),COLOR0000AA;
- STICKLINE(K>D AND K89>50,K,D,2,0),COLOR0000DD;
- STICKLINE(K>D AND K89>50,K,D,1,0),COLOR0000FF;
- STICKLINE(K>D AND K89>79,K,D,4,0),COLOR00DDEE;
- STICKLINE(K>D AND K89>79,K,D,2,0),COLOR00EEEE;
- STICKLINE(K>D AND K89>79,K,D,1,0),COLOR00FFFF;
- STICKLINE(K>D AND K89>89,K,D,4,0),COLORAAAAAA;
- STICKLINE(K>D AND K89>89,K,D,2,0),COLORBBBBBB;
- STICKLINE(K>D AND K89>89,K,D,1,0),COLORDDDDDD;
- STICKLINE(K>D AND K89>94,K,D,4,0),COLOR005500;
- STICKLINE(K>D AND K89>94,K,D,2,0),COLOR007700;
- STICKLINE(K>D AND K89>94,K,D,1,0),COLOR009900;
- KEM,Color1477FF,LINETHICK1,PRECISION2;
- PARTLINE(KEM<REF(KEM,1),KEM),Color008000,LINETHICK1;
- PARTLINE(c,K),ColorRED,LINETHICK1,LINEDOT;
- PARTLINE(c,d),Colorfff000,LINETHICK1,LINEDOT;
- JZ,ColorFFFFFF,LINETHICK1;
- JS,Color00FF00,LINETHICK1;
下面是通达信版本,其它版本有请有心人完成吧
C/C++ Code复制内容到剪贴板
- RSVC:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*(C+H+L+O)/4;
- KRSV:=SMA((CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100,5,1);
- K:SMA(RSVC,5,1),LINETHICK0,COLOR00FFFF;
- D:SMA(K,4,1),COLOR1477FF,LINETHICK0;
- J:=4*K-3*D,COLORFF0080,LINETHICK0;
- RSVCC:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*(C+H+L+O)/4;
- KC:=SMA(RSVCC,4,1);
- J1:4*KC-3*SMA(KC,3,1),LINETHICK0,COLORFFFFFF;
- RSVBB:=(CLOSE-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14))*(C+H+L+O)/4;
- KT:=SMA(RSVBB,3,1);
- MACD3:((4*KT-3*SMA(KT,3,1))-KT)*0.5,COLOR88FF7D,LINETHICK0;
- MACD:(J1-KC)*0.8,COLOR441F7D,LINETHICK0;
- MACD2:(J-K)*1.2,COLOR8855FF,LINETHICK0;
- DRAWBAND(EMA(K,14),RGB(155,155,96),K,RGB(155,60,60));
- ZZZ:=0{(REF(HHV(J,DATE),DATE)+REF(LLV(J,DATE),DATE))/2*0.5};
- STICKLINE(MACD2>REF(MACD2,1) AND MACD2>0,ZZZ,MACD2+ZZZ,3.2,1),COLORRED;
- STICKLINE(MACD2<=REF(MACD2,1) AND MACD2>0,ZZZ,MACD2+ZZZ,3.2,1),COLORFFF000;
- STICKLINE(MACD2>REF(MACD2,1) AND MACD2<0,ZZZ,MACD2+ZZZ,3.2,1),COLOR55FFFF;
- STICKLINE(MACD2<=REF(MACD2,1) AND MACD2<0,ZZZ,MACD2+ZZZ,3.2,1),COLOR00FF00;
- STICKLINE(MACD>REF(MACD,1) AND MACD>0,ZZZ,MACD+ZZZ,2,0),COLORFF3AFF;
- STICKLINE(MACD<=REF(MACD,1) AND MACD>0,ZZZ,MACD+ZZZ,2,0),COLORCCCCCC;
- STICKLINE(MACD>REF(MACD,1) AND MACD<0,ZZZ,MACD+ZZZ,2,0),COLOR1155AA;
- STICKLINE(MACD<=REF(MACD,1) AND MACD<0,ZZZ,MACD+ZZZ,2,0),COLORFF5500;
- STICKLINE(MACD3>REF(MACD3,1) AND MACD3>0,ZZZ,MACD3+ZZZ,0.1,0),COLOR00FFFF;
- STICKLINE(MACD3<=REF(MACD3,1) AND MACD3>0,ZZZ,MACD3+ZZZ,0.1,0),COLORFFF000;
- STICKLINE(MACD3>REF(MACD3,1) AND MACD3<0,ZZZ,MACD3+ZZZ,0.1,0),COLORFFFFFF;
- STICKLINE(MACD3<=REF(MACD3,1) AND MACD3<0,ZZZ,MACD3+ZZZ,0.1,0),COLOR00FF00;
- STICKLINE(K>D,K,D,1,0),COLORFF0070;
- STICKLINE(K>D,K,D,0.6,0),COLORFF1180;
- STICKLINE(K>D,K,D,0.3,0),COLORFF2290;
- STICKLINE(K<D,K,D,1.0,0),COLORFF5500;
- STICKLINE(K<D,K,D,0.6,0),COLORFF7700;
- STICKLINE(K<D,K,D,0.3,0),COLORFF9900;
- STICKLINE(K>D AND KRSV<20,K,D,1.0,0),COLOR1155AA;
- STICKLINE(K>D AND KRSV<20,K,D,0.6,0),COLOR2277DD;
- STICKLINE(K>D AND KRSV<20,K,D,0.3,0),COLOR3399EE;
- STICKLINE(K>D AND KRSV>50,K,D,1.0,0),COLOR0000AA;
- STICKLINE(K>D AND KRSV>50,K,D,0.6,0),COLOR0000DD;
- STICKLINE(K>D AND KRSV>50,K,D,0.3,0),COLOR0000FF;
- STICKLINE(K>D AND KRSV>80,K,D,1.0,0),COLOR33CCCC;
- STICKLINE(K>D AND KRSV>80,K,D,0.6,0),COLOR22DDCC;
- STICKLINE(K>D AND KRSV>80,K,D,0.3,0),COLOR11EECC;
- STICKLINE(K>D AND KRSV>90,K,D,1.0,0),COLORAAAAAA;
- STICKLINE(K>D AND KRSV>90,K,D,0.6,0),COLORBBBBBB;
- STICKLINE(K>D AND KRSV>90,K,D,0.3,0),COLORDDDDDD;
- STICKLINE(K>D AND KRSV>95,K,D,1.0,0),COLOR005500;
- STICKLINE(K>D AND KRSV>95,K,D,0.6,0),COLOR007700;
- STICKLINE(K>D AND KRSV>95,K,D,0.3,0),COLOR009900;
- JS1:EMA(J1,5),COLOR00FF00,LINETHICK1;
- KM:EMA(K,14),COLORRED,LINETHICK1;
- IF(KM<REF(KM,1),KM,DRAWNULL),COLOR005599,LINETHICK1;
- D,COLOR00FFFF,LINETHICK1;
- IF(D<REF(D,1),D,DRAWNULL),COLORBB0000,LINETHICK1;
- K,COLOR1477FF,LINETHICK1;
- J1,COLORFFFFFF,LINETHICK1;
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|
上一篇:飞狐最好k线解盘图文并茂
下一篇:大均线(飞狐主图)