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