好公式网用指标公式为投资注入科技力量!
您的位置:好公式网通达信公式MACD顶底背离副图数值显示指标下载 通达信源码显示

MACD顶底背离副图数值显示指标下载 通达信源码显示

  • 指标公式类型:通达信公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-11-24 07:11:58
  • 指标公式标签:
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:MACD顶底背离副图数值显示指标下载 通达信源码显示

请各位老师帮忙优化,特别是红绿柱的长度,如果代码中有无用途之处的,请可删去。谢谢!
n:=7;
n1:=21;
n2:=3;
m:=2.5;

diff:ema(close,n) - ema(close,n1),colorred,linethick2;
dea:ema(diff,n2),colorgreen,linethick2;
macd:(diff-dea)*3,colorstick;
stickline(macd<ref(macd,1)and macd>0,0,macd,0,0)coloryellow,linethick1;
stickline(macd>ref(macd,1)and macd<0,0,macd,0,0)colorwhite,linethick1;
前期最大值:=ref(hhv(macd,20),1);
前期最小值:=ref(llv(macd,20),1);
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+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));
c1:=barslast(ref(cross(dea,diff),1));
d1:=ref(c,c1+1)<c and ref(diff,c1+1)>diff and cross(dea,diff);
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));
macd底背:if(b1>0,-1,0),colorred,pointdot;
kdj底背:if(b2>0,-1,0),colorff00ff,pointdot;
rsi底背:if(b3>0,-1,0),coloryellow,pointdot;
macd顶背:if(d1>0,1,0),color00ff00,pointdot;
kdj顶背:if(d2>0,1,0),colorffcc66,pointdot;
rsi顶背:if(d3>0,1,0),colorwhite,pointdot;
stickline(b1>0,前期最小值,0,2,0),colorred,linethick2;
stickline(b2>0,前期最小值,0,2,0),colorff00ff,linethick2;
stickline(b3>0,前期最小值,0,2,0),coloryellow,linethick2;
stickline(d1>0,0,前期最大值,2,0),color00ff00,linethick2;
stickline(d2>0,0,前期最大值,2,0),colorffcc66,linethick2;
stickline(d3>0,0,前期最大值,2,0),colorwhite,linethick2;
o轴金叉:=cross(diff,dea) and diff<=前期最大值 and diff>=前期最小值;
drawicon(o轴金叉,diff*1.02,23);
低位金叉:=cross(diff,dea) and diff<-0.1;
drawicon(低位金叉,dea*1.05,5);
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
drawicon(二次金叉,dea*1.16,11);
k1:=cross(macd,0),colorlired;
if(range(diff,-0.05,0.05) and k1,前期最大值*3,0),colorff00ff;
drawtext(range(diff,-0.05,0.05) and k1,前期最大值*3.5,'0轴金叉');
aa1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,aa1+1)>close and diff>ref(diff,aa1+1) and cross(diff,dea);
drawline(aa1=0,dea,底背离,dea,0),color5f9f9f,linethick1;
drawtext(底背离,dea*1.3,' 底背离'),color5f9f9f;
aa2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,aa2+1)<close and ref(diff,aa2+1)>diff and cross(dea,diff);
drawline(aa2=0,dea,顶背离,dea,0),colora68064,linethick1;
drawtext(顶背离,dea*1.3,' 顶背离'),colora68064;
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;
f:=100;
g:=80;
火焰抄底:if(ref(count(k<ref(k,1),5)>=5,1) and count(k<30,5)>=2 and count(j<0,3)>0 and cross(j,0),前期最小值*1.3,0),colorred;
抄底:if(c<ref(c,1) and ref(c,1)<ref(c,2) and ref(c,2)<ref(c,3) and j>ref(j,1),前期最小值*1.3,0),color888888;
见顶:if(k>=g and j<ref(j,1) and cross(f,j),前期最大值*1.3,0),colorgreen;
drawtext(k>=g and j<ref(j,1) and cross(f,j),前期最大值*1.6,'顶'),colorgreen;
买进:=if(cross(j,0) and c>ref(c,1),8,0),coloryellow ;
低位区翻红买进:=if(j<5 and j>ref(j,1) and c>ref(c,1),16,0),colorred;
x:=llv(j,2)=llv(j,8);
不涨二次全仓:=if(cross(j,ref(j+0.01,1)) and x and j<10 and c>ref(c,1),24,0),colorblue;
drawicon(买进 and 低位区翻红买进 and 不涨二次全仓,-abs(m*macd)*0.9,17);
bias1:=(c-ma(c,6))/ma(c,6)*100;
bias2:=(c-ma(c,12))/ma(c,12)*100;
bias3:=(c-ma(c,24))/ma(c,24)*100;
bias:=(bias1+2*bias2+3*bias3)/6;
乖离:=ma(bias,3);
极品底:if(cross(bias,乖离) and 乖离<-9,m*macd,0),linethick0,colorred;
stickline(cross(bias,乖离) and 乖离<-9,-abs(m*macd),0,1,0),colorred;
drawtext(cross(bias,乖离) and 乖离<-9,-abs(m*macd),'极品底'),colorred;
var11:=9999999999999;
var21:=llv(low,60);
var31:=hhv(high,60);
var41:=ema((close-var21)/(var31-var21)*100,5);
var5:=ema(0.667*ref(var41,1)+0.333*var41,2);
var6:=open=1.06 and close/open>1.12 and high/ cross(var41,var5) and var41<13;
顶:stickline(cross(var5,var41) and var41>85,0,前期最大值*1.3,1,0),color888888;
drawicon(cross(var5,var41) and var41>85,前期最大值*1.6,15);
drawtext(ref(macd,1)>0 and macd<0,macd-0.02,'1');
drawtext(ref(macd,2)>0 and ref(macd,1)<0 and macd<0,macd-0.02,'2');
drawtext(ref(macd,3)>0 and ref(macd,2)<0 and ref(macd,1)<0 and macd<0,macd-0.02,'3');
drawtext(ref(macd,4)>0 and ref(macd,3)<0 and ref(macd,2)<0 and ref(macd,1)<0 and macd<0,macd-0.02,'4');
drawtext(ref(macd,5)>0 and ref(macd,4)<0 and ref(macd,3)<0 and ref(macd,2)<0 and ref(macd,1)<0 and macd<0,macd-0.02,'5');
drawtext(ref(macd,6)>0 and ref(macd,5)<0 and ref(macd,4)<0 and ref(macd,3)<0 and ref(macd,2)<0 and ref(macd,1)<0 and macd<0,macd-0.02,'6');
drawtext(ref(macd,7)>0 and ref(macd,6)<0 and ref(macd,5)<0 and ref(macd,4)<0 and ref(macd,3)<0 and ref(macd,2)<0 and ref(macd,1)<0 and macd<0,macd-0.02,'7');
drawtext(ref(macd,8)>0 and ref(macd,7)<0 and ref(macd,6)<0 and ref(macd,5)<0 and ref(macd,4)<0 and ref(macd,3)<0 and ref(macd,2)<0 and ref(macd,1)<0 and macd<0,macd-0.02,'8');
drawtext(ref(macd,9)>0 and ref(macd,8)<0 and ref(macd,7)<0 and ref(macd,6)<0 and ref(macd,5)<0 and ref(macd,4)<0 and ref(macd,3)<0 and ref(macd,2)<0 and ref(macd,1)<0 and macd<0,macd-0.02,'9');


macd顶底背离(副图 源码 数值显示)

  >>>使用本站搜索工具可以找到更多MACD顶底背离副图数值显示指标下载 通达信源码显示

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文MACD顶底背离副图数值显示指标下载 通达信源码显示仅供学习研究。

猜你喜欢

学了又学