y1:=(c+c[1]+c[2]+c[3]+c[4]+c[5]+c[6]+c[7]+c[8]+c[9]+c[10]+c[11]+c[12]+c[13]+c[14]+c[15]+c[16]+c[17]+c[18]+c[19]+c[20]+c[21]+c[22]+c[23]+c[24]+c[25]+c[26]+c[27]+c[28]+c[29]+c[30]+c[31]+c[32]+c[33]+c[34]+c[35]+c[36]+c[37]+c[38]+c[39]+c[40]+c[41]+c[42]+c[43]+c[44]+c[45]+c[46]+c[47]+c[48]+c[49]+c[50]+c[51]+c[52]+c[53]+c[54]+c[55]+c[56]+c[57]+c[58]+c[59]+c[60]+c[61]+c[62]+c[63]+c[64]+c[65]+c[66])/67,colormagenta;
x1:=(o+o[1]+o[2]+o[3]+o[4]+o[5]+o[6]+o[7]+o[8]+o[9]+o[10]+o[11]+o[12]+o[13]+o[14]+o[15]+o[16]+o[17]+o[18]+o[19]+o[20]+o[21]+o[22]+o[23]+o[24]+o[25]+o[26]+o[27]+o[28]+o[29]+o[30]+o[31]+o[32]+o[33]+o[34]+o[35]+o[36]+o[37]+o[38]+o[39]+o[40]+o[41]+o[42]+o[43]+o[44]+o[45]+o[46]+o[47]+o[48]+o[49]+o[50]+o[51]+o[52]+o[53]+o[54]+o[55]+o[56]+o[57]+o[58]+o[59]+o[60]+o[61]+o[62]+o[63]+o[64]+o[65]+o[66])/67,coloryellow;
z1:=(h+h[1]+h[2]+h[3]+h[4]+h[5]+h[6]+h[7]+h[8]+h[9]+h[10]+h[11]+h[12]+h[13]+h[14]+h[15]+h[16]+h[17]+h[18]+h[19]+h[20]+h[21]+h[22]+h[23]+h[24]+h[25]+h[26]+h[27]+h[28]+h[29]+h[30]+h[31]+h[32]+h[33]+h[34]+h[35]+h[36]+h[37]+h[38]+h[39]+h[40]+h[41]+h[42]+h[43]+h[44]+h[45]+h[46]+h[47]+h[48]+h[49]+h[50]+h[51]+h[52]+h[53]+h[54]+h[55]+h[56]+h[57]+h[58]+h[59]+h[60]+h[61]+h[62]+h[63]+h[64]+h[65]+h[66])/67,colorcyan;
e1:=(l+l[1]+l[2]+l[3]+l[4]+l[5]+l[6]+l[7]+l[8]+l[9]+l[10]+l[11]+l[12]+l[13]+l[14]+l[15]+l[16]+l[17]+l[18]+l[19]+l[20]+l[21]+l[22]+l[23]+l[24]+l[25]+l[26]+l[27]+l[28]+l[29]+l[30]+l[31]+l[32]+l[33]+l[34]+l[35]+l[36]+l[37]+l[38]+l[39]+l[40]+l[41]+l[42]+l[43]+l[44]+l[45]+l[46]+l[47]+l[48]+l[49]+l[50]+l[51]+l[52]+l[53]+l[54]+l[55]+l[56]+l[57]+l[58]+l[59]+l[60]+l[61]+l[62]+l[63]+l[64]+l[65]+l[66])/67,colorgreen;
q:=(y1+x1+z1+e1)/4;
r:sma((c+o+h+l)/4,10,1)-sma(q,23,1),colorwhite,linethick1;
r1:sma(r,10,1),colormagenta,;
macd:1.6*(r-r1),colorstick;
z:0,coloryellow;
//stickline(ma(c,1)>ref(ma(c,1),1),l,ref(ma(c,1),1),1,1),colorlired;
stickline(ma(c,1)>ref(ma(c,1),1),h-q,ref(ma(c,1),1)-q,2,1),colorred;
stickline(ma(c,1)>ref(ma(c,1),1),ma(c,1)-q,ref(ma(c,1),1)-q,10,1),colorred;
stickline(ma(c,1)<=ref(ma(c,1),1),ma(c,1)-q,ref(ma(c,1),1)-q,10,0),colorcyan;
stickline(ma(c,1)<=ref(ma(c,1),1),l-q,ref(ma(c,1),1)-q,2,0),colorcyan;
//stickline(ma(c,1)<=ref(ma(c,1),1),h,ref(ma(c,1),1),1,0),colorlicyan;
m0:=zig(0,a)-0.01,colorlired;
m1:=zig(1,a)+0.02,coloryellow;
m2:=zig(2,a)-0.02,colorgreen,linethick2;
m3:=zig(3,a)+0.01,colorcyan;
//m5:if(zig(3,5)>ref(zig(3,5),1),zig(3,5)+0.1,zig(3,5)-0.1),colorwhite;
b:=(m2-ref(m2,1))/ref(m2,1)*100,nodraw;
b1:=(m1-ref(m1,1))/ref(m1,1)*100,nodraw;
支撑:=if(b>0,ref(m2-0.02,barslast(cross(b,0))+1),drawnull),colorligreen,linethick1;
阻力:=if(b<=0,ref(m2+0.02,barslast(cross(0,b))+1),drawnull),colormagenta,linethick1;
下枢:=if(b1>0,ref(m1-0.02,barslast(cross(b1,0))+1),drawnull),colorligray,linethick1;
上枢:=if(b1<=0,ref(m1+0.02,barslast(cross(0,b1))+1),drawnull),colorlired,linethick1;
drawtext(cross(zig(3,13),ref(zig(3,13),1)),(l-q)-0.5,'bu□') ,linethick1,coloryellow;
drawtext(cross(ref(zig(3,13),1),zig(3,13)),(h-q)+0.5,'■se'),colorgreen;
{drawnumber(cross(zig(3,13),ref(zig(3,13),1)),(l-q)+0.25,tostring(o,2)),colorgreen;}
{drawnumber(cross(ref(zig(3,13),1),zig(3,13)),(h-q)+0.25,tostring(o,2)),colorcyan;}
//fillrgn(z1,e1,z1>=e1 and m2>=m2[1],colorlired,z1<e1 and m2<m2[1],colorligreen);
tiptext(cross(m3,ref(m3,1)),(l-q)-0.8,tostring(o,2)) ,linethick1,coloryellow;
tiptext(cross(ref(m3,1),m3),(h-q)+0.8,tostring(c,2)),colorgreen;
tiptext(cross(m2,ref(m2,1)),(l-q)-1,tostring(o,2)) ,linethick1,colorlired;
tiptext(cross(ref(m2,1),m2),(h-q)+1,tostring(c,2)),colormagenta;
drawicon(m1>=ref(m1,1) and cross(r,r1),r1+0.03,14);
drawicon(m1<ref(m1,1) and cross(r1,r),r+0.03,13);
百分率1:=tostring(支撑/ref(peak(3,a,1),1)-1,3);
drawtext_fix(islastbar,0.92,0.35,0,百分率1),colorcyan;
百分率2:=tostring(c/支撑-1,3);
drawtext_fix(islastbar,0.925,0.3,0,百分率2),colorlired;
百分率3:=tostring(c/阻力-1,3);
drawtext_fix(islastbar,0.97,0.45,0,百分率3),colorgreen;
百分率4:=tostring(c/支撑-2+支撑/ref(peak(3,a,1),1),3);
drawtext_fix(islastbar,0.925,0.4,0,百分率4),coloryellow;
百分率5:=tostring((abs(支撑/ref(peak(3,a,1),1)-1)*0.6+1)*支撑,2);
drawtext_fix(islastbar,0.925,0.45,0,百分率5),colorlired;
百分率6:=tostring(c-ma(c,5),2);
drawtext_fix(islastbar,0.925,0.05,0,百分率6),colorwhite;
百分率7:=tostring(c-ma(c,12),2);
drawtext_fix(islastbar,0.95,0.05,0,百分率7),coloryellow;
百分率8:=tostring(c-ma(c,22),2);
drawtext_fix(islastbar,0.925,0.1,0,百分率8),colorgreen;
百分率9:=tostring(c-ma(c,34),2);
drawtext_fix(islastbar,0.95,0.1,0,百分率9),colorcyan;
百分率10:=tostring(c-ma(c,45),2);
drawtext_fix(islastbar,0.925,0.15,0,百分率10),coloryellow;
百分率11:=tostring(c-ma(c,67),2);
drawtext_fix(islastbar,0.95,0.15,0,百分率11),colormagenta;
百分率12:=tostring(c-ma(c,90),2);
drawtext_fix(islastbar,0.925,0.20,0,百分率12),colorliblue;
百分率13:=tostring(c-ma(c,265),2);
drawtext_fix(islastbar,0.95,0.20,0,百分率13),colorgreen;
s1:=tostring((h+l+c+o)/4,2);
drawtext_fix(islastbar,0.8,0.00,0,s1),coloryellow;
s2:=tostring(c-(h+l+c+o)/4,3);
drawtext_fix(islastbar,0.83,0.05,0,s2),colorgreen;
s3:=tostring((h[1]+l[1]+c[1]+o[1])/4,2);
drawtext_fix(islastbar,0.8,0.10,0,s3),coloryellow;
s4:=tostring(c-(h[1]+l[1]+c[1]+o[1])/4,3);
drawtext_fix(islastbar,0.83,0.15,0,s4),colorgreen;
s5:=tostring((h[2]+l[2]+c[2]+o[2])/4,2);
drawtext_fix(islastbar,0.8,0.20,0,s5),coloryellow;
s6:=tostring(c-(h[2]+l[2]+c[2]+o[2])/4,3);
drawtext_fix(islastbar,0.83,0.25,0,s6),colorgreen;
s7:=tostring((h[3]+l[3]+c[3]+o[3])/4,2);
drawtext_fix(islastbar,0.8,0.30,0,s7),coloryellow;
s8:=tostring(c-(h[3]+l[3]+c[3]+o[3])/4,3);
drawtext_fix(islastbar,0.83,0.35,0,s8),colorgreen;
s9:=tostring((h[4]+l[4]+c[4]+o[4])/4,2);
drawtext_fix(islastbar,0.8,0.4,0,s9),coloryellow;
s10:=tostring(c-(h[4]+l[4]+c[4]+o[4])/4,3);
drawtext_fix(islastbar,0.83,0.45,0,s10),colorgreen;
s11:=tostring(5*c-(h+l+c+o)/4-(h[1]+l[1]+c[1]+o[1])/4-(h[2]+l[2]+c[2]+o[2])/4-(h[3]+l[3]+c[3]+o[3])/4-(h[4]+l[4]+c[4]+o[4])/4,3);
drawtext_fix(islastbar,0.8,0.5,0,s11),colormagenta;
drawgbklast(close>0,strip(rgb(0,0,0),rgb(0,0,0),0));
上一指标公式:趋势优化指标公式详解 同花顺指标趋势
下一指标公式:金山MACD指标公式详解 同花顺金山
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文支撑阻力指标公式详解 同花顺阻力仅供学习研究。