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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信如何把时间嵌入主图代码公式


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

以下是通达信如何把时间嵌入主图代码公式

通达信如何把时间嵌入主图代码公式

源码

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.70,0.02,0,YEAR);
DRAWTEXT_FIX(1,0.745,0.02,1,'年'),COLORRED;
DRAWTEXT_FIX(1,0.78,0.02,1,'月'),COLORRED;
DRAWTEXT_FIX(1,0.815,0.02,1,'日'),COLORRED;
DRAWTEXT_FIX(1,0.845,0.02,1,'星期'),COLORRED;
DRAWTEXT_FIX(1,0.92,0.02,1,'时'),COLORRED;
DRAWTEXT_FIX(1,0.95,0.02,1,'分'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.75,0.02,0,MONTH);
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.785,0.02,0,DAY);
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.85,0.02,0,WEEKDAY);
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<121,0.88,0.02,0,INTPART((34200+FROMOPEN*60)/3600));
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>120,0.88,0.02,0,INTPART((34200+FROMOPEN*60+5400)/3600));
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND DYNAINFO(9)>5000 AND C>4,0.9,0.8,0,DYNAINFO(9)),COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<121,0.92,0.02,0,60*(((34200+FROMOPEN*60)/3600)-INTPART((34200+FROMOPEN*60)/3600)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>120,0.92,0.02,0,60*(((34200+FROMOPEN*60+5400)/3600)-INTPART((34200+FROMOPEN*60+5400)/3600)));
M5:MA(C,5),COLORWHITE;
M10:MA(C,10),COLORYELLOW;
M20:MA(C,20),COLORMAGENTA;
M40:MA(C,40),COLORLIRED;
M60:MA(C,60),COLORGREEN;





回复

举报

QQ|

GMT+8, 2024-11-20 17:14

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