顶底四区主图附源码实测图高中低一目了然指标
顶底四区主图(通达信公式 主图 源码 测试图)高中低一目了然
{input:n(1,250,120);}
drawgbk(c>0, rgb(0,10,10),rgb(88,0,0),0,'11',0);
n8:=strcat(con2str(year,0),' 年 ');
y8:=strcat(con2str(month,0),' 月 ');
r8:=strcat(con2str(day,0),' 日 ');
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;
sj8:=strcat(strcat(n8,y8), r8);
gd4:=if(currbarscount<=n/2,gd,drawnull);
drawband(gd4,rgb(0,0,250),dd+kj/2,rgb(0,0,0));{该行设置背景色}
平衡: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/2 and cross(平衡,low),1,drawnull),colorff8899,nodraw;
低涨:if(currbarscount<=n,(c/llv(low,k)-1)*100,drawnull),color0000ff,nodraw;
天:barslast(l=dd),color00ffff,nodraw;
ma5:ma(close,5),colorgreen;
ma10:ma(close,10),color00ffff;
ma20:ma(c,20),colorff00ff;
ma60:ma(c,60),colorred;
高:if(currbarscount<=n,gd,drawnull),color00ffff,pointdot;
低:if(currbarscount<=n,dd,drawnull),color00ff00,pointdot;
{以下设置主图显示方式}
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;
drawkline(high,open,low,close);
drawicon(低吸,low,13);
{以下设置提示文字部分}
drawtext_fix(c>0,0.5,0,0,sj8),color00ffff;
drawtext(currbarscount=1,压力,'0.809'),color0000ff;
drawtext(currbarscount=1,平衡,'0.500'),colorffffff;
drawtext(currbarscount=1,支撑,'0.191'),color00ffff;
drawtext(currbarscount=n/2+9,gd-kj/12,'★ 强势区域—急拉减仓!'),colorred;
drawtext(currbarscount=n/2+9,gd-kj/3,'● 震荡整理—寻机低吸!'),colorffff00;
drawtext(currbarscount=n/2+9,dd+kj/3,'◆ 反弹中轨—逢高休息!'),color00ffff;
drawtext(currbarscount=n/2+9,dd+kj/10,'■ 弱势区域—暂不参与!'),color00ff00;
drawtext(currbarscount=n,gd-kj/12,'■ 目前k线天数:请看参数!'),color0000ff;
drawtext(currbarscount=n,压力,'■ 建议查阅k线:短线30天,中长线120天!'),colorff8899;
超b:=l2_amo(0,2)/10000.0;
大b:=l2_amo(1,2)/10000.0;
中b:=l2_amo(2,2)/10000.0;
小b:=l2_amo(3,2)/10000.0;
超s:=l2_amo(0,3)/10000.0;
大s:=l2_amo(1,3)/10000.0;
中s:=l2_amo(2,3)/10000.0;
小s:=l2_amo(3,3)/10000.0;
testskip(not(超b or 大b or 中b or 小b or 超s or 大s or 中s or 小s)!=0);
大宗进:=(超b)+(大b),nodraw;
大宗出:=(超s)+(大s),nodraw;
非大宗进:=(中b)+(小b),nodraw;
非大宗出:=(中s)+(小s),nodraw;
dazhiv:=const(max(abs(大宗进),max(abs(大宗出),max(abs(非大宗进),abs(非大宗出))))),nodraw;
drawrectrel(0,const(950-(abs(大宗进)*250/dazhiv))-20,30,950,if(const(大宗进>0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(32,const(950-(abs(大宗出)*250/dazhiv))-20,62,950,if(const(大宗出>0),rgb(23,125,255),rgb(255,0,0)));
drawrectrel(92,const(950-(abs(非大宗进)*250/dazhiv))-20,122,950,if(const(非大宗进>0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(124,const(950-(abs(非大宗出)*250/dazhiv))-20,154,950,if(const(非大宗出>0),rgb(23,125,255),rgb(255,0,0)));
drawtext_fix(currbarscount=1,0.005,1,0,'主力 进出'),colormagenta;
drawtext_fix(currbarscount=1,0.097,1,0,'散户 进出'),colorcyan;
z1:=strcat(hyblock,' ');
z2:=strcat(z1,dyblock);
z3:=strcat(z2,' ');
drawtext_fix(islastbar,0,10,0,strcat(z3,gnblock)),coloryellow;
drawtext_fix(1,0.00,0.00,0,'主题投资:')color0000ff;
drawtext_fix(1,0.07,0.00,0,externstr(0,1))color0000ff;
drawtext_fix(1,0.00,0.08,0,'主营业务:')colorff00ff;
drawtext_fix(1,0.07,0.08,0,externstr(0,2))colorff00ff;
{基本面}
drawtext_fix(1,0,0.07,0,'地区: '),color99cc32;drawtext_fix(1,0.04,0.07,0,dyblock),color99cc32;
drawtext_fix(1,0.11,0.07,0,'行业: '),colorgreen;drawtext_fix(1,0.15,0.07,0,hyblock),colorgreen;
drawtext_fix(1,0.22,0.07,0,'概念: '),colorff00ff;drawtext_fix(1,0.26,0.07,0,gnblock),colorff00ff;
drawtext_fix(1,0,0,0,'主营同比:'),colorwhite;
drawnumber_fix(1,0.075,0,0,const(finance(44))),colorff00ff;
drawtext_fix(1,0.14,0,0,'毛利率:'),coloryellow;
drawnumber_fix(1,0.2,0,0,const((finance(20)-finance(21))/finance(20))*100),colorff00ff;
drawtext_fix(1,0.265,0,0,'净益率:'),color99cc32;
drawnumber_fix(1,0.32,0,0,const(finance(30)/finance(19)*100)),colorff00ff;
drawtext_fix(1,0.37,0,0,'净利同比:'),color99cc32;
drawnumber_fix(1,0.445,0,0,const(finance(43))),coloryellow;
drawtext_fix(1,0.52,0,0,'净利润:'),colorwhite;
drawnumber_fix(1,0.577,0,0,const(finance(30)/10000)),colorff00ff;
上一指标公式:涨停回踩反弹选股公式下载
下一指标公式:通达信公式小股民买卖雷达助操底逃顶副图附效果图指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文顶底四区主图附源码实测图高中低一目了然指标下载仅供学习研究。