淡出指标区很久了,已经很长时间没有发过指标,九月将临,现将我自用的KDJ贴出来,指标不过参考而已,谈不上什么宝贝或者说精品,所以敢拿出来献丑。不想多解释,用则悟之,弃则扔之。指标主要是用来看趋势,你喜欢怎么删减优化都行,希望能为有心人提供一些灵感!
====================================================
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;
|