{macd交易主图}
stickline(l>ref(h,1) ,ref(h,1),l,4,-1),colordf00df;
stickline(h<ref(l,1) ,ref(l,1),h,4,-1),colordfdf00;
dif1:=ema(close,12)-ema(close,26);
dea1:=ema(dif1,9);
macda:=2*(dif1-dea1);
cy:=barslast(currbarscount=100);
dd77:=const(if(islastbar=1,llv(l,cy),0));
aa7737:=last(macda>=ref(macda,1),3,1);
bb77:=macda<ref(macda,1);
cc77:=last(macda<=ref(macda,1),3,1);
dd1:=macda>ref(macda,1);
ss:=cc77 and dd1 and macda<0; xx:=aa7737 and bb77 and macda>0;
a7737:=(3*c+h+l+o)/6;
xj:=(a7737+0.618*ref(a7737,1)+0.382*ref(a7737,2)+0.236*ref(a7737,3)+0.146*ref(a7737,4))/2.382; yczxh:=(ma(hhv(a7737,2),5)+ma(hhv(a7737,2),13)+ma(hhv(a7737,2),21)+ma(hhv(a7737,2),32))/4; yczxl:=(ma(llv(a7737,2),5)+ma(llv(a7737,2),13)+ma(llv(a7737,2),21)+ma(llv(a7737,2),32))/4;
smh:=ema(yczxh,21);
sml:=ema(yczxl,21),nodraw;
smj:=(sml+smh)/2,nodraw;
pj:=(10*a7737+9*ref(a7737,1)+8*ref(a7737,2)+7*ref(a7737,3)+6*ref(a7737,4)+5*ref(a7737,5)+4*ref(a7737,6)+3*ref(a7737,7)+2*ref(a7737,8)+ref(a7737,9))/55; a1:=ema(pj,3),color00400d,nodraw;
a77372:=ema(pj,5),color00400d,nodraw;
a773:=ema(pj,7),color00400d,nodraw;
a774:=ema(pj,9),color00400d,nodraw;
a775:=ema(pj,11),color00400d,nodraw;
a66:=ema(pj,1),color00400d,nodraw;
lx:=ref(xj,1),nodraw; zd:=(sma(max(xj-lx,0),5,1)/sma(abs(xj-lx),5,1))*100,nodraw;
kx1:=(close>=open) and zd>=50,nodraw;
kx2:=(close<open) and zd>=50,nodraw;
kx3:=(close>=open) and zd<50,nodraw;
kx4:=(close<open) and zd<50,nodraw;
drawband(if(currbarscount<=100,dd77+macd*1.5,drawnull),rgb(230,12,12),dd77,rgb(10,30,230));
drawband(if(currbarscount<=100,dd77+macd*1.5,drawnull),rgb(230,30,12),dd77,rgb(10,200,30)); if(currbarscount<100,dd77+macd*1.5,drawnull),coloryellow;
drawtext(cross(c,a773),dd77,'暖'),colorwhite; drawtext(cross(c,sml),dd77,'开'),colorwhite;
stickline(l>ref(h,1) ,ref(h,1),l,4,-1),colordf00df;
stickline(h<ref(l,1) ,ref(l,1),h,4,-1),colordfdf00;
dif1:=ema(close,12)-ema(close,26);
dea1:=ema(dif1,9);
macda:=2*(dif1-dea1);
cy:=barslast(currbarscount=100);
dd77:=const(if(islastbar=1,llv(l,cy),0));
aa7737:=last(macda>=ref(macda,1),3,1);
bb77:=macda<ref(macda,1);
cc77:=last(macda<=ref(macda,1),3,1);
dd1:=macda>ref(macda,1);
ss:=cc77 and dd1 and macda<0; xx:=aa7737 and bb77 and macda>0;
a7737:=(3*c+h+l+o)/6;
xj:=(a7737+0.618*ref(a7737,1)+0.382*ref(a7737,2)+0.236*ref(a7737,3)+0.146*ref(a7737,4))/2.382; yczxh:=(ma(hhv(a7737,2),5)+ma(hhv(a7737,2),13)+ma(hhv(a7737,2),21)+ma(hhv(a7737,2),32))/4; yczxl:=(ma(llv(a7737,2),5)+ma(llv(a7737,2),13)+ma(llv(a7737,2),21)+ma(llv(a7737,2),32))/4;
smh:=ema(yczxh,21);
sml:=ema(yczxl,21),nodraw;
smj:=(sml+smh)/2,nodraw;
pj:=(10*a7737+9*ref(a7737,1)+8*ref(a7737,2)+7*ref(a7737,3)+6*ref(a7737,4)+5*ref(a7737,5)+4*ref(a7737,6)+3*ref(a7737,7)+2*ref(a7737,8)+ref(a7737,9))/55; a1:=ema(pj,3),color00400d,nodraw;
a77372:=ema(pj,5),color00400d,nodraw;
a773:=ema(pj,7),color00400d,nodraw;
a774:=ema(pj,9),color00400d,nodraw;
a775:=ema(pj,11),color00400d,nodraw;
a66:=ema(pj,1),color00400d,nodraw;
lx:=ref(xj,1),nodraw; zd:=(sma(max(xj-lx,0),5,1)/sma(abs(xj-lx),5,1))*100,nodraw;
kx1:=(close>=open) and zd>=50,nodraw;
kx2:=(close<open) and zd>=50,nodraw;
kx3:=(close>=open) and zd<50,nodraw;
kx4:=(close<open) and zd<50,nodraw;
drawband(if(currbarscount<=100,dd77+macd*1.5,drawnull),rgb(230,12,12),dd77,rgb(10,30,230));
drawband(if(currbarscount<=100,dd77+macd*1.5,drawnull),rgb(230,30,12),dd77,rgb(10,200,30)); if(currbarscount<100,dd77+macd*1.5,drawnull),coloryellow;
drawtext(cross(c,a773),dd77,'暖'),colorwhite; drawtext(cross(c,sml),dd77,'开'),colorwhite;
上一指标公式:筹码初选指标公式详解 通达信初选
下一指标公式:庄家轨迹指标公式详解 通达信庄家
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD交易主图指标公式详解 通达信交易仅供学习研究。