很多人需要看龙虎榜数据,但感觉第三方不稳定而且收费,资源整合收点费用我们能理解,只是服务器不稳定让人很抓狂。
编写了这个龙虎榜指标,通达信只有机构和陆股通数据,而且我平时也只关注这两个
买入:=GPJYVALUE(2,1,0);
卖出:=GPJYVALUE(2,2,0);
净额:(买入-卖出) NODRAW;
机构买:=GPJYVALUE(9,2,0),NODRAW;
机构卖:=GPJYVALUE(8,2,0),NODRAW;
机构净额:(机构买-机构卖), NODRAW;
沪深买:=GPJYVALUE(18,1,0),NODRAW;
沪深卖:=GPJYVALUE(18,2,0),NODRAW;
沪深净额:(沪深买-沪深卖), NODRAW;
HIGH1 := IF(MOD(DAY,2) = 1, 1, 0);
STICKLINE(净额 0,0,100,0.01,0),COLORRED;
STICKLINE(净额 0,0,95,0.01,0),COLOR00FF00;
X金:=HIGH1*10+10;
DRAWTEXT(净额 0 AND 净额 10000 ,X金,VARCAT(VARCAT('净:',VAR2STR(净额,2)),'万')),COLORYELLOW;
DRAWTEXT(净额 10000,X金,VARCAT(VARCAT('净:',VAR2STR(净额/10000,2)),'亿')),COLORYELLOW;
DRAWTEXT(净额 0 AND 净额 -10000,X金,VARCAT(VARCAT('净:',VAR2STR(净额,0)),'万')),COLORGREEN;
DRAWTEXT(净额 -10000,X金,VARCAT(VARCAT('净:',VAR2STR(净额/10000,2)),'亿')),COLORGREEN;
X机:=HIGH1*10+50;{www.9m8.cn 九毛八公式指标网}
DRAWTEXT(机构净额 0 AND 机构净额 10000 ,X机,VARCAT(VARCAT('机构:',VAR2STR(机构净额,0)),'万')),COLORYELLOW;
DRAWTEXT(机构净额 10000,X机,VARCAT(VARCAT('机构:',VAR2STR(机构净额/10000,2)),'亿')),COLORYELLOW;
DRAWTEXT(机构净额 0 AND 机构净额 -10000,X机,VARCAT(VARCAT('机构:',VAR2STR(机构净额,0)),'万')),COLORGREEN;
DRAWTEXT(机构净额 -10000,X机,VARCAT(VARCAT('机构:',VAR2STR(机构净额/10000,2)),'亿')),COLORGREEN;
XHS:=HIGH1*10+70;
DRAWTEXT(沪深净额 0 AND 沪深净额 10000 ,XHS,VARCAT(VARCAT('沪深:',VAR2STR(沪深净额,0)),'万')),COLORYELLOW;
DRAWTEXT(沪深净额 10000,XHS,VARCAT(VARCAT('沪深:',VAR2STR(沪深净额/10000,2)),'亿')),COLORYELLOW;
DRAWTEXT(沪深净额 0 AND 沪深净额 -10000,XHS,VARCAT(VARCAT('沪深:',VAR2STR(沪深净额,0)),'万')),COLORGREEN;
DRAWTEXT(沪深净额 -10000,XHS,VARCAT(VARCAT('沪深:',VAR2STR(沪深净额/10000,2)),'亿')),COLORGREEN