金叉三背离骑黑马源码下载:
n1:=26;
m2:=18;
diff:ema(close,8)-ema(close,24);
dif:=ema(close,12)-ema(close,26);
dea:ema(diff,6);
zero:0;
gj:=max(c,o);
a1:=barslast(ref(cross(dif,dea),1));
macd:2*(diff-dea),colorstick,colorbrown;
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);
stickline(macd>0 and macd>=ref(macd,1),0,macd,2,0),color0000ff;
stickline(macd>0 and macd<ref(macd,1),0,macd,2,0),colorffff00;
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;
lc:=ref(close,1);
stickline(macd<0 and macd>=ref(macd,1),0,macd,2,0),colorff00ff;
stickline(macd<0 and macd<ref(macd,1),0,macd,2,0),color00ff00;
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;
a2:=barslast(ref(cross(k,d),1));
b2:=ref(c,a2+1)>c and ref(k,a2+1)<k and cross(k,d);
l4:=llv(gj,4);
jl:=(hhv(diff,55)-llv(diff,55))/5;
a3:=barslast(ref(cross(rsi1,rsi2),1));
b3:=ref(c,a3+1)>c and ref(rsi1,a3+1)<rsi1 and cross(rsi1,rsi2);
c1:=barslast(ref(cross(dea,diff),1));
gt:=dea>ref(dea,1) and ref(dea,1)<ref(dea,2);
a1:=barslast(ref(gt,1));
d1:=ref(c,c1+1)<c and ref(diff,c1+1)>diff and cross(dea,diff);
c2:=barslast(ref(cross(d,k),1));
d2:=ref(c,c2+1)<c and ref(k,c2+1)>k and cross(d,k);
c3:=barslast(ref(cross(rsi2,rsi1),1));
底背离:=ref(l4,a1+1)>close and diff>ref(diff,a1+1) and gt;
drawline(a1=0,dea,底背离,ref(dea,a1),0),colorred,linethick2;
d3:=ref(c,c3+1)<c and ref(rsi1,c3+1)>rsi1 and cross(rsi2,rsi1);
ll:= const(llv(macd, 180));
hh:= const(hhv(macd, 180));
drawline(底背离,dea,底背离,ref(dea,a1),0),colorred,linethick2;
drawtext(底背离,ref(dea,a1)*1.18,'底背离'),colorff00ff;
macd底背:if(b1>0, 1,0),nodraw,colorred;
rsi底背:if(b3>0, 1,0),nodraw,colorpurple;
kdj底背:if(b2>0, 1,0),nodraw,colorff00ff;
底背离2:=ref(close,a1+1)>close and dif>ref(dif,a1+1) and cross(dif,dea);
m1:=ema(close,9);
m2:=ema(close,18);
h4:=hhv(gj,4);
macd高:=hhv(macd,5);
md:m1-m2,colorwhite,linethick3;
mm:=ema(md,3);
gt2:=dea<ref(dea,1) and ref(dea,1)>ref(dea,2);
a2:=barslast(ref(gt2,1));
f:=ref(c,a1+1)>c and dea<0 and ref(macd高,
a1+1)<macd高 and cross(dif,dea);
吸:if(md>=mm and md<0,md,drawnull),colorlired,linethick3;
拉:if(md>=mm and md>=0,md,drawnull),colorred,linethick3;
派:if(md<mm and md>=0,md,drawnull),colorgreen, linethick3;
落:if(md<mm and md<0,md,drawnull),colorwhite, linethick3;
顶背离:= ref(h4,a2+1)<h4 and diff<ref(diff,a2+1) and gt2;
柱底背:=f>0;
jc:= dea-dif;
ah:=hhv(macd,13*1);
al:=llv(macd,13*0.3);
绿柱面积:=if(macd<0,sum(macd,barslast(jc<0)),0);
红柱面积:=if(macd>0,sum(macd,barslast(jc>0)),0);
drawline(a2=0 ,dea,顶背离,ref(dea,a2),0),colorgreen,linethick2;
本次最低价:=llv(l,barslast(jc<0));
本次最高价:=hhv(h,barslast(jc>0));
stickline(macd>0 ,macd,0,1,0),color0000aa,linethick1;
stickline(macd<0 ,macd,0,1,0),color008800,linethick1;
x1:=if (macd<0,barslast(cross(dif,dea)),0);
前次绿柱面积:=ref(绿柱面积,x1+1);
前次最低价:=ref(本次最低价,x1+1);
趋势线:=ema(macd,34,1);
drawline(顶背离,dea,顶背离,ref(dea,a2),0),colorgreen,linethick2;
y1:=if((绿柱面积<0 and abs(绿柱面积)<abs(前次绿柱面积)
and 本次最低价<前次最低价 ),1,0);
rs1:=macd<0 and ref(macd,1)<0 and c<前次最低价 and
abs(绿柱面积)<abs(前次绿柱面积) and abs(macd)<abs(ref(macd,1));
partline(趋势线,趋势线>ref(趋势线,1),rgb(255,255,0),
趋势线<ref(趋势线,1),rgb(0,80,255)),linethick1;
fillrgn(趋势线,ref(趋势线,1),趋势线>ref(趋势线,1),
rgb(255,255,0),趋势线<=ref(趋势线,1),rgb(0,88,255));
积底背:= if(cross(dif,dea),ref(y1,1),0);
三背离:底背离2 and 柱底背 and 积底背;
drawtext(顶背离,ref(dea,a2)*1.18,'顶背离'),colorgreen;
上一指标公式:多方波段买底突击队下载
下一指标公式:MACD相对乖离底部下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文金叉三背离骑黑马下载仅供学习研究。