rsi和kdj最佳共振点
n1:=6;n2:=12;n3:=24; rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100; k:sma(rsv,3,1),linethick2,colorwhite; d:sma(k,3,1),linethick2,coloryellow; j:3*k-2*d,linethick2,colorred; diff:ema(close,12)-ema(close,26),linethick2,colorgreen; dea :ema(diff,9),linethick2,colorblue; macd:2*(diff-dea),linethick2,colorred; rsv1:=(hhv(h,9.8)-c)/(hhv(h,9.8)-llv(l,9.8))*101; kk:=sma(rsv1,3,1); dd:=sma(kk,3,1); jj:=3*kk-2*dd; 买卖:=if(jj>=100,100,if(jj<=0,0,jj)); 明天买:if(买卖=100,0-10,0),color00cccc; 明天卖:if(买卖=0,90,100),color00ff00; typ:=(high+low+close)/3; stickline(diff>ref(diff,1),20,20,2,0),colorred; stickline(diff<ref(diff,1),20,20,2,0),colorgreen; stickline(k>=ref(k,1) or k>d and diff>ref(diff,1),80,80,2,1),colorred; stickline(k<ref(k,1),80,80,2,1),colorgreen; macd金叉:=cross(macd,diff) and macd>=(0-0.05) and macd<=0.02; drawtext(macd金叉,40,'▲macd金叉'),colorred; xx:=ema(ma(low,3)*0.96,30); diff金叉:=if(cross(diff,dea) and xx-ref(xx,1)>0 and macd>=ref(macd,1) and diff<=0,1,0); drawtext(diff金叉=1,35,'▲diff金叉'),colorred; 低位金叉:=cross(diff,dea) and diff<-0.1; drawtext(低位金叉,25,'▲低位金叉'),colorred; difdea:=count(cross(diff,dea),barslast(dea>=0)); 二次金叉:=cross(diff,dea) and dea<0 and count(difdea=2,21)=1; drawtext(二次金叉,20,'▲二次金叉'),colorred; a1:=barslast(ref(cross(diff,dea),1)); macd底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea); drawtext(macd底背离,30,'▲macd底背离'),colorred; a2:=barslast(ref(cross(dea,diff),1)); macd顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff); drawtext(filter(macd顶背离,5),100,'▼macd顶背离') ; 周diff:='macd.diff#week'; 周dea:='macd.dea#week'; 周macd:='macd.macd#week'; dif周金叉:=cross(周diff,周dea); drawtext(dif周金叉,45,'▲diff周金叉'),colorred; drawtext(cross(周dea,周diff),110,'▼diff周死叉') ; macd周金叉:=cross(周macd,周diff) and 周macd>=(0-0.05) and 周macd<=0.02; drawtext(macd周金叉,50,'▲macd周金叉'),colorred; 月diff:='macd.diff#month'; 月dea:='macd.dea#month'; 月macd:='macd.macd#month'; dif月金叉:=cross(月diff,月dea); drawtext(dif月金叉,55,'▲diff月金叉'),colorred ; drawtext(cross(月dea,月diff),105,'▼diff月死叉') ; macd月金叉:=cross(月macd,月diff) and 月macd>=(0-0.05) and 月macd<=0.02; drawtext(macd月金叉,60,'▲macd月金叉'),colorred; 周k:="kdj.k#week"(9,3,3); 周d:="kdj.d#week"(9,3,3); 周j:="kdj.j#week"(9,3,3); 月k:="kdj.k#month"(9,3,3); 月d:="kdj.d#month"(9,3,3); 月j:="kdj.j#month"(9,3,3); kd月金叉:=cross(月k,月d); kd周金叉:=cross(周k,周d); kd日金叉:=filter(cross(k,d) and d<50,4); kd低位金叉:=filter(cross(k,d) and d<20,4); drawtext(kd月金叉,0,'▲kd月金叉'),colorred; drawtext(kd周金叉,-5,'▲kd周金叉'),colorred ; drawtext(kd日金叉,-10,'▲kd日金叉'),colorred ; drawtext(kd低位金叉,5,'▲kd低位金叉'),colorred; kd1:=count(cross(k,d),barslast(d>=50)); kd二次金叉:=cross(k,d) and d<50 and count(kd1=2,21)=1; drawtext(kd二次金叉,10,'▲kd二次金叉'),colorred ; kd2:=count(cross(d,k),barslast(d<=50)); kd二次死叉:=cross(d,k) and d>50 and count(kd2=2,21)=1; drawtext(kd二次死叉,95,'▼kd二次死叉') ; kd日死叉:=filter(cross(d,k) and d>80,4); drawtext(kd日死叉,80,'▼kd日死叉') ; drawtext(cross(周d,周k),85,'kd周死叉') ; drawtext(cross(月d,月k),90,'kd月死叉') ; kdb:=barslast(ref(cross(k,d),1)); kddb:=ref(close,kdb+1)>close and ref(k,kdb+1)<k and cross(k,d); kdj底背离:=if(filter(kddb>0,5),1,0); drawtext(kdj底背离=1,15,'▲kdj底背离'),colorred; kdd:=barslast(ref(cross(d,k),1)); kdj顶背离:=ref(close,kdd+1)<close and ref(k,kdd+1)>k and cross(d,k); drawtext(filter(kdj顶背离>0,5),120,'▼kdj顶背离') ; rsi周金:drawtext(cross("rsi.rsi1#week"(n1,n2,n3),"rsi.rsi2#week"(n1,n2,n3)) ,65,'▲rsi周金'),colorred; rsi周死:drawtext(cross("rsi.rsi2#week"(n1,n2,n3),"rsi.rsi1#week"(n1,n2,n3)) ,130,'▼rsi周死') ; rsi月金:drawtext(cross("rsi.rsi1#month"(n1,n2,n3),"rsi.rsi2#month"(n1,n2,n3)) ,70,'▲rsi月金'),colorred; rsi月死:drawtext(cross("rsi.rsi2#month"(n1,n2,n3),"rsi.rsi1#month"(n1,n2,n3)) ,115,'▼rsi月死') ; a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1)); b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)); rsi底背离:=filter(b3>0,5); drawtext(rsi底背离,75,'▲rsi底背离'),colorred; c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1)); d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)); rsi顶背离:=filter(d3>0,5); drawtext(rsi顶背离,125,'▼rsi顶背离') ; {预涨} az:=dynainfo(7); ac1:=ref(c,1); zf1:=(az-ac1)/ac1*100; bz:=dynainfo(8); bv1:=ref(vol,1); zf2:=bz/bv1*100; dz:=ref(close,1)-ref(open,1); ez:=dynainfo(23)-dynainfo(22); fz:=ref(vol,1)-ref(vol,2); 预涨:=zf1>1 and zf1<5 and zf2>30 and dz>0 and ez>0 and fz>0 and d>ref(d,1); drawtext(预涨,d*0.6,'预\n涨'),color00cc00; kx:=250; kh:=hhv(k,kx); dh:=hhv(d,kx); jh:=hhv(j,kx); kl:=llv(k,kx); dl:=llv(d,kx); jl:=llv(j,kx); hkmax:=max(kh,max(dh,jh)); lkmin:=min(kl,min(dl,jl)); khlb:=(hkmax+lkmin)/2; khlc:=hkmax-lkmin; mhf:=hhv(diff,kx); mhd:=hhv(dea,kx); mhm:=hhv(macd,kx); mlf:=llv(diff,kx); mld:=llv(dea,kx); mlm:=llv(macd,kx); hmax:=max(mhf,max(mhd,mhm)); lmin:=min(mlf,min(mld,mlm)); fhlb:=(hmax-lmin)/100; fhlc:=hmax-lmin; sh:=(0-fhlb)*(khlc/fhlc)+khlb; diffa:=(diff-fhlb)*(khlc/fhlc)+khlb; deaa:=(dea-fhlb)*(khlc/fhlc)+khlb; macda:=(macd-fhlb)*(khlc/fhlc)+khlb; md1:=ma(close,80)-ma(close,13)/3; md2:=ma((close-md1)/md1,3); 买点1:=cross(md2,0) and low/ref(high,1)<1.012 and j<75 and j>ref(j,1); ma12:=ma(close,12); 佳点:=if(filter(macd>=ref(macd,5) and open<=ref(close,1) and xx-ref(xx,1)>0 and macd<=0 and ma12-ref(ma12,1)>=0,3) and j<80 and j>ref(j,1) and d>ref(d,1) and (diff>=ref(diff,1) or dea>=ref(dea,1)),1,0); drawtext(佳点=1,macda*0.98,'佳点'),color00cc00; dx0:=ema(close,2)-ema(open,5); dx1:=if(cross(dx0,macd) and low<=xx and macd<=(0-0.11) and (j<20 or k<20),1,0); drawtext(filter(dx1,3),0,'短10%'),color00cc00;{短线} ma10:=ma(close,10); ss:=ema(ma(high,3)*1.05,30); lqs:=if(filter(0.7*(cross(diff,dea) and close<ss and xx-ref(xx,1)>0 and cross(macd,0) and macd>=0 and diff>0 and ma10-ref(ma10,1)>0 and vol>ref(vol,1))>=0.7 and (close<ss and xx-ref(xx,1)>0),5) and j<80,1,0); drawtext(lqs=1,macda*0.98,'量价齐上'),color00cc00;{量价齐上} 最佳点:=if(count(md2>ref(md2,1),3)=3 and count(md2<0,10)=10 and ref(md2,3)=llv(md2,10) and j<80 and j>ref(j,1),1,0); drawtext(最佳点=1,j,'最佳点'),color00cc00; 买点2:=ref(md2,2)=llv(md2,20) and ref(md2,2)<0.071 and ref(md2,2)<ref(md2,1) and not(ref(low,1)>ref(high,2) and low>ref(high,1)) and close>ref(close,1) and j<75 and j>ref(j,1); drawtext(买点1 or 买点2,d-1,'买'),color00cc00;
上一指标公式:买卖资金流量进出副图指标附实测图下载 通达信进出资金
下一指标公式:飞翔去除ST停牌抓牛股指标下载 通达信牛股
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文RSI和KDJ最佳共振点副图指标下载 通达信RSI仅供学习研究。