查看: 1604|回复: 0

小技巧:同花顺分时显示概念+涨停变色主图设置

  [复制链接]

719

主题

90

回帖

2万

积分

管理员

积分
20831
发表于 2024-4-19 15:53:48 | 显示全部楼层 |阅读模式

小工具/同花顺主图


640.jpg

之前一直分享的通达信相关技术指标,也有很多朋友用的同花顺看盘,平时我自己看盘通达信和同花顺都在用,今天我就给朋友们分享一个我用的笔记多的主图,主要是方便同花顺显示概念和涨停变色。
看盘的时候还是方便一些,不用按F10 就知道个股概念以及板块。涨停板变色,突出大阳、大阴线,个股股性好坏,一眼就能看出来。涨停多肯定就是股性好

朋友们记得点赞+在看+分享支持仓哥,将带来更多的评测。

指标千千万,专业评测此一家。
设置步骤如下:

一、同花顺分时图:
1、在同花顺找到分时主图,点击黄色的分时均线,出现白色的点点后表示已经选中
640.jpg
2、鼠标右键就会显示上图,点击修改分时走势-更多设置:
640.jpg
3、这下面图标中删除原来代码删掉,
640.jpg
4、复制下面代码,测试公式没问题,确定。
640.jpg

5、公式源码

S1:=BARSLAST(FORMATTIME(1)=1);
竞额:=REF(MONEYFS,S1)/10000;
竞量:=REF(VOL,S1)/100;
DRAWTEXT_FIX(ISLASTBAR,0.65,0.90,0,"竞价金额:"+TOSTRING(竞额,1)+'万'),coloryellow;
DRAWTEXT_FIX(ISLASTBAR,0.65,0.84,0,"竞价手数:"+TOSTRING(竞量,0)+'手'),coloryellow;
上涨家数:=INDEXDATA("1A0002",&RISECOUNT) + INDEXDATA("399002",&RISECOUNT);
下跌家数:=INDEXDATA("1A0002",&FALLCOUNT) + INDEXDATA("399002",&FALLCOUNT);
涨停:=INDEXDATA("1A0002",&RISELIMITCOUNT) + INDEXDATA("399002",&RISELIMITCOUNT);
跌停:=INDEXDATA("1A0002",&FALLLIMITCOUNT) + INDEXDATA("399002",&FALLLIMITCOUNT);
涨:="涨:"+上涨家数+"涨停("+涨停+")";
DRAWTEXT_FIX(ISLASTBAR,0.85,0.65,0,涨),colorred;
跌:="跌:"+下跌家数+"跌停("+跌停+")";
DRAWTEXT_FIX(ISLASTBAR,0.85,0.70,0,跌),colorgreen;
DRAWTEXT_FIX(1,0.85,0.80,0,'流通股:'+TOSTRING(SHGZG/100000000,2)+'亿股'),coloryellow;
DRAWTEXT_FIX(1,0.85,0.85,0,'实际股:'+TOSTRING(ZYLTGB/100000000,2)+'亿股'),colormagenta;
DRAWTEXT_FIX(1,0.85,0.90,0,'流通市值:'+TOSTRING(LTSZ/100000000,2)+"亿"),coloryellow;
自由市值:=TOSTRING(NEW*ZYLTGB/100000000,2);
DRAWTEXT_FIX(ISLASTBAR,0.85,0.95,0,"实际市值:"+TOSTRING(自由市值,0)+'亿'),coloryellow;
DRAWTEXT_FIX(1,0.85,0.20,0,'净利润:'+TOSTRING(JYLX ,0)+''),colorcyan;
DRAWTEXT_FIX(1,0.85,0.24,0,'每股收益:'+TOSTRING(MGSYX,0)+'元'),colorcyan;
换手:=TOSTRING(V/ZYLTGB*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.25,0.90,0,"真实换手:"+TOSTRING(换手,0)+'%'),colorcyan;
成交:=TOSTRING(MONEY/100000000,2,);
DRAWTEXT_FIX(ISLASTBAR,0.39,0.90,0,"实时成交:"+TOSTRING(成交,0)+'亿'),colorlired;
DRAWTEXT_FIX(1,0.65,0.95,0,'地域:'+BLOCK(2,0)),colorred;
DRAWTEXT_FIX(1,0.25,0.65,0,'概念:'+BLOCK(3,5)),colormagenta;
DRAWTEXT_FIX(1,0.25,0.95,0,'行业:'+BLOCK(0,0)+'*/*'+BLOCK(1,0)),colorred;
最新:IF(ISNULL(NEW),PRE,NEW);
IF (ISNULL(RANGE_AVG_PRICE) OR RANGE_AVG_PRICE <= 0)
{
IF (MARKETTYPE == 232 OR MARKETTYPE == 56 OR MARKETTYPE==64 OR MARKETTYPE==128  OR MARKETTYPE == 80 OR MARKETTYPE==88 OR (VOL > 1 AND VOL<100))
{
b=SUBSAMEDAY(&VOL) ;
m=SUM(b*最新,0);
均价:IF(m>0,m/VOL,PRE);
}
ELSE IF(CODETYPE!=0 AND MONEY>0 AND MARKETTYPE != 48)
{
IF(ISNULL(MONEY) OR ISNULL(VOL) OR VOL==0 OR MONEY==0)
均价RE;
ELSE IF(VOL==VOL[1] OR MONEY==MONEY[1])
均价:均价[1];
ELSE
均价:MONEY/VOL;
}
ELSE IF (MARKETTYPE == 176)
{
b=SUBSAMEDAY(&MONEY);
m=SUM(b*最新,0);
IF(m>0)
均价:m/MONEY;
}
}
ELSE
{
均价:RANGE_AVG_PRICE;
}
RETURN;
hx_star;
hx_star_p;


6、效果图如下
640.jpg

二、同花顺日线主图:
1、随便点击哪根均线,然后修改均线:
640.jpg
2、设置参数:

640.jpg

3、指标源码

IF (k>0)
MA$1:MA(CLOSE, N1);
IF (k>1)
MA$2:MA(CLOSE, N2);
IF (k>2)
MA$3:MA(CLOSE, N3);
IF (k>3)
MA$4:MA(CLOSE, N4);
IF (k>4)
MA$5:MA(CLOSE, N5);
IF (k>5)
MA$6:MA(CLOSE, N6);
IF (k>6)
MA$7:MA(CLOSE, N7);
IF (k>7)
MA$8:MA(CLOSE, N8);

DRAWTEXT_FIX(1,0.06,0.02,0,'行业:'+BLOCK(0,0)+'/'+BLOCK(1,0)),colormagenta;
DRAWTEXT_FIX(1,0.24,0.02,0,'地域:'+BLOCK(2,0)),colorlimagenta;
DRAWTEXT_FIX(1,0.06,0.07,0,'概念:'+BLOCK(3,25)),colorcyan;
DRAWTEXT_FIX(ISLASTBAR,0.33,0.02,0,'实际流通:'+TOSTRING(ZYLTGB*C/100000000,1)+"亿"),coloryellow;
上涨家数:=INDEXDATA("1A0002",&RISECOUNT) + INDEXDATA("399002",&RISECOUNT);
下跌家数:=INDEXDATA("1A0002",&FALLCOUNT) + INDEXDATA("399002",&FALLCOUNT);
DRAWTEXT_FIX(ISLASTBAR,0.46,0.02,0,"上涨:"+TOSTRING(上涨家数,0)),colorred;
DRAWTEXT_FIX(ISLASTBAR,0.52,0.02,0,"下跌:"+TOSTRING(下跌家数,0)),colorgreen;
涨停:=INDEXDATA("1A0002",&RISELIMITCOUNT)+INDEXDATA("399002",&RISELIMITCOUNT);
跌停:=INDEXDATA("1A0002",&FALLLIMITCOUNT)+INDEXDATA("399002",&FALLLIMITCOUNT);
DRAWTEXT_FIX(ISLASTBAR,0.62,0.02,0,"涨停:"+TOSTRING(涨停,0)),colorlired;
DRAWTEXT_FIX(ISLASTBAR,0.68,0.02,0,"跌停:"+TOSTRING(跌停,0)),colorliblue;
DRAWTEXT_FIX(ISLASTBAR,0.75,0.02,0,'昨交:'+TOSTRING(REF(MONEY/100000000,1),2)+"亿"),coloryellow;

C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,10,0),colormagenta;
STICKLINE(涨停,H,L,0,0),colormagenta;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,10,0),colorgreen;
STICKLINE(跌停,H,L,0,1),colorgreen;

MA$8:MA(CLOSE, N8);
DRAWTEXT_FIX(1,0.06,0.02,0,'行业:'+BLOCK(0,0)+'/'+BLOCK(1,0)),colormagenta;
DRAWTEXT_FIX(1,0.24,0.02,0,'地域:'+BLOCK(2,0)),colorlimagenta;
DRAWTEXT_FIX(1,0.06,0.07,0,'概念:'+BLOCK(3,25)),colorcyan;
DRAWTEXT_FIX(ISLASTBAR,0.33,0.02,0,'实际流通:'+TOSTRING(ZYLTGB*C/100000000,1)+"亿"),coloryellow;
上涨家数:=INDEXDATA("1A0002",&RISECOUNT) + INDEXDATA("399002",&RISECOUNT);
下跌家数:=INDEXDATA("1A0002",&FALLCOUNT) + INDEXDATA("399002",&FALLCOUNT);
DRAWTEXT_FIX(ISLASTBAR,0.46,0.02,0,"上涨:"+TOSTRING(上涨家数,0)),colorred;
DRAWTEXT_FIX(ISLASTBAR,0.52,0.02,0,"下跌:"+TOSTRING(下跌家数,0)),colorgreen;
涨停:=INDEXDATA("1A0002",&RISELIMITCOUNT)+INDEXDATA("399002",&RISELIMITCOUNT);
跌停:=INDEXDATA("1A0002",&FALLLIMITCOUNT)+INDEXDATA("399002",&FALLLIMITCOUNT);
DRAWTEXT_FIX(ISLASTBAR,0.62,0.02,0,"涨停:"+TOSTRING(涨停,0)),colorlired;
DRAWTEXT_FIX(ISLASTBAR,0.68,0.02,0,"跌停:"+TOSTRING(跌停,0)),colorliblue;
DRAWTEXT_FIX(ISLASTBAR,0.75,0.02,0,'昨交:'+TOSTRING(REF(MONEY/100000000,1),2)+"亿"),coloryellow;

C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,10,0),coloryellow;
STICKLINE(涨停,H,L,0,0),coloryellow;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,10,0),colorgreen;
STICKLINE(跌停,H,L,0,1),colorgreen;

4、效果图
涨幅大于10% 就是紫色K线、跌幅大于10%就是绿色K线
640.jpg


指标全以电脑编辑(手机没验证是否能通过)如有不通过请自行查阅是否遗漏源码
创作不易请收藏点赞转发。。。你的支持是我最大的动力。。。

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

本版积分规则

指标评测

股指标

建议反馈

常见问题

股指标评测

商务合作

新闻媒体

量化投资研究社

联系我们

微信:ZBPC88

备用微信:cqcangshu

邮箱:1099750285@qq.com

关注微信公众号

QQ|手机版|小黑屋|股指标网 ( 渝ICP备2024026571号-1 )股指标

GMT+8, 2024-12-23 04:45 , Processed in 0.111472 second(s), 31 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.