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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 分时 叠加大盘线(源码、主图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-21 17:21:03
分时 叠加大盘线(源码、主图)介绍

分时 叠加大盘线(源码、主图)

{叠加大盘线}
TC:=STRCMP(STRLEFT(MARKETLABEL,2),'SZ');
DPSH:="SH000001$CLOSE"/HHV(STKINDI('SH000001','分超引用.昨收#DAY'),0);
DPSZ:="SZ399001$CLOSE"/HHV(STKINDI('SZ399001','分超引用.昨收#DAY'),0);
DPC:=IF(INBLOCK('A股板块'),DYNAINFO(3)*IF(TC=0,DPSZ,DPSH),C);
POLYLINE(C>0,DPC),COLOR3399ff,LINETHICK1,LAYER0;
DRAWTEXT( BARSTATUS=2,DPC ,'大盘' ),Color3399ff;

引用公式源码(分超引用)
{TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT AND TIME0<55800;}
TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT and (ORDER(1)=0 and ORDER(2)=0);
昨收:REF(C,1),LINETHICK0;
小单买:IF(TODAY,(1-"DDEDATA@BIGORDER"(1,1)),(1-bigorder(1,1)));
小单卖:IF(TODAY,(1-"DDEDATA@BIGORDER"(2,1)),(1-bigorder(2,1)));
中单买:IF(TODAY,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),(bigorder(1,1)-bigorder(1,2)));
中单卖:IF(TODAY,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),(bigorder(2,1)-bigorder(2,2)));
大单买:IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),(bigorder(1,2)-bigorder(1,3)));
大单卖:IF(TODAY,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),(bigorder(2,2)-bigorder(2,3)));
特单买:IF(TODAY,"DDEDATA@BIGORDER"(1,3),bigorder(1,3));
特单卖:IF(TODAY,"DDEDATA@BIGORDER"(2,3),bigorder(2,3));
主单买:IF(TODAY,("DDEDATA@BIGORDER"(1,2)),BIGORDER(1,2));
主单卖:IF(TODAY,("DDEDATA@BIGORDER"(2,2)),BIGORDER(2,2));

a1:='sh000001';
a2:='sz399001';
a3:=STRTONUM(STRLEFT(STKLABEL,1));
昨收:=if(a3=6,hhv(STKINDI(a1,'叠加引用.昨收#day'),0),hhv(STKINDI(a2,'叠加引用.昨收#day'),0));
开盘:=if(a3=6,HHv(STKINDI(a1,'叠加引用.开盘#day'),0),HHv(STKINDI(a2,'叠加引用.开盘#day'),0));
收盘:=if(a3=6,if(time>093000,STKINDI(a1,'叠加引用.收盘#min1'),开盘),if(time>093000,STKINDI(a2,'叠加引用.收盘#min1'),开盘));
大盘线:收盘/昨收*DYNAINFO(3),colorffff00,PRECIS0;
if a3=6 then
DRAWTEXT(BARSTATUS=2,大盘线,'上数'),Colorffff00,PRECIS0;
if a3<6 then
DRAWTEXT(BARSTATUS=2,大盘线,'深指'),Colorffff00,PRECIS0;
 


 





gd14749

回复

举报

QQ|

GMT+8, 2024-11-16 12:21

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