{gjmacd}
input:p(26),s(12),m(9);
diff:ema(close,s)-ema(close,p);
dea:ema(diff,m);
macd:2*(diff-dea),colorstick;
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,0,0.08,6,0),coloryellow;
drawtext(低位金叉,0.16,' 低位金叉'),colorwhite;
fillrgn(diff>dea,diff,dea),color505099;
fillrgn(diff<dea,diff,dea),color326400;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,0,0.06,6,0),colorff00ff;
drawicon(二次金叉,dea*0.9,1) ;
drawtext(二次金叉,0.2,' 二次金叉'),coloryellow;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,0.03,6,0),color00ff00;
底背:drawline(a1=0,dea,底背离,dea,0),colorred,linethick4;
drawtext(底背离,0.12,' 底背离'),colorff00ff;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
顶背:drawline(a2=0,dea,顶背离,dea,0),colorgreen,linethick4;
drawtext(低位金叉 and 二次金叉 and 底背离,0.25,'三全项'),color0000ff,linethick2;
{柱长:=hhv("macd.macd",sysparam(3)-sysparam(2))*2/2;}
{stickline(cross("macd.macd",0),0,柱长[datacount],2,0),color0000ff;}
{stickline(cross(0,"macd.macd"),0,-柱长[datacount],2,0),color00ff00;}
stickline(macd>=0,macd,0,5,0),colorf00ff0;
stickline(macd<0,macd,0,5,0),colorf00ff0;
stickline(macd<ref(macd,1)and macd>0,0,macd,5,1 ),colorffff00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,5,1 ),colorffff00;
if(diff<0,diff,0),colorred;
if(diff<0,0,diff),colorred;
if(diff<dea,diff,dea),color00ff00,linethick1;
if(diff>dea,dea,dea),colorwhite,linethick1;
交叉位:=(((((13 * 27) * dea) - ((27 * 11) * ema(close,12))) + ((25 * 13) * ema(close,26))) / ((2 * 27) - (2 * 13)));
n1:=sysparam(3); n2:=sysparam(2); n3:=(n1-n2)+1; hh:=hhv(diff,n3); ll:=llv(diff,n3);
zhh:=hh[n1]; zll:=ll[n1];
drawtext(barpos=sysparam(3) and 交叉位<c,zhh,'预测死叉价: '+numtostr(交叉位,2)),align2,shift3,pxdn10,colorff8e00;
drawtext(barpos=sysparam(3) and 交叉位>c,zll,'预测金叉价: '+numtostr(交叉位,2)),align2,shift3,pxup10,colorff8eff;
多转空:((((llv(macd,4)>0) and (macd<ref(macd,1))) and (ref(macd,1)>ref(macd,2))) and (ref(macd,2)>ref(macd,3))),linethick0;
空转多:((((hhv(macd,4)<0) and (macd>ref(macd,1))) and (ref(macd,1)<ref(macd,2))) and (ref(macd,2)<ref(macd,3))),linethick0;
drawicon(多转空,macd*1.2,5);
drawicon(空转多,macd*1.2,4);
机会来临:ref(if((ma(c,5)-c)/c>0.04 and (ma(c,10)-ma(c,5))/ma(c,5)>0.04,0.5,0),1);
jj:=(h+l+c)/3;qj0:=vol/if(h=l,4,h-l);j:="kdj.j";
qj1:=if(capital=0,qj0*(jj-min(c,o)),qj0*(min(o,c)-l));
qj2:=if(capital=0,qj0*(min(o,c)-l),qj0*(jj-min(c,o)));
qj3:=qj0*(h-max(o,c));qj4:=qj0*(max(c,o)-jj);
qj5:=qj1+qj2;qj6:=qj3+qj4;dd:=(qj5-qj6)/(qj5+qj6)*100;
ddx:=((qj1+qj2)-(qj3+qj4))/sum(vol,10)*100;ddz:=dd*17;
ddy:=((qj2+qj4)-(qj1+qj3))/sum(vol,10)*100;
弄点钱玩:cross(j,0) and ((ddx>0 and ddy>0) or ddz>400),colorblue,linethick0;
drawicon(弄点钱玩,0,3),colorblue;
上一指标公式:GJKDJ副图公式 飞狐源码指标 源码
下一指标公式:GJ短线先锋否是非常实用的主图公式 飞狐源码指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文GJMACD-副图公式 飞狐源码指标 源码仅供学习研究。