薛斯通道(平衡、压力、支撑、低涨、彩色k线)
{m1: 80,120,102 m2: 2,20,7 n: 1,1000,120}
aaa:=ma((2*close+high+low)/4,5);
通道1:aaa*m1/100;
通道2:aaa*(200-m1)/100;
ccc:=abs((2*close+high+low)/4-ma(close,20))/ma(close,20);
ddd:=dma(close,ccc);
通道3:(1+m2/100)*ddd;
通道4:(1-m2/100)*ddd;
{bbi}
涨:if(ma(bbi,1)>ref(ma(bbi,1),1),ma(bbi,1),drawnull),colorred,linethick2;
平:if(ma(bbi,1)=ref(ma(bbi,1),1),ma(bbi,1),drawnull),color00ffff,linethick3;
跌:if(ma(bbi,1)<ref(ma(bbi,1),1),ma(bbi,1),drawnull),colorgreen,linethick2;
k:=barslast(currbarscount=n);
gd:=const(if(islastbar=1,hhv(h,k),0));
dd:=const(if(islastbar=1,llv(l,k),0));
kj:=gd-dd;
gd4:=if(currbarscount<=n/2,gd,drawnull);
平衡:if(currbarscount<=n,dd+kj/2,drawnull),color00ffff,nodraw;
压力:if(currbarscount<=n,gd-kj*0.191,drawnull),colorff00ff,nodraw;
支撑:if(currbarscount<=n,dd+kj*0.191,drawnull),color00ff00,nodraw;
高:if(currbarscount<=n,gd,drawnull),color00ffff,pointdot;
低:if(currbarscount<=n,dd,drawnull),color00ff00,pointdot;
低涨:if(currbarscount<=n,(c/llv(low,k)-1)*100,drawnull),color0000ff,nodraw;
天数:barslast(l=dd),colorcyan,nodraw;
mcst:dma((amount/(vol*100)),vol/capital),colorwhite,pointdot,linethick4;
{以下设置主图显示方式}
stickline(currbarscount=n,gd,dd,0,-1),colorgreen;
stickline(currbarscount=n/2,gd,dd,0,-1),colorgreen;
stickline(currbarscount=1,gd,dd,0,-1),colorgreen;
stickline(currbarscount<=n,平衡,平衡,3,-1),colorwhite;
stickline(currbarscount<=n/2,压力,压力,3,-1),colorred;
stickline(currbarscount<=n/2,支撑,支撑,3,-1),colorgreen;
{彩色k线}
tyx3:=ma(ref(hhv((c+l+o+h)/4,30),1),3);
tyx4:=ma((c+l+o+h)/4,13);
tyx5:=ema((c+l+o+h)/4,21);
{空心红}
stickline(c<tyx5 and c>o,h,l,0,0),colorred;
stickline(c<tyx5 and c>o,c,o,3,1),colorred;
{深绿}
stickline(c<tyx5 and c<o,h,l,0,0),color007700;
stickline(c<tyx5 and c<o,c,o,3,0),color005500;
stickline(c<tyx5 and c<o,c,o,2,0),color006600;
stickline(c<tyx5 and c<o,c,o,1,0),color007700;
{蓝}
stickline(c>tyx5 and c<o,h,l,0,0),colorffdd44;
stickline(c>tyx5 and c<o,c,o,3,0 ),colorff7700;
stickline(c>tyx5 and c<o,c,o,2,0 ),colorffaa22;
stickline(c>tyx5 and c<o,c,o,1 ,0 ),colorffdd44;
{黄}
stickline(c>tyx5 and c>o,h,l,0,0 ),color00eeff;
stickline(c>tyx5 and c>o,c,o,3,0 ),color00aaff;
stickline(c>tyx5 and c>o,c,o,2,0 ),color00ccff;
stickline(c>tyx5 and c>o,c,o,1,0 ),color00eeff;
{粉红}
stickline(c>tyx4 and c>o,h,l,0,0),colorff66aa;
stickline(c>tyx4 and c>o,c,o,3,0 ),colorff11ff;
stickline(c>tyx4 and c>o,c,o,2,0 ),colorff44ff;
stickline(c>tyx4 and c>o,c,o,1,0 ),colorff66ff;
{亮灰}
stickline(c>tyx4 and c<o,h,l,0,0),color999999;
stickline(c>tyx4 and c<o,c,o,3,0),color555555;
stickline(c>tyx4 and c<o,c,o,2,0),color777777;
stickline(c>tyx4 and c<o,c,o,1,0),color999999;
{深红}
stickline(c>tyx3 and c>o,h,l,0,0),color0000dd;
stickline(c>tyx3 and c>o,c,o,3,0),color000099;
stickline(c>tyx3 and c>o,c,o,2,0),color0000bb;
stickline(c>tyx3 and c>o,c,o,1,0),color0000dd;
{涨跌停k线}
stickline((c-ref(c,1))*100/ref(c,1)>=(10-0.01*100/ref(c,1)),open,close,1,0),coloryellow;
stickline((ref(c,1)-c)*100/ref(c,1)>=(10-0.01*100/ref(c,1)),open,close,1,0),colorwhite;
{突破}
stickline(ref(count(c<tyx3,5)=5,1) and c>tyx3 and c>o,c,o,1,0),color00ccff;
上一指标公式:股海寻宝公式下载 通达信寻宝
下一指标公式:波段王版指标详解 通达信源码指标
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文薛斯通道平衡压力支撑低涨彩色K线指标详解 通达信支撑平衡仅供学习研究。