长短KD 本指标提示:在长周期KDJ呈现红色多头时,此时介入,胜算概率较大。 RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100; 短K:SMA(RSV,3,1),colorwhite; 短D:SMA(短K,3,1),coloryellow; RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100; 长K:SMA(RSV1,5,1),colorred; 长D:SMA(长K,10,1),COLOR66CC33; 18,colorwhite; 85,colorblue; STICKLINE(短K>短D,短K,短D,6,0),coloryellow; STICKLINE(短K<=短D,短K,短D,6,0),colorgreen; STICKLINE(长K>长D,长K,长D,6,0),colorred; STICKLINE(长K<=长D,长K,长D,6,0),COLOR669933; VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89); VAR1E:=EMA(VAR1D,30); VAR1F:=2*(VAR1D-VAR1E)*10; VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2); VAR25:=IF(YEAR<2008 AND VAR1F>0.015,VAR20,0)/45; VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR27:=EMA(VAR26,100); VAR28:=2*(VAR26-VAR27); VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1); AA:=IF( VAR28>0.1,VAR29,0)*5, colorred; MA9:=MA(AA,9); STICKLINE(AA>MA9,0.6,0.8,3,0),colorred; N:=10; CG:=MA((LOW+HIGH+CLOSE*2)/4,N); 辅助:=HHV(CG,9); 乾坤:=HHV(HIGH,60)*0.98; AA1:=(乾坤-辅助)/辅助<=0.035; STICKLINE(AA1,0.8,1,3,0),coloryellow; AA2:=AA>REF(AA,1) AND REF(AA,1)<REF(AA,2); STICKLINE(AA2,1,1.2,3,0),colormagenta; 三色:AA>MA9 AND AA1 AND AA2,coloryellow; Var1:=AMOUNT/VOL; A:=SMA(Var1,5,1)-SMA(Var1,13,1); B:=SMA((A-SMA(A,5,1)),5,1); STICKLINE(C,H,L,0,1),colorgreen; STICKLINE(C>=O,O,C,8,1),colorgreen; STICKLINE(C<O,O,C,8,0),colorgreen; STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),H,L,0,1),colorred; STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C>=O,O,C,8,1),colorred; STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C<O,O,C,8,0),colorred; STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),H,L,0,1),colorwhite;//白色1 STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C>=O,O,C,8,1),colorwhite; STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C<O,O,C,8,0),colorwhite; STICKLINE(A<REF(A,3) AND B<REF(B,3),H,L,0,1),colorgreen; STICKLINE(A<REF(A,3) AND B<REF(B,3) AND C>=O,O,C,8,1),colorgreen; STICKLINE(A<REF(A,3) AND B<REF(B,3) AND C<O,O,C,8,0),colorgreen; STICKLINE(A>REF(A,1) AND B<REF(B,1),H,L,0,1),color99ccff;//白色2 也可以自己改为白色,我只是为了区别一下三种不同的白色,用了一个不同的颜色 STICKLINE(A>REF(A,1) AND B<REF(B,1) AND C>=O,O,C,8,1),color99ccff; STICKLINE(A>REF(A,1) AND B<REF(B,1) AND C<O,O,C,8,0),color99ccff; STICKLINE((A<REF(A,1) AND B>REF(B,1)),H,L,0,1),colordddddd;//白色3 STICKLINE((A<REF(A,1) AND B>REF(B,1)) AND C>=O,O,C,8,1),colordddddd; STICKLINE((A<REF(A,1) AND B>REF(B,1)) AND C<O,O,C,8,0),colorddddd; TT:=(2*CLOSE+OPEN+HIGH+LOW); 主导动能:TT/EMA(TT,4)-1,COLORSTICK; FF:=主导动能; STICKLINE(FF>0,0,FF,3,0),COLOR33CFDD; STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,3,0),COLOR0000CC; STICKLINE(FF<=0,0,FF,3,0),COLOR00CC00; STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,3,0),COLORFF9900; 做多主导:IFF(FF>0 AND FF>REF(FF,1),FF,0),NODRAW,COLOR0000CC; 获利回吐:IFF(FF>0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR33CFDD; 做空主导:IFF(FF<=0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR00CC00; 空头回补:IFF(FF<=0 AND FF>REF(FF,1),FF,0),NODRAW,COLORFF9900; 你:=MA(CLOSE,1); 老:=(LOW+HIGH+CLOSE)/3; 板:= MA(老,5); 好:= HHV(板,10); 急卖:IF(HHV((你<好),5),100,50),colorcyan; 短卖:IF(HHV((你<好),10),100,50),colorcyan; 老板:= MA(老,5); 买卖:=LLV(老板,10); 短买:IF(LLV((你<买卖),10),50,0),colorred; 买点:IF(LLV((你<买卖),10),1,0); 卖点:IF(HHV((你<好),10),1,0); TD:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5); HD:=(HIGH - REF(HIGH,1)); LD:=(REF(LOW,1) - LOW); DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) ); DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5); 神偷线:=(((DMP ) * 100) / TD); 辅助线:=((DMM * 100) / TD); 动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3)); ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2); VAR1:=MA(LOW,1); VAR2:=MA(HIGH,2); VAR3:=MA(CLOSE,2); VAR7:=REF(VAR3,1); 【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100); 支撑位:IF((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100>=0,REF(EMA(CLOSE,15),BARSLAST(CROSS((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100,0))+1),DRAWNULL),colorred,LINETHICK1; 阻力位:IF((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100<0,REF(EMA(CLOSE,15),BARSLAST(CROSS(0,(EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100))+1),DRAWNULL),colorgreen,LINETHICK1; VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR3:=SMA(SMA(VAR2,3,1),3,1)/30; VAR4:=EMA(VAR3,5); VAR5:=3*VAR3-2*VAR4; AA:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O; VAR6:=(2*CLOSE+HIGH+LOW)/4; VAR7:=LLV(LOW,13); VAR8:=HHV(HIGH,13); VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13); VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2); STICKLINE(VAR9>VARA,VAR9,VARA,3,0), colormagenta; STICKLINE(VAR9<=VARA,VAR9,VARA,3,0), coloryellow; STICKLINE(AA,0,10,3,0),colorblue; VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR3:=SMA(SMA(VAR2,3,1),3,1)/30; VAR4:=EMA(VAR3,5); VAR5:=3*VAR3-2*VAR4; AA:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O; VAR6:=(2*CLOSE+HIGH+LOW)/4; VAR7:=LLV(LOW,13); VAR8:=HHV(HIGH,13); VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13); VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2); STICKLINE(VAR9>VARA,VAR9,VARA,8,0), colormagenta; STICKLINE(VAR9<=VARA,VAR9,VARA,8,0), colorgreen; STICKLINE(AA,0,10,10,0),colorblue; M1 := EMA( CLOSE, 9 ); M2 := EMA( CLOSE, 18 ); MD : M1 - M2, colorwhite, LINETHICK3; MM := EMA( MD, 3 ); 吸 : IF( MD >= MM AND MD < 0, MD, DRAWNULL ), colorlired, LINETHICK3; 拉 : IF( MD >= MM AND MD >= 0, MD, DRAWNULL ), colorred, LINETHICK3; 派 : IF( MD < MM AND MD >= 0, MD, DRAWNULL ), colorgreen, LINETHICK3; 落 : IF( MD < MM AND MD < 0, MD, DRAWNULL ), colorwhite, LINETHICK3; 中轴线:50,coloryellow,LINETHICK1;
|
阅读:536 评论:0
声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除!
【电脑版】 【回到顶部】