macd能量指标
用法:c1线上穿c3线且有支撑跟进,c1线下穿c3线且有阻力减仓。
n:=if(barscount(c)>=10,10,barscount(c));
stickline(c>=ma(c,n),ma(c,n),ma(c,n*0.7),4,0),colormagenta;
stickline(c<ma(c,n),ma(c,n),ma(c,n*0.7),4,0),coloryellow;
drawkline(h,o,l,c);
n:=3;
l0:=0.00;
l1:=abs(l-ref(l,1))<=l0;
l2:=abs(l-ref(l,2))<=l0;
l3:=abs(l-ref(l,3))<=l0;
l4:=abs(l-ref(l,4))<=l0;
l5:=abs(l-ref(l,5))<=l0;
精准线首次:=l1 or l2 or l3 or l4 or l5;
精准左:=filter(精准线首次,n) ;
天数:=barslast(精准左);
lts:=ref(l,天数);
精准右:=abs(l-lts)<=l0;
stickline(精准左,l,l,50,-1),color8080ff;
g1:=abs(h-ref(h,1))<=l0;
g2:=abs(h-ref(h,2))<=l0;
g3:=abs(h-ref(h,3))<=l0;
g4:=abs(h-ref(h,4))<=l0;
g5:=abs(h-ref(h,5))<=l0;
g6:=abs(h-ref(h,6))<=l0;
g7:=abs(h-ref(h,7))<=l0;
g8:=abs(h-ref(h,8))<=l0;
精准线1首次:=g1 or g2 or g3 or g4 or g5 or g6 or g7 or g8;
精准左1:=filter(精准线1首次,n) ;
天数1:=barslast(精准左1);
gts:=ref(l,天数1);
精准右1:=abs(h-lts)<=l0;
stickline(精准左1,h,h,50,-1),color00ff00;
a:=ema(c,14),colorwhite,linethick1;
b:=(a-ref(a,1))/ref(a,1)*100,nodraw;
支撑:if(b>=0,ref(ema(c,14),barslast(cross(b,0))+1),drawnull),colorred,linethick2;
阻力:if(b<0,ref(ema(c,14),barslast(cross(0,b))+1),drawnull),colorgreen,linethick2;
typ := (if(isnull(high),close,high) + if(isnull(low),close,low) + close)/3;
ci:(typ-ma(typ,30))/(0.015*avedev(typ,30));
c2:ma(ci,4);
c3:ma(ci,10),linethick2;;
fillrgn(ci,c2,ci>c2,rgb(0,255,0,),ci<c2,colorblack);
fillrgn(ci,c3,ci>c3,rgb(255,0,0,),ci<c3,colorblack);
lc := ref(close,1);
di:=(ema(close,12) - ema(close,26))*200;
de:=ema(di,9);
macd:=2*(di-de);
rsv:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*400-200;
stickline(macd>0 and macd>ref(macd,1),macd,0,8,0),color0000aa;
stickline(macd>0 and macd<ref(macd,1),macd,0,8,0),color0090ff;
stickline(macd<0 and macd<ref(macd,1),macd,0,8,0),colorff0000;
stickline(macd<0 and macd>ref(macd,1),macd,0,8,0),colorff00a9;
a1:=(ema(amount/v/100,5)-ema(amount/v/100,10))/max(ema(amount/v/100,5),ema(amount/v/100,10))*100;
a2:=(ema(amount/v/100,5)-ema(amount/v/100,22))/max(ema(amount/v/100,5),ema(amount/v/100,22))*100;
a3:=(ema(amount/v/100,5)-ema(amount/v/100,44))/max(ema(amount/v/100,5),ema(amount/v/100,44))*100;
a4:=(ema(amount/v/100,5)-ema(amount/v/100,88))/max(ema(amount/v/100,5),ema(amount/v/100,88))*100;
a5:=(ema(amount/v/100,5)-ema(amount/v/100,176))/max(ema(amount/v/100,5),ema(amount/v/100,176))*100;
a6:=(ema(amount/v/100,5)-ema(amount/v/100,352))/max(ema(amount/v/100,5),ema(amount/v/100,352))*100;
a7:=(ema(amount,5)-ema(amount,10))/max(ema(amount,5),ema(amount,10))*10;
a8:=(ema(amount,5)-ema(amount,22))/max(ema(amount,5),ema(amount,22))*10;
a9:=(ema(amount,5)-ema(amount,44))/max(ema(amount,5),ema(amount,44))*10;
a10:=(ema(amount,5)-ema(amount,88))/max(ema(amount,5),ema(amount,88))*10;
a11:=(ema(amount,5)-ema(amount,176))/max(ema(amount,5),ema(amount,176))*10;
a11:=(ema(amount,5)-ema(amount,352))/max(ema(amount,5),ema(amount,352))*10;
b1:=a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11;
b2:=ema(b1,5);
b3:=ema(b1,30);
partline(b1,b1>ref(b1,1),rgb(255,0,255),b1<=ref(b1,1),rgb(0,255,0)),linethick1;
partline(b2,b2>ref(b2,1),rgb(255,0,0),b2<=ref(b2,1),rgb(0,255,0)),linethick1;
partline(b3,b3>ref(b3,1),rgb(255,0,0),b3<=ref(b3,1),rgb(0,255,0)),linethick2;
上一指标公式:变异多空趋势指标公式详解 同花顺多空趋势
下一指标公式:黄金分割多空K线指标公式详解 同花顺黄金分割
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD能量指标公式详解 同花顺指标MACD仅供学习研究。