dif:ema(close,12)-ema(close,26);
dea:ema(dif,9);
macd:(dif-dea)*2,colorstick;
swiftk:='macd.macd' * ref('macd.macd',1)<0;
earlyday_1:=barslast(ref(swiftk,1));
earlyday_2:=barslast(ref(swiftk,2));
earlyday_3:=barslast(ref(swiftk,3));
earlyday_4:=barslast(ref(swiftk,4));
earlyday_5:=barslast(ref(swiftk,5));
clow_0:=ref(llv(min(o,c),earlyday_5-earlyday_4-1),earlyday_4+2);
clow_1:=ref(llv(min(o,c),earlyday_3-earlyday_2-1),earlyday_2+2);
clow_2:=llv(min(o,c),earlyday_1);
difflow_0:=ref(llv('macd.diff',earlyday_5-earlyday_4-1),earlyday_4+2);
difflow_1:=ref(llv('macd.diff',earlyday_3-earlyday_2-1),earlyday_2+2);
difflow_2:=llv('macd.diff',earlyday_1);
钝化l:=
'macd.macd'<0 and (
(intpart(difflow_2)-intpart(difflow_1)>0 and clow_1>clow_2) or
(intpart(difflow_2)-intpart(difflow_0)>0 and clow_0>clow_2)
);
结构l:=
'macd.macd'<0 and intpart('macd.diff')>ref(intpart('macd.diff'),1) and (
(intpart(difflow_2)-intpart(difflow_1)>0 and clow_1>clow_2 and intpart('macd.diff')>intpart(difflow_2)) or
(intpart(difflow_2)-intpart(difflow_0)>0 and clow_0>clow_2 and intpart('macd.diff')>intpart(difflow_2))
);
drawtext(钝化l,'macd.diff','l');
drawicon(结构l,'macd.diff',4);
chigh_0:=ref(hhv(max(o,c),earlyday_5-earlyday_4-1),earlyday_4+2);
chigh_1:=ref(hhv(max(o,c),earlyday_3-earlyday_2-1),earlyday_2+2);
chigh_2:=hhv(max(o,c),earlyday_1);
diffhigh_0:=ref(hhv('macd.diff',earlyday_5-earlyday_4-1),earlyday_4+2);
diffhigh_1:=ref(hhv('macd.diff',earlyday_3-earlyday_2-1),earlyday_2+2);
diffhigh_2:=hhv('macd.diff',earlyday_1);
钝化h:=
'macd.macd'>0 and (
(intpart(diffhigh_2)-intpart(diffhigh_1)<0 and chigh_1<chigh_2) or
(intpart(diffhigh_2)-intpart(diffhigh_0)<0 and chigh_0<chigh_2)
);
结构h:=
'macd.macd'>0 and intpart('macd.diff')<ref(intpart('macd.diff'),1) and(
(intpart(diffhigh_2)-intpart(diffhigh_1)<0 and chigh_1<chigh_2 and intpart('macd.diff')<intpart(diffhigh_2)) or
(intpart(diffhigh_2)-intpart(diffhigh_0)<0 and chigh_0<chigh_2 and intpart('macd.diff')<intpart(diffhigh_2))
);
drawtext(钝化h,'macd.diff'*1.02,'h'),colorgreen;
drawicon(结构h,'macd.diff',5),colorgreen;
上一指标公式:发自用主图不赚钱你抽我适用股市期货详解 飞狐公式不赚钱
下一指标公式:三角洲预测主图大智慧详解 飞狐大智慧源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD顶底钝化改通达信能通过不显示钝化H指示求大师帮忙详解 飞狐指示仅供学习研究。