通达信增减持布林线主图指标 源码

Z1:=STRCAT(HYBLOCK,' ');
 Z2:=STRCAT(Z1,DYBLOCK);
 Z3:=STRCAT(Z2,' ');
 DRAWTEXT_FIX(1,0.00,0.21,0,'概念版块:')COLORFFFF00;
 DRAWTEXT_FIX(ISLASTBAR,0.06,0.21,0,STRCAT(Z3,GNBLOCK)),COLORFFFF00;
 DRAWTEXT_FIX(FINANCE(51)<>0,0.95,0.45,0,'含可转债')COLORYELLOW;

DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;
 DRAWTEXT_FIX(1,0.06,0.00,0,EXTERNSTR(0,2))COLOR0000FF;
 DRAWTEXT_FIX(1,0.00,0.07,0,'主营业务:')COLORFF00FF;
 DRAWTEXT_FIX(1,0.06,0.07,0,EXTERNSTR(0,1))COLORFF00FF;
 DRAWTEXT_FIX(1,0.00,0.14,0,'公司亮点:')COLOR00FF00;
 DRAWTEXT_FIX(1,0.06,0.14,0,EXTERNSTR(0,10))COLOR00FF00;

BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
 XA_1:=IF(DATE<=1200823,1,0);
 STICKLINE((C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1,O,C,2,0),COLORFF00FF;
 STICKLINE((C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,2,0),COLOR00FF00;
 STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),C,O,2,0),COLORFF00FF;
 STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),C,O,2,0),COLOR00FF00;
流通市值:(FINANCE(40)/100000000),NODRAW,COLORRED;

布林线:MA(CLOSE,20),COLORYELLOW,LINETHICK2;
上轨:布林线+2*STD(CLOSE,20),COLORGREEN,LINETHICK2;
下轨:布林线-2*STD(CLOSE,20),COLORCYAN,LINETHICK2;


 MA5:EMA(CLOSE,4),COLORWHITE,LINETHICK1;
 MA10:EMA(CLOSE,12),COLORMAGENTA,LINETHICK1;

{大宗增减持}
大宗:=GPJYVALUE(4,2,0);
 DRAWTEXT(大宗>0,L*0.99,'大宗'),COLORWHITE;

增减持价格:=GPJYVALUE(5,1,0),;
 DRAWNUMBER(增减持价格,L*0.96,增减持价格),COLORMAGENTA;

增减持:=GPJYVALUE(5,2,0)/10000;

DRAWTEXT(增减持>0,L*1,'增'),COLORYELLOW;
 DRAWTEXT(增减持>0,L*0.97,'持'),COLORYELLOW;
 DRAWNUMBER(增减持>0,L*0.96,增减持),COLORYELLOW;

DRAWTEXT(增减持<0,L*1,'减'),COLORGREEN;
 DRAWTEXT(增减持<0,L*0.97,'持'),COLORGREEN;
 DRAWNUMBER(增减持<0,L*0.96,增减持),COLORGREEN;




未来函数检测结果如下:
该公式包含未来函数:FINANCE

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

Z1赋值:STRCAT(HYBLOCK,' ')
 Z2赋值:STRCAT(Z1,DYBLOCK)
 Z3赋值:STRCAT(Z2,' ')
当满足条件1时,在横轴0.00纵轴0.21位置书写文字
 DRAWTEXT_FIX(ISLASTBAR,0.06,0.21,0,STRCAT(Z3,GNBLOCK)),COLORFFFF00
 DRAWTEXT_FIX(FINANCE(51)<>0,0.95,0.45,0,'含可转债')画黄色
当满足条件1时,在横轴0.00纵轴0.00位置书写文字
 DRAWTEXT_FIX(1,0.06,0.00,0,EXTERNSTR(0,2))COLOR0000FF
当满足条件1时,在横轴0.00纵轴0.07位置书写文字
 DRAWTEXT_FIX(1,0.06,0.07,0,EXTERNSTR(0,1))COLORFF00FF
当满足条件1时,在横轴0.00纵轴0.14位置书写文字
 DRAWTEXT_FIX(1,0.06,0.14,0,EXTERNSTR(0,10))COLOR00FF00

BK赋值:IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)))
如果日期<=1200823返回1否则返回0
 STICKLINE((C>=ZTPRICE(1日前的收盘价,0.1) AND C=H) AND XA_1=1,O,C,2,0),COLORFF00FF
 STICKLINE((C<=DTPRICE(1日前的收盘价,0.1) AND C=L) AND XA_1=1,O,C,2,0),COLOR00FF00
 STICKLINE((C>=ZTPRICE(1日前的C,BK) AND C=H),C,O,2,0),COLORFF00FF
 STICKLINE((C<=DTPRICE(1日前的C,BK) AND C=L),C,O,2,0),COLOR00FF00
输出流通市值:(FINANCE(40)/100000000),NODRAW,画红色
输出

布林线:收盘价的20日简单移动平均,画黄色, 线宽为2
输出上轨:布林线+2*收盘价的20估算标准差,画绿色, 线宽为2
输出下轨:布林线-2*收盘价的20估算标准差,画青色, 线宽为2
输出

 MA5:收盘价的4日指数移动平均,画白色, 线宽为1
 输出MA10:收盘价的12日指数移动平均,画洋红色, 线宽为1

{大宗增减持} 大宗赋值:GPJYVALUE(4,2,0)
当满足条件大宗>0时,在L*0.99和'大宗'位置书写文字

增减持价格赋值:GPJYVALUE(5,1,0),
 DRAWNUMBER(增减持价格,L*0.96,增减持价格),画洋红色

增减持赋值:GPJYVALUE(5,2,0)/10000
当满足条件增减持>0时,在L*1和'增'位置书写文字
当满足条件增减持>0时,在L*0.97和'持'位置书写文字
 DRAWNUMBER(增减持>0,L*0.96,增减持),画黄色
当满足条件增减持<0时,在L*1和'减'位置书写文字
当满足条件增减持<0时,在L*0.97和'持'位置书写文字
 DRAWNUMBER(增减持<0,L*0.96,增减持),画绿色


指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图