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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信攻击力度排序指标公式源码


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

VAR1:=IF(PERIOD=5,TOTALFZNUM,1);
VAR2:=IF(PERIOD=4,31,VAR1);
VAR3:=IF(PERIOD=3,30,VAR2);
VAR4:=IF(PERIOD=1,5,IF(PERIOD=2,15,VAR3));
VAR5:=MOD(FROMOPEN,VAR4);
VAR6:=IF(VAR5<0.5,VAR4,VAR5);
VAR8:=(CURRBARSCOUNT=1 AND DYNAINFO(8)>1);
VAR9:=IF(VAR8,vol*(VAR4+3)/(VAR6+3),DRAWNULL);
攻击力一:DYNAINFO(23)/DYNAINFO(22),COLORRED,LINETHICK1;
攻击力二:DYNAINFO(17),COLORYELLOW,LINETHICK1;
攻击力三:VAR9/REF(V,1),COLORMAGENTA,LINETHICK1;
DRAWTEXT_FIX(C>O,0.01,0.1,0,' 概念板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.2,0,' 行业板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.3,0,' 地域板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.4,0,' 风格板块:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.5,0,' 指数板块:'),COLORRED;
DRAWTEXT_FIX(O<C,0.09,0.1,0,CONST((GNBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.2,0,CONST((HYBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.3,0,CONST((DYBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.4,0,CONST((FGBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(O<C,0.09,0.5,0,CONST((ZSBLOCK))),COLORYELLOW;
DRAWTEXT_FIX(C>O,0.09,0.7,0,' 信号精选办法:准备介入的时候观察左上角红色【攻击力一】的数值,优先考虑攻击
力一数值大于1.5或以上的信号,数值越大越好;'),COLORRED;
DRAWTEXT_FIX(C>O,0.09,0.8,0,' 其次观察左上角【攻击力二】和【攻击力三】的数值,考虑【攻击力
二】和【攻击力三】数值大于2或以上的信号,数值越大越好 '),COLORRED;
DRAWTEXT_FIX(C>O,0.09,0.9,0,' 总之,【攻击力一】数值大于1.5是首选,最主要的;【攻击力二】
和【攻击力三】是辅助,如果大于2就最好,没有就忽略。'),COLORRED;





回复

举报

QQ|

GMT+8, 2024-11-27 17:45

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