股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 直观、实用—《个股动态》看盘排序(副图、源码、贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-22 17:27:51
直观、实用—《个股动态》看盘排序(副图、源码、贴图)介绍

直观、实用—《个股动态》看盘排序(副图、源码、贴图)

寻找那些连续强于本板块和大盘、且没有巨幅拉升的个股寻机买入。大红柱为极强势,白柱为强于大盘但弱于板块。。。源码如下:
《个股动态》
INPUT:N(9,1,999);
ZSC:=IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE",
IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",
IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",
IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",
IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",
IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",
IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE",
IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE",
IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",
IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE",
IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));
个股强弱:SLOPE(C,N)/MA(C,N)*100,ColorFFFF00,LINETHICK0;
板块强弱:SLOPE(ZSC,N)/MA(ZSC,N)*100,COLORYELLOW,LINETHICK0;
大盘强弱:SLOPE(INDEXC,N)/MA(INDEXC,N)*100,colorwhite,LINETHICK0;
板块:=STRLEFT(BKNAME,STRFIND(BKNAME,',',1)-1);
DRAWTEXTABS(5,5,'板块强弱 = ('+' '+板块+'指数 )'),COLORYELLOW;
个板差值:=个股强弱-板块强弱;
个股大盘差:(个股强弱-大盘强弱),COLORYELLOW,LINETHICK0;
aa:=个板差值>0 and 个股大盘差>0;
bb:=not(aa) and not(个股大盘差<0);
cc:=个股大盘差<0;
STICKLINE(bb,0,个股大盘差,8.10,0),colorwhite;
STICKLINE(aa>0,0,个股大盘差,8.10,0),colorff00ff,layer7;
STICKLINE(个股大盘差<0,0,个股大盘差,8.10,0),colorgreen;
STICKLINE(个股大盘差>2,0,个股大盘差,8.10,0),COLOR0000CC;
连强排序:barslast(not(aa) ),ColorFFFF00,LINETHICK0;
极强排序:count(个股大盘差>2,20),LINETHICK0;
2,colorwhite;
-2,ColorFFFF00;
DRAWGBKLAST(close>0,STRIP(RGB(0,128,128),RGB(25,25,112),0));






gd11582

回复

举报

QQ|

GMT+8, 2024-11-18 12:20

快速回复 返回顶部 返回列表