rsv:=((close-llv(low,21))/(hhv(high,21)-llv(low,21)))*247.2-123.6;
{drawband(3*(sma(sma( rsv,3,1),3,1))-2*(ma(ema(sma(sma( rsv,3,1),3,1),3),3)),rgb(255,0,255),sma(sma( rsv,3,1),3,1),rgb(0,255,0));
drawband(sma(sma( rsv,3,1),3,1),rgb(0,255,0),3*(sma(sma( rsv,3,1),3,1))-2*(ma(ema(sma(sma( rsv,3,1),3,1),3),3)),rgb(255,0,255));
drawband(sma(sma( rsv,3,1),3,1),rgb(0,0,255),ma(ema(sma(sma( rsv,3,1),3,1),3),3),rgb(255,255,0));}
sqx:=(c-ma(close,13))*100;
dif:=ema(ma(sqx,7),1);
dea:=ema(dif,7);
macd:=(dif-dea)*2;
stickline(macd>0 and macd>ref(macd,1),macd,0,0.1,0),colorred;
stickline(macd>0 and macd<ref(macd,1),macd,0,0.1,0),colorwhite;
stickline(macd<0 and macd<ref(macd,1),macd,0,0.1,0),colorblue;
stickline(macd<0 and macd>ref(macd,1),macd,0,0.1,0),colorbrown;
k:sma(sma( rsv,3,1),3,1),colorwhite;
d:ma(ema(k,3),3),coloryellow;
j:3*k-2*d,colormagenta;
a11:=barslast(ref(cross(dif,dea),1));
b1:=ref(c,a11+1)>c and ref(dif,a11+1)<dif and cross(dif,dea);
a12:=barslast(ref(cross("kdj.k","kdj.d"),1));
b2:=ref(c,a12+1)>c and ref("kdj.k",a12+1)<"kdj.k" and cross("kdj.k","kdj.d");
a13:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
b3:=ref(c,a13+1)>c and ref("rsi.rsi1",a13+1)<"rsi.rsi1"and cross("rsi.rsi1","rsi.rsi2");
c1:=barslast(ref(cross(dea,dif),1));
d1:=ref(c,c1+1)<c and ref(dif,c1+1)>dif and cross(dea,dif);
c2:=barslast(ref(cross("kdj.d","kdj.k"),1));
d2:=ref(c,c2+1)<c and ref("kdj.k",c2+1)>"kdj.k" and cross("kdj.d","kdj.k");
c3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1",c3+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1");
macd底背:if(b1>0,50,0),linethick2,colorred;
drawtext(b1>0,50,'m底背'),colorred;
kdj底背:if(b2>0,65,0),linethick2,colorff00ff;
drawtext(b2>0,65,'k底背'),colorff00ff;
rsi底背:if(b3>0,80,0),linethick2,coloryellow;
drawtext(b3>0,80,'r底背'),coloryellow;
macd顶背:if(d1>0,-50,0),linethick2,color00ff00;
drawtext(d1>0,-50,'m顶背'),color00ff00;
kdj顶背:if(d2>0,-65,0),linethick2,colorffcc66;
drawtext(d2>0,-65,'k顶背'),colorffcc66;
rsi顶背:if(d3>0,-80,0),linethick2,colorwhite;
drawtext(d3>0,-80,'r顶背'),colorwhite;
drawicon((cross(k,d)
and k<0 ),ref(k,1),11);
drawicon((cross(d,k) and k>0
),d*1.05,12);
drawicon(j<(ref(j,1))and k>(ref(k,1)) and d>(ref(d,1)
and j>0),ref(j,1),2);
drawicon(j>ref(j,1) and k<ref(k,1) and
d<ref(d,1) and j<0,ref(j,1),1);
drawicon(macd<ref(macd,1) and
ref(macd,1)>ref(macd,2) and
macd>0,macd,2);
drawicon(macd>ref(macd,1) and
ref(macd,1)<ref(macd,2) and macd<=0,macd,1);
rsv:=((close-llv(low,21))/(hhv(high,21)-llv(low,21)))*247.2-123.6;
k:=sma(sma( rsv,3,1),3,1);
d:=ma(ema(k,3),3);
xg:cross(k,d) and k<0;
上一指标公式:顶底背离公式下载 通达信底背离
下一指标公式:上班组公式下载 通达信班组
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文背离副图及选股副图公式下载 通达信背离选股仅供学习研究。