分时 叠加大盘线(源码、主图)介绍
分时 叠加大盘线(源码、主图)
{叠加大盘线}
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