裴波那契周期与macd结合对大盘及个股的判断。
drawgbk(c>o,rgb(20,10,90),rgb(0,0,0),0,'1',0);
diff1:=ema(close,12)-ema(close,26),colorffffff;
dea1:=ema(diff1,9),coloryellow;
macd1:=2*(diff1-dea1);
macd2:=ema(macd1,5);//www.goodgongshi.com
stickline(macd1>macd2 and macd1>0,0,macd1,3,0),color000055;
stickline(macd1>macd2 and macd1>0,0,macd1,2.5,0),color000077;
stickline(macd1>macd2 and macd1>0,0,macd1,1.5,0),color000099;
stickline(macd1>macd2 and macd1>0,0,macd1,1,0),color0000ff;
stickline(macd1>macd2 and macd1<0,0,macd1,3,0),color222222;
stickline(macd1>macd2 and macd1<0,0,macd1,2.5,0),color444444;
stickline(macd1>macd2 and macd1<0,0,macd1,1.5,0),color666666;
stickline(macd1>macd2 and macd1<0,0,macd1,0,0),color999999;
stickline(macd1<macd2,0,macd1,3,0),colora80000;
stickline(macd1<macd2,0,macd1,2.5,0),colorb80000;
stickline(macd1<macd2,0,macd1,1.5,0),colorec1000;
stickline(macd1<macd2,0,macd1,1,0),colorff4600;
stickline(macd1<macd2,0,macd1,0,0),colorffaa00;
低位金叉:=cross(diff1,dea1) and diff1<-0.1;
stickline(低位金叉,0,diff1,3,0),color002222;
stickline(低位金叉,0,diff1,2.5,0),color006666;
stickline(低位金叉,0,diff1,1.5,0),color009999;
stickline(低位金叉,0,diff1,1,0),color00ffff;
drawtext(低位金叉,0.2,' 低位金叉'),color00ff88;
jccount:=count(cross(diff1,dea1),barslast(dea1>=0));
二次金叉:=cross(diff1,dea1) and dea1<0 and count(jccount=2,21)=1;
stickline(二次金叉,macd1,-0.01,3,0),color440044;
stickline(二次金叉,macd1,-0.01,2.5,0),color660066;
stickline(二次金叉,macd1,-0.01,1.5,0),color990099;
stickline(二次金叉,macd1,-0.01,1,0),colorff00ff;
drawtext(二次金叉,dea1*1.3,' 二次金叉'),coloryellow;
a1:=barslast(ref(cross(diff1,dea1),1));
底背离:=ref(close,a1+1)>close and diff1>ref(diff1,a1+1) and cross(diff1,dea1);
stickline(底背离,0,0.03,6,0),color00ff00;
drawline(a1=0,dea1,底背离,dea1,0),colorred,linethick1;
drawtext(底背离,0.03,' 底背离'),colorff00ff;
a2:=barslast(ref(cross(dea1,diff1),1));
顶背离:=ref(close,a2+1)<close and ref(diff1,a2+1)>diff1 and cross(dea1,diff1);
drawline(a2=0,dea1,顶背离,dea1,0),colorff8800,linethick1;
drawtext(顶背离,-0.02,' 顶背离'),colorffff00;
diff:diff1,color009922;
dea:dea1,coloryellow;
zt:=cross(dea,diff);
ls0:=barslast(zt);
s1:=if(1,ls0=1,zt) and if(1,diff<dea,0);
drawtext(s1 and diff>0,diff*0.8,'1'),color00ff00;
drawtext(s1 and diff<0,diff*1.8,'1'),color00ff00;
s3:=if(3,ls0=3,zt) and if(3,diff<dea,0);
drawtext(s3 and diff>0,diff*0.8,'3'),color00ff00;
drawtext(s3 and diff<0,diff*1.4,'3'),color00ff00;
s5:=if(5,ls0=5,zt) and if(5,diff<dea,0);
drawtext(s5 and diff>0,diff*0.8,'5'),color00ff00;
drawtext(s5 and diff<0,diff*1.4,'5'),color00ff00;
s8:=if(8,ls0=8,zt) and if(8,diff<dea,0);
drawtext(s8 and diff>0,diff*0.8,'8'),color00ff00;
drawtext(s8 and diff<0,diff*1.8,'8'),color00ff00;
s13:=if(13,ls0=13,zt) and if(8,diff<dea,0);
drawtext(s13 and diff>0,diff*0.8,'13'),color00ff00;
drawtext(s13 and diff<0,diff*1.2,'13'),color00ff00;
s21:=if(21,ls0=21,zt) and if(21,diff<dea,0);
drawtext(s21 and diff>0,diff*0.8,'21'),color00ff00;
drawtext(s21 and diff<0,diff*1.2,'21'),color00ff00;
s26:=if(26,ls0=26,zt) and if(26,diff<dea,0);
drawtext(s26 and diff>0,diff*0.8,'26'),color00ff00;
drawtext(s26 and diff<0,diff*1.2,'26'),color00ff00;
s29:=if(29,ls0=29,zt) and if(29,diff<dea,0);
drawtext(s29 and diff>0,diff*0.8,'29'),color00ff00;
drawtext(s29 and diff<0,diff*1.2,'29'),color00ff00;
s34:=if(34,ls0=34,zt) and if(34,diff<dea,0);
drawtext(s34 and diff>0,diff*0.8,'34'),color00ff00;
drawtext(s34 and diff<0,diff*1.8,'34'),color00ff00;
s55:=if(55,ls0=55,zt) and if(55,diff<dea,0);
drawtext(s55 and diff>0,diff*0.8,'55'),color00ff00;
drawtext(s55 and diff<0,diff*1.8,'55'),color00ff00;
s68:=if(68,ls0=68,zt) and if(68,diff<dea,0);
drawtext(s68 and diff>0,diff*0.8,'68'),color00ff00;
drawtext(s68 and diff<0,diff*1.8,'68'),color00ff00;
ztj:=cross(diff,dea);
lsj:=barslast(ztj);//www.goodgongshi.com
sj1:=if(1,lsj=1,ztj) and if(1,diff>dea,0);
drawtext(sj1 and diff>0,diff*1.2,'1'),colorffffff;
drawtext(sj1 and diff<0,diff*0.8,'1'),colorffffff;
sj3:=if(3,lsj=3,lsj) and if(3,diff>dea,0);
drawtext(sj3 and diff>0,diff*1.2,'3'),colorffffff;
drawtext(sj3 and diff<0,diff*0.8,'3'),colorffffff;
sj5:=if(5,lsj=5,ztj) and if(5,diff>dea,0);
drawtext(sj5 and diff>0,diff*1.2,'5'),colorffffff;
drawtext(sj5 and diff<0,diff*0.8,'5'),colorffffff;
sj8:=if(8,lsj=8,ztj) and if(8,diff>dea,0);
drawtext(sj8 and diff>0,diff*1.2,'8'),colorffffff;
drawtext(sj8 and diff<0,diff*0.8,'8'),colorffffff;
sj13:=if(13,lsj=13,ztj) and if(8,diff>dea,0);
drawtext(sj13 and diff>0,diff*1.2,'13'),colorffffff;
drawtext(sj13 and diff<0,diff*0.8,'13'),colorffffff;
sj18:=if(18,lsj=18,ztj) and if(8,diff>dea,0);
drawtext(sj18 and diff>0,diff*1.2,'18'),colorffffff;
drawtext(sj18 and diff<0,diff*0.8,'18'),colorffffff;
sj21:=if(21,lsj=21,ztj) and if(21,diff>dea,0);
drawtext(sj21 and diff>0,diff*1.2,'21'),colorffffff;
drawtext(sj21 and diff<0,diff*0.8,'21'),colorffffff;
sj26:=if(26,lsj=26,ztj) and if(26,diff>dea,0);
drawtext(sj26 and diff>0,diff*1.2,'26'),colorffffff;
drawtext(sj26 and diff<0,diff*0.8,'26'),colorffffff;
sj29:=if(29,lsj=29,ztj) and if(29,diff>dea,0);
drawtext(sj29 and diff>0,diff*1.2,'29'),colorffffff;
drawtext(sj29 and diff<0,diff*0.8,'29'),colorffffff;
sj34:=if(34,lsj=34,ztj) and if(34,diff>dea,0);
drawtext(sj34 and diff>0,diff*1.2,'34'),colorffffff;
drawtext(sj34 and diff<0,diff*0.8,'34'),colorffffff;
sj47:=if(47,lsj=47,ztj) and if(47,diff>dea,0);
drawtext(sj47 and diff>0,diff*1.2,'47'),colorffffff;
drawtext(sj47 and diff<0,diff*0.8,'47'),colorffffff;
sj55:=if(55,lsj=55,ztj) and if(55,diff>dea,0);
drawtext(sj55 and diff>0,diff*1.2,'55'),colorffffff;
drawtext(sj55 and diff<0,diff*0.8,'55'),colorffffff;
sj60:=if(60,lsj=60,ztj) and if(60,diff>dea,0);
drawtext(sj60 and diff>0,diff*1.2,'63'),colorffffff;
drawtext(sj60 and diff<0,diff*0.8,'63'),colorffffff;
sj68:=if(68,lsj=68,ztj) and if(68,diff>dea,0);
drawtext(sj68 and diff>0,diff*1.2,'68'),colorffffff;
drawtext(sj68 and diff<0,diff*0.8,'68'),colorffffff;
上一指标公式:假阴假阳HUSS指标公式详解 同花顺假阴假阳
下一指标公式:五十穿三十六十HUSS指标公式详解 同花顺五十穿三十六十
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文裴波那契与MACD指标公式详解 同花顺裴波仅供学习研究。