c1=(h+l+o+c)/4;
x:if(date>20170701,o[-1],null),colormagenta;
//stickline(ma(c1,1)>ref(ma(c1,1),1),h,ref(ma(c1,1),1),1,1),colorred;
//stickline(ma(c1,1)>ref(ma(c1,1),1),ma(c1,1),ref(ma(c,1),1),9,1),colorred;
//stickline(ma(c1,1)<=ref(ma(c1,1),1),ma(c1,1),ref(ma(c,1),1),9,0),colorcyan;
//stickline(ma(c1,1)<=ref(ma(c1,1),1),l,ref(ma(c1,1),1),1,0),colorcyan;
stickline(ma(c,1)>(ref(ma(c,n),1)+ref(ma(c,n+1),1))/2,l,ref(ma(c,1),1),1,1),colorlired;
stickline(ma(c,1)>(ref(ma(c,n),1)+ref(ma(c,n+1),1))/2,h,ref(ma(c,1),1),1,1),colorred;
stickline(ma(c,1)>(ref(ma(c,n),1)+ref(ma(c,n+1),1))/2,ma(c,1),ref(ma(c,1),1),9,1),colorred;
//stickline(ma(c,1)>(ref(ma(c,n),1)+ref(ma(c,n+1),1))/2,ma(c,1),ref(ma(c,1),1),4,0),coloryellow;
stickline(ma(c,1)<=(ref(ma(c,n),1)+ref(ma(c,n+1),1))/2,ma(c,1),ref(ma(c,1),1),9,0),colorcyan;
stickline(ma(c,1)<=(ref(ma(c,n),1)+ref(ma(c,n+1),1))/2,l,ref(ma(c,1),1),1,0),colorgreen;
stickline(ma(c,1)<=(ref(ma(c,n),1)+ref(ma(c,n+1),1))/2,h,ref(ma(c,1),1),1,0),colorcyan;
y1:if(date>19930101,sma((h+c+l+o)/4,4,1),null),colorwhite;
y2:if(date>19930101,sma((h+c+l+o)/4,12,1),null),coloryellow;
y3:if(date>19930101,sma((h+c+l+o)/4,20,1),null),colorgreen;
y4:if(date>19930101,sma((h+c+l+o)/4,34,1),null),colorcyan;
y5:if(date>19930101,sma((h+c+l+o)/4,45,1),null),colorlired;
y6:if(date>19930101,sma((h+c+l+o)/4,67,1),null),colorblue;
//horline(date>=20170701 and date<=20170731 and c>y1 and c>x and c>o,(h[n]+c[n]+l[n]+o[n])/4,2,2),colorgreen;
k1:=ma(c,15,1),colorwhite;
k2:=ma(c,20,1),colorgreen,linethick2;
k3:=ma(c,45,1),coloryellow;
k4:=ma(c,67,1),colorcyan;
b:=(k2-ref(k2,1))/ref(k2,1)*100,nodraw;
支撑:if(b>=0,ref(k2*0.99,barslast(cross(b,0))+1),drawnull),colorgreen,linethick1;
阻力:if(b<0,ref(k2*1.01,barslast(cross(0,b))+1),drawnull),colorwhite,linethick1;
stickline(cross(b,0),k2,支撑,6,0),coloryellow,linethick1;
stickline(cross(0,b),k2,阻力,6,0),colormagenta,linethick1;
drawnumber(cross(b,0),k2*0.98,tostring(o,2)),colorgreen;
drawnumber(cross(0,b),k2*1.03,tostring(o,2)),colorwhite;
百分率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.9,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,20),2);
drawtext_fix(islastbar,0.9,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.9,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.9,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;
上一指标公式:决胜拐点指标公式详解 同花顺拐点
下一指标公式:OBVB指标公式详解 同花顺OBVB
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文DATA3指标公式详解 同花顺DATA3仅供学习研究。