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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信概念龙头指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-9 11:16:30

以下是通达信概念龙头指标公式

大盘:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1);
稀缺资源:=SMA((("880505$C"-LLV("880505$L",30))/(HHV("880505$H",30)-LLV("880505$L",30))*100),3,1);
四G:=SMA((("880506$C"-LLV("880506$L",30))/(HHV("880506$H",30)-LLV("880506$L",30))*100),3,1);
军工航天:=SMA((("880507$C"-LLV("880507$L",30))/(HHV("880507$H",30)-LLV("880507$L",30))*100),3,1);
新能源:=SMA((("880508$C"-LLV("880508$L",30))/(HHV("880508$H",30)-LLV("880508$L",30))*100),3,1);
低碳经济:=SMA((("880519$C"-LLV("880519$L",30))/(HHV("880519$H",30)-LLV("880519$L",30))*100),3,1);
智能电网:=SMA((("880520$C"-LLV("880520$L",30))/(HHV("880520$H",30)-LLV("880520$L",30))*100),3,1);
黄金概念:=SMA((("880521$C"-LLV("880521$L",30))/(HHV("880521$H",30)-LLV("880521$L",30))*100),3,1);
三网融合:=SMA((("880530$C"-LLV("880530$L",30))/(HHV("880530$H",30)-LLV("880530$L",30))*100),3,1);
整体上市:=SMA((("880532$C"-LLV("880532$L",30))/(HHV("880532$H",30)-LLV("880532$L",30))*100),3,1);
物联网:=SMA((("880533$C"-LLV("880533$L",30))/(HHV("880533$H",30)-LLV("880533$L",30))*100),3,1);
STICKLINE(物联网>大盘 AND 物联网>=50, 0 , 1,-1,0),COLOR00DDDD;
STICKLINE(整体上市>大盘 AND 整体上市>=50, 2 , 3,-1,0),COLOR00DDDD;
STICKLINE(三网融合>大盘 AND 三网融合>=50, 4 , 5,-1,0),COLOR00DDDD;
STICKLINE(黄金概念>大盘 AND 黄金概念>=50, 6 , 7,-1,0),COLOR00DDDD;
STICKLINE(智能电网>大盘 AND 智能电网>=50, 8 , 9,-1,0),COLOR00DDDD;
STICKLINE(低碳经济>大盘 AND 低碳经济>=50, 10,11,-1,0),COLOR00DDDD;
STICKLINE(新能源>大盘 AND 新能源>=50, 12,13,-1,0),COLOR00DDDD;
STICKLINE(军工航天>大盘 AND 军工航天>=50, 14,15,-1,0),COLOR00DDDD;
STICKLINE(四G>大盘 AND 四G>=50, 16,17,-1,0),COLOR00DDDD;
STICKLINE(稀缺资源>大盘 AND 稀缺资源>=50, 18,19,-1,0),COLOR00DDDD;

DRAWRECTREL(0,0,66,990,RGB(150,0,0));
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,'稀缺资源'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.1,0,'4G'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,'军工航天'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.3,0,'新能源'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.4,0,'低碳经济'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.5,0,'智能电网'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.6,0,'黄金概念'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.7,0,'三网融合'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.8,0,'整体上市'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.9,0,'物联网'),COLORWHITE;





回复

举报

QQ|

GMT+8, 2024-11-18 04:25

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