kdj融入macdrsi融入macdcci融入kdj-dzh2
kdj融入macd+rsi融入macd+让cci融入kdj-dzh2
感谢原作者!
{kdj融入macd}
{参数保留原来}
n:=9;m1:=3;m2:=3;
rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;
k:=sma(rsv,m1,1);
d:=sma(k,m2,1);
量能:=3*k-2*d;
rsie:=ema(量能,3);
diff:ema(rsie,12)-ema(rsie,26);
bbdiff:=diff-ref(diff,1);
dea:ema(diff,9);
fillrgn(diff,dea,diff>dea,rgb(255,105,180),diff<dea,rgb(34,139,34));
bbdea:=dea-ref(dea,1);
macd:2*(diff-dea), colorstick;
stickline(macd<ref(macd,1)and macd>0,0,macd,2,0),colorffff00;
stickline(macd<ref(macd,1)and macd<0,0,macd,2,0),color00ff00;
stickline(macd>ref(macd,1)and macd<0,0,macd,2,0),color0099ff;
stickline(macd>ref(macd,1)and macd>0,0,macd,2,0),colorred;
0,colorff8855,linethick2;
partline(diff,diff>dea),colorred,linethick2;
partline(dea,dea>ref(dea,1)),colormagenta;
drawicon(cross(diff,dea),dea,4);
drawicon(cross(dea,diff),dea,5);
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,0,-1.5,2,0),colorffff00;
drawtext(低位金叉,-1.5,' 低位金叉'),colorffff00;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,0,-1,5,0),colorff00ff;
drawicon(二次金叉,dea*1.2,11) ;
drawtext(二次金叉,-1,' 二次金叉'),colorff00ff;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,1.5,3,0),color00ff00;
drawline(a1=0,dea,底背离,dea,0),colorred,linethick2;
drawtext(底背离,2,' 底背离'),color00ff00;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
stickline(顶背离,0,2,3,0),colorff8855;
drawline(a2=0,dea,顶背离,dea,0),colorff8855,linethick2;
drawtext(顶背离,2,' 顶背离'),colorff8855;
{rsi融入macd}
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*100;
rsie:=ema(rsi,3);
diff:ema(rsie,12)-ema(rsie,26);
bbdiff:=diff-ref(diff,1);
dea:ema(diff,9);
fillrgn(diff,dea,diff>dea,rgb(255,105,180),diff<dea,rgb(34,139,34));
bbdea:=dea-ref(dea,1);
macd:2*(diff-dea), colorstick;
stickline(macd<ref(macd,1)and macd>0,0,macd,2,0),colorffff00;
stickline(macd<ref(macd,1)and macd<0,0,macd,2,0),color00ff00;
stickline(macd>ref(macd,1)and macd<0,0,macd,2,0),color0099ff;
stickline(macd>ref(macd,1)and macd>0,0,macd,2,0),colorred;
0,colorff8855,linethick2;
partline(diff,diff>dea),colorred,linethick2;
partline(dea,dea>ref(dea,1)),colormagenta;
drawicon(cross(diff,dea),dea,1);
drawicon(cross(dea,diff),dea,2);
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,0,-1.5,2,0),colorffff00;
drawtext(低位金叉,-1.5,' 低位金叉'),colorffff00;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,0,-1,5,0),colorff00ff;
drawicon(二次金叉,dea*1.2,11) ;
drawtext(二次金叉,-1,' 二次金叉'),colorff00ff;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,1.5,3,0),color00ff00;
drawline(a1=0,dea,底背离,dea,0),colorred,linethick2;
drawtext(底背离,2,' 底背离'),color00ff00;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
stickline(顶背离,0,2,3,0),colorff8855;
drawline(a2=0,dea,顶背离,dea,0),colorff8855,linethick2;
drawtext(顶背离,2,' 顶背离'),colorff8855;
{让cci融入kdj}
typ:=(high+low+close)/3;
cci:=(typ-ma(typ,14))*100/(1.5*avedev(typ,14));
rk:=sma(cci,3,1);rd:=sma(rk,3,1);rj:3*rk-2*rd,colorblue,linethick3;
头:=390+reverse(ema(rj, 1));
底:=-290+reverse(ema(rj,1));
抛:if(rj>头,200,250),colorgreen,linethick3;
吸:if(rj<底,-180,-150),colorred,linethick3;
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*2000;
rsie:=ema(rsi,3);
diff:= ema(rsie,12) - ema(rsie,26);
bbdiff:=diff-ref(diff,1);
dea:= ema(diff,9);
bbdea:=dea-ref(dea,1);
macd : 2*(diff-dea), colorstick;
stickline(macd<ref(macd,1) and macd>0,0,macd,2,0),colorffff00;
stickline(macd<ref(macd,1) and macd<0,0,macd,2,0),color00ff00;
stickline(macd>ref(macd,1) and macd<0,0,macd,2,0),color0099ff;
stickline(macd>ref(macd,1) and macd>0,0,macd,2,0),colorred;
fillrgn(diff,dea,diff>dea,rgb(220,20,60),diff<dea,rgb(255,255,0));
fillrgn(rk,rd,rk>rd,rgb(255,105,180),rk<rd,rgb(34,139,34));
0,colorred,linethick2;
上一指标公式:高成功率选股股票池公式下载 大智慧功率选股
下一指标公式:经典DMI优化及用法公式下载 大智慧优化源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文KDJ融入MACDRSI融入MACDCCI融入KDJ-DZH2公式下载 大智慧MACD源码仅供学习研究。