资金趋势+融资融券+龙虎榜+早盘竞价 (在线更新版) 使用手册
{资金趋势}
实时资金:TDXDLL10(14,STR2CON(CODE),DATE,0),COLORRED,NODRAW;{实时资金初始化}
显示控制:=TDXDLL1(15,STR2CON(CODE),DATE,3);{显示控制 默认显示最近3天,参数3设置}
资金:SIGNALS_USER(4,0),COLORYELLOW,NODRAW;
昨日:REF(资金,1),COLORYELLOW,NODRAW;
两日:SUM(资金,2),COLORYELLOW,NODRAW;
五日:SUM(资金,5),COLORYELLOW,NODRAW;
历史最高:HHV(资金,200)+50,COLORBLACK,NODRAW;
高度:=(ABS(资金)/历史最高)*100;
STICKLINE(资金>0 AND ISLASTBAR !=1,0,高度,1,0), COLORRED;
STICKLINE(资金<0 AND ISLASTBAR !=1,0,ABS(高度),1,0), COLORGREEN;
实时高度:=(ABS(实时资金)/历史最高)*100;
STICKLINE(实时资金>0,0,实时高度,1,0), COLORRED;
STICKLINE(实时资金<0,0,ABS(实时高度),1,0), COLORGREEN;
DRAWTEXT(显示控制 AND 资金>0 AND ISLASTBAR !=1,高度+10,VARCAT('净买:',VAR2STR(资金,0))),COLORRED;
DRAWTEXT(显示控制 AND 资金<0 AND ISLASTBAR !=1,高度+10,VARCAT('净卖:',VAR2STR(资金,0))),COLORGREEN;
DRAWTEXT(实时资金>0 AND ISLASTBAR,实时高度+10,VARCAT('净买:',VAR2STR(实时资金,0))),COLORRED;
DRAWTEXT(实时资金<0 AND ISLASTBAR,实时高度+10,VARCAT('净卖:',VAR2STR(实时资金,0))),COLORGREEN;
{资金趋势结束};
{融资融券}
余额:=SIGNALS_USER(5,0);
波动比:=((余额-REF(余额,1))/REF(余额,1))*100;
DRAWICON(波动比>10,0,23);
{融资融券结束}