通达信增减持布林线主图指标公式

[复制链接]
查看83 | 回复0 | 2021-8-20 20:02:24 | 显示全部楼层 |阅读模式

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;

202108201212.jpg

202108201212.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则