difelsef := ema(close,12) - ema(close,26);
dea:= ema(difelsef,9);
lc := ref(close,1);
rsi1:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
rsi2:=sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*100;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
tr := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
hd := high-ref(high,1);
ld := ref(low,1)-low;
pdm:= sum(ifelse(hd>0 && hd>ld,hd,0),14);
mdm:= sum(ifelse(ld>0 && ld>hd,ld,0),14);
pdi:= pdm*100/tr;
mdi:= mdm*100/tr;
a1:=barslast(ref(cross(difelsef,dea),1));
b1:=ref(close,a1+1)>close && ref(difelsef,a1+1)
<difelsef && cross(difelsef,dea);
a2:=barslast(ref(cross(k,d),1));
b2:=ref(close,a2+1)>close && ref(k,a2+1)<k && cross(k,d);
a3:=barslast(ref(cross(rsi1,rsi2),1));
b3:=ref(close,a3+1)>close && ref(rsi1,a3+1)
<rsi1 && cross(rsi1,rsi2);
c1:=barslast(ref(cross(dea,difelsef),1));
d1:=ref(close,c1+1)<close && ref(difelsef,c1+1)
>difelsef && cross(dea,difelsef);
c2:=barslast(ref(cross(d,k),1));
d2:=ref(close,c2+1)<close && ref(k,c2+1)>k && cross(d,k);
c3:=barslast(ref(cross(rsi2,rsi1),1));
d3:=ref(close,c3+1)<close && ref(rsi1,c3+1)
>rsi1 && cross(rsi2,rsi1);
c4:=barslast(ref(cross(mdi,pdi),1));
d4:=ref(close,c4+1)<close && ref(mdi,c4+1)>mdi && cross(mdi,pdi);
a4:=barslast(ref(cross(pdi,mdi),1));
b4:=ref(close,a4+1)>close && ref(pdi,a4+1)<pdi && cross(pdi,mdi);
stickline(b4,low,low-0.06,colorblue,0);
drawtext(b4,low-20,'d底');
playsound(crossup(b4,low),'f');
stickline(d4,high,high+0.06,colorwhite,0);
drawtext(d4,high+20,'d顶');
playsound(crossdown(d4,high),'e');
stickline(b1,low,low-0.06,colorgreen,0);
drawtext(b1,low-10,'m底');
playsound(crossup(b1,low),'f');
stickline(b2,low,low-0.06,coloryellow,0);
drawtext(b2,low-6,'k底');
playsound(crossup(b2,low),'f');
stickline(b3,low,low-0.04,colorred,0);
drawtext(b3,low-16,'r底');
playsound(crossup(b3,low),'f');
stickline(d1,high,high+0.06,colormagenta,0);
drawtext(d1,high+10,'m顶');
playsound(crossdown(d1,high),'e');
stickline(d2,high,high+0.06,colorlightred,0);
drawtext(d2,high+6,'k顶');
playsound(crossdown(d2,high),'e');
stickline(d3,high,high+0.06,colorlightgreen,0);
drawtext(d3,high+16,'r顶');
playsound(crossdown(d3,high),'e');
ma13:=ma(close,13),colorwhite;
vll:=cross(ma(close,13),ma(close,21));
drawtext(vll,ma13-10,'圆底');
playsound(crossup(vll,ma13),'f');
上一指标公式:淘宝-分时来回赚下载公式 淘宝指标源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文文华财经各种顶底背离主图公式 财经底背离指标源码仅供学习研究。