高1:=ref(hhv(h,150),3);
低1:=ref(llv(l,150),3);
h11:=高1-(高1-低1)*0.191;
h12:=高1-(高1-低1)*0.382;
h3:=高1-(高1-低1)*0.5;
h4:=高1-(高1-低1)*0.618;
h5:=高1-(高1-低1)*0.809;
h1:ema(ema(close,3),3),coloryellow,linethick1;
h2:ema(h1,18),coloryellow,linethick1;
h1升:if(h1>ref(h1,1),h1,drawnull),colormagenta,linethick3;
h1降:if(h1<ref(h1,1),h1,drawnull),colorgreen,linethick3;
h2升:if(h2>ref(h2,1),h2,drawnull),colorred,linethick1;
h2降:if(h2<ref(h2,1),h2,drawnull),colorgreen,linethick1;
突破:ref(ema(c,14),1),colormagenta,linethick1;
a1x:=(ema(c,14)-突破)/突破*100;//www.goodgongshi.com
出击:if(a1x>=0,ref(ema(c,14),barslast(cross(a1x,0))+1),drawnull),colormagenta,linethick1;
休假:if(a1x<0,ref(ema(c,14),barslast(cross(0,a1x))+1),drawnull),colorgreen,linethick1;
stickline(a1x>=0,出击,突破,0,-1),colorred;
stickline(a1x<0,休假,突破,0,-1),colorgreen;
趋势分界线:if(a1x<0,突破,drawnull),colorgreen,linethick1;
a1:=(ema((open+high+low+close)/4,3)+ema((open+high+low+close)/4,6)+ema((open+high+low+close)/4,9))/3;
a2:=(ema((open+high+low+close)/4,5)+ema((open+high+low+close)/4,10)+ema((open+high+low+close)/4,20))/3;
a3:=(ema((open+high+low+close)/4,7)+ema((open+high+low+close)/4,14)+ema((open+high+low+close)/4,28))/3;
a4:=(ema((open+high+low+close)/4,9)+ema((open+high+low+close)/4,18)+ema((open+high+low+close)/4,36))/3;
a5:=(ema((open+high+low+close)/4,11)+ema((open+high+low+close)/4,22)+ema((open+high+low+close)/4,44))/3;
a6:=(ema((open+high+low+close)/4,13)+ema((open+high+low+close)/4,26)+ema((open+high+low+close)/4,52))/3;
a7:=(ema((open+high+low+close)/4,21)+ema((open+high+low+close)/4,34)+ema((open+high+low+close)/4,68))/3,linethick3;
ma1:=forcast(a1,6);
//www.goodgongshi.com
ma2:=forcast(a2,6);
ma3:=forcast(a3,6);
ma4:=forcast(a4,6);
ma5:=forcast(a5,6);
ma6:=forcast(a6,6);
ma7:=forcast(a7,6),colorfooffo,linethick2;
partline(ma7,ma7<ref(ma7,1),rgb(0,255,0),ma7>ref(ma7,1),rgb(255,0,255)),dotline;
partline(ma2,ma2<ref(ma2,1),rgb(0,255,0),ma2>ref(ma2,1),rgb(255,0,255)),dotline;
partline(ma3,ma3<ref(ma3,1),rgb(0,255,0),ma3>ref(ma3,1),rgb(255,0,255)),dotline;
partline(ma4,ma4<ref(ma4,1),rgb(0,255,0),ma4>ref(ma4,1),rgb(255,0,255)),dotline;
partline(ma5,ma5<ref(ma5,1),rgb(0,255,0),ma5>ref(ma5,1),rgb(255,0,255)),dotline;
partline(ma6,ma6<ref(ma6,1),rgb(0,255,0),ma6>ref(ma6,1),rgb(255,0,255)),dotline;
partline(ma1,ma1<ref(ma1,1),rgb(0,255,0),ma1>ref(ma1,1),rgb(255,0,255)),dotline,linethick3;
towerc:=forcast(ema((3*close+2*open+high+low)/7,3),6);
directionmax:=max(ref(towerc,1),ref(towerc,1));
directionmin:=min(ref(towerc,1),ref(towerc,1));
stickline(towerc>=ref(towerc,1),towerc,directionmax,18,0),color0000ff;
stickline(towerc<ref(towerc,1),towerc,directionmin,18,0),color00ff00;
jj:=(close+high+low)/3;
a:=ema(jj,5);
b:=ref(a,1);
stickline(a>b ,a ,b ,18 ,0 ),coloryellow;
stickline(a<b ,b ,a ,18 ,0 ),colorblue;
波段:=ema(c,18), colorred,linethick2;
partline(波段,波段>ref(波段,1),rgb(250,10,10),波段<=ref(波段,1),rgb(250,250,250)),linethick3;
k:=ema(波段,5);
d:=ema(k,5);
partline(k,k>d,colorred,k<d,coloryellow),linethick3;
var3:=zig(3,4.88)<ref(zig(3,4.88),1) and ref(zig(3,4.88),1)>ref(zig(3,4.88),2);
var4:=zig(3,4.88)>ref(zig(3,4.88),1) and ref(zig(3,4.88),1)<ref(zig(3,4.88),2);
stickline(var3,c,o,8,0),color00ff00;
stickline(var3,c,o,5,0),color00ff00;
stickline(var3,h,l,2,0),color00ff00;
var9:=zig(3,8.88)<ref(zig(3,8.88),1) and ref(zig(3,8.88),1)>ref(zig(3,8.88),2);
var10:=zig(3,8.88)>ref(zig(3,8.88),1) and ref(zig(3,8.88),1)<ref(zig(3,8.88),2);
drawtext(var9,h*1.007,'强上阻力■'),color00ff00;
drawtext(var10,l*0.993,'强下阻力■■'),color00ffff;
var13:=zig(3,15.88)<ref(zig(3,15.88),1) and ref(zig(3,15.88),1)>ref(zig(3,15.88),2);
var14:=zig(3,15.88)>ref(zig(3,15.88),1) and ref(zig(3,15.88),1)<ref(zig(3,15.88),2);
drawtext(var13,h*1.02,'★★★大逆转 趋势'),color00ff00;
drawtext(var14,l*0.975,'★★★大逆转 趋势'),color00ffff;
var15:=zig(3,0.23)<ref(zig(3,0.23),1) and ref(zig(3,0.23),1)>ref(zig(3,0.23),2);
var16:=zig(3,0.23)>ref(zig(3,0.23),1) and ref(zig(3,0.23),1)<ref(zig(3,0.23),2);
drawicon(var15,h,2);
drawicon(var16,l,1);
上一指标公式:OSC指标公式详解 同花顺指标
下一指标公式:变异KDJ指标公式详解 同花顺变异
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文杨氏趋势波段王指标公式详解 同花顺杨氏趋势仅供学习研究。