diff:ema(close,12)-ema(close,26);
dea:ema(diff,9)colormagenta,linethick1;
macd:2*(diff-dea), colorstick,linethick2;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,0.03,6,0),color00ff00;
底背:drawline(a1=0,dea,底背离,dea,0),colorred,linethick4;
drawtext(底背离,0.12,' 底背离'),colorff00ff;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
顶背:drawline(a2=0,dea,顶背离,dea,0),colorgreen,linethick4;
aa2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,aa2+1)>c and ref("kdj.k"(9,3,3),aa2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
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));
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
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));
kdj底背:if(b2>0,-0.1,0),colorff00ff,pointdot;
rsi底背:if(b3>0,-0.1,0),coloryellow,pointdot;
kdj顶背:if(d2>0,0.1,0),colorffcc66,pointdot;
rsi顶背:if(d3>0,0.1,0),colorwhite,pointdot;
首红长:0,colorred;
首绿短:0,colorgreen;
stickline(b2>0,-0.04,0,2,0),colorff00ff;
stickline(b3>0,-0.05,0,2,0),coloryellow;
stickline(d2>0,0.04,0,2,0),colorffcc66;
stickline(d3>0,0.05,0,2,0),colorwhite;
红首长:=macd>0 and ref(macd,1)<0;
stickline(红首长,0.03,macd,2,0),colorred;
drawicon(红首长,0.04,1);
绿首短:=macd<0 and macd>ref(macd ,1)
and ref(macd ,2)<ref(macd ,3)
and ref(macd ,3)<ref(macd ,4);
stickline(绿首短,0.03,macd,2,0),colorgreen;
dif1:=ema(close,12) - ema(close,26);
dea1:=ema(dif1,9);
金叉1:=cross(dif1,dea1);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9));
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
金叉2:=cross(j,k);
drawtext(金叉1 and 金叉2, 金叉1 and 金叉2, '0.03'),stick,color0099ff;
上一指标公式: 金蜘蛛——强烈推荐副图 通达信金蜘蛛指标
下一指标公式:攻抄金叉 通达信攻抄金叉
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD+KDJ+RSI综合精华-共振 通达信精华共振仅供学习研究。