本帖最后由 拂晓 于 2020-12-7 18:59 编辑
个人比较喜欢的功能如下,供大家参考
1.涨停综合
个股标记 、涨停原因 、涨停解密、概念风口、协同作战 、涨停池 、炸板池、强势股池、次新股池、昨日涨停池 。。。
{下面的这段指标源码,可以 自由 放在 主图 、分时主图 或 副图 里面,利用金达牛软件提供的数据看盘}
{涨停统计}
涨停A:=CLOSE/REF(CLOSE,1)>=1.095;
ZTCS:=COUNT(涨停A,BARSSINCE(涨停A)+1);
{DRAWNUMBER(涨停A,HIGH*1.04,ZTCS),COLORYELLOW;}
GZT1:=STRCAT(' 共涨停: ',CON2STR(ZTCS,0));
GZT2:=STRCAT(GZT1,'次');
SSTS1:=STRCAT(' 上市: ',CON2STR(FINANCE(42),0));
SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT(' 距今:',CON2STR(CONST(BARSLAST(涨停A)),0));
NTZZT2:=STRCAT(NTZZT1,'天有涨停');
ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);
ZTTJ:=STRCAT('涨停统计:',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.76,0,ZTTJ),COLORCYAN;
VABB3:=1;
TJ1AA:=HYBLOCK;
TJ2AA:=HORCALC(HYBLOCK,105,1,DRAWNULL);
TJ4AA:=STRCAT('在 ',' ');
DRAWTEXT_FIX(ISLASTBAR AND VABB3=1,0.6,0.0,0,STRCAT(TJ4AA,STRCAT(' 排名 ',STRCAT(CON2STR(TJ2AA,0),' 名')))),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND VABB3=1,0.625,0.0,0,STRCAT(' ',TJ1AA)),COLORYELLOW;
DRAWTEXT_FIX(1,0.65,0.0,0,EXTERNSTR(0,902)),COLORYELLOW;
DRAWTEXT_FIX(1,0.6,0.1,0,'协同作战 :'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.65,0.1,0,EXTERNSTR(0,1000)),COLORYELLOW;
DRAWTEXT_FIX(1,0.6,0.2,0,'概念风口 :'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.65,0.2,0,EXTERNSTR(0,2000)),COLORYELLOW;
DRAWTEXT_FIX(1,0.0,0.86,0,'涨停综合 :'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.05,0.86,0,EXTERNSTR(0,2008)),COLORYELLOW;
DRAWTEXT_FIX(1,0.0,0.96,0,'涨停揭秘 :'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.05,0.96,0,EXTERNSTR(0,2001)),COLORYELLOW;
2. 龙虎榜净额
龙虎榜净额源码:
DRAWGBK(OPEN>0,RGB(16,00,16),RGB(0,0,0),0,'02',0);{背景色}
0;
ZXLY:=SIGNALS_USER(1000,0);
净买资金:ZXLY,COLORRED,NODRAW;
STICKLINE(ZXLY<0,0,ZXLY,0.1,0),COLOR40FF00;{小于0 的颜色}
STICKLINE(ZXLY>0,0,ZXLY,0.1,0),COLOR0000FF;{大于0的颜色}
DRAWTEXT(ZXLY<>0,ZXLY*95/100,VARCAT(VARCAT('净买资金:',VAR2STR(ZXLY,0)),'万') );
3. 个股标识
个股标识公式:
DRAWTEXT_FIX(1,0.01,0.00,0,STRCAT('【个股标识】',EXTERNSTR(0,2021))),COLORMAGENTA;
DRAWTEXT_FIX(1,0.01,0.05,0,STRCAT('【标识内容】',EXTERNSTR(0,2022))),COLORYELLOW;
DRAWTEXT_FIX(1,0.01,0.10,0,STRCAT('【1】',EXTERNSTR(0,2025))),COLORCYAN;
DRAWTEXT_FIX(1,0.01,0.15,0,STRCAT('【2】',EXTERNSTR(0,2026))),COLORLIGRAY;
DRAWTEXT_FIX(1,0.51,0.15,0,STRCAT('【3】',EXTERNSTR(0,2027))),COLORCYAN;
DRAWTEXT_FIX(1,0.01,0.20,0,STRCAT('【4】',EXTERNSTR(0,2028))),COLORCYAN;
DRAWTEXT_FIX(1,0.51,0.20,0,STRCAT('【5】',EXTERNSTR(0,2029))),COLORWHITE;
DRAWTEXT_FIX(1,0.01,0.25,0,STRCAT('【6】',EXTERNSTR(0,2030))),COLORWHITE;
DRAWTEXT_FIX(1,0.51,0.25,0,STRCAT('【7】',EXTERNSTR(0,2031))),COLORCYAN;
DRAWTEXT_FIX(1,0.01,0.30,0,STRCAT('【8】',EXTERNSTR(0,2032))),COLORCYAN;
DRAWTEXT_FIX(1,0.51,0.30,0,STRCAT('【9】',EXTERNSTR(0,2033))),COLORLIGRAY;
DRAWTEXT_FIX(1,0.01,0.35,0,STRCAT('【10】',EXTERNSTR(0,2034))),COLORWHITE;
DRAWTEXT_FIX(1,0.51,0.35,0,STRCAT('【11】',EXTERNSTR(0,2035))),COLORCYAN;
DRAWTEXT_FIX(1,0.01,0.40,0,STRCAT('【12】',EXTERNSTR(0,2036))),COLORCYAN;
DRAWTEXT_FIX(1,0.51,0.40,0,STRCAT('【13】',EXTERNSTR(0,2037))),COLORWHITE;
DRAWTEXT_FIX(1,0.01,0.45,0,STRCAT('【14】',EXTERNSTR(0,2038))),COLORWHITE;
DRAWTEXT_FIX(1,0.51,0.45,0,STRCAT('【15】',EXTERNSTR(0,2040))),COLORCYAN;
DRAWTEXT_FIX(1,0.01,0.55,0,STRCAT('【公司亮点】',EXTERNSTR(0,2010))),COLORMAGENTA;
DRAWTEXT_FIX(1,0.01,0.60,0,STRCAT('【主营业务】',EXTERNSTR(0,2011))),COLORWHITE;
DRAWTEXT_FIX(1,0.01,0.65,0,STRCAT('【公司产品】',EXTERNSTR(0,2012))),COLORYELLOW;
DRAWTEXT_FIX(1,0.01,0.70,0,STRCAT('【概念排名】',EXTERNSTR(0,2013))),COLORMAGENTA;
DRAWTEXT_FIX(1,0.01,0.75,0,STRCAT('【概念相关票】',EXTERNSTR(0,2014))),COLORCYAN;
DRAWTEXT_FIX(1,0.01,0.80,0,STRCAT('【主力控盘】',EXTERNSTR(0,2015))),COLORWHITE;
DRAWTEXT_FIX(1,0.01,0.85,0,STRCAT('【财务分析】',EXTERNSTR(0,2016))),COLORYELLOW;
DRAWTEXT_FIX(1,0.01,0.90,0,STRCAT('【业绩预测】',EXTERNSTR(0,2017))),COLORCYAN;
DRAWTEXT_FIX(1,0.01,0.95,0,STRCAT('【收入净利润】',EXTERNSTR(0,2018))),COLORMAGENTA;
{可以直接添加到 主图 或 副图}
4. 资金流向
主力超大单副图(在此感谢群友:厨师班五星上厨,指标源码奉献)
主力超大单公式:
主力买:INTPART(SIGNALS_USER(1201,0)),COLOR00DDDD,NODRAW;
超大买:INTPART(SIGNALS_USER(1203,0)),COLOR0000FF,NODRAW;
大单买:INTPART(SIGNALS_USER(1205,0)),COLORFFFFFF,NODRAW;
中单买:INTPART(SIGNALS_USER(1207,0)),COLORFF80FF,NODRAW;
小单买:INTPART(SIGNALS_USER(1209,0)),COLORLIBLUE,NODRAW;
轴心:0,COLORWHITE,DOTLINE;
{小于0 的颜色}
STICKLINE(主力买<0,0,主力买,3.2,0),COLOR002200;
STICKLINE(主力买<0,0,主力买,2.7,0),COLOR003300;
STICKLINE(主力买<0,0,主力买,2.1,0),COLOR004400;
STICKLINE(主力买<0,0,主力买,1.5,0),COLOR005500;
STICKLINE(主力买<0,0,主力买,0.9,0),COLOR006600;
STICKLINE(主力买<0,0,主力买,0.3,0),COLOR007700;
STICKLINE(主力买<0,0,主力买,0,0),COLOR007700;
{大于0的颜色}
STICKLINE(主力买>0,0,主力买,3.2,0),COLOR008888;
STICKLINE(主力买>0,0,主力买,2.7,0),COLOR009999;
STICKLINE(主力买>0,0,主力买,2.1,0),COLOR00AAAA;
STICKLINE(主力买>0,0,主力买,1.5,0),COLOR00BBBB;
STICKLINE(主力买>0,0,主力买,0.9,0),COLOR00CCCC;
STICKLINE(主力买>0,0,主力买,0.3,0),COLOR00DDDD;
STICKLINE(主力买>0,0,主力买,0,0),COLORYELLOW;
{小于0 的颜色}
STICKLINE(超大买<0,0,超大买,2.4,0),COLOR00AA00;{绿}
STICKLINE(超大买<0,0,超大买,1.9,0),COLOR00BB00;
STICKLINE(超大买<0,0,超大买,1.5,0),COLOR00CC00;
STICKLINE(超大买<0,0,超大买,1.1,0),COLOR00DD00;
STICKLINE(超大买<0,0,超大买,0.7,0),COLOR00EE00;
STICKLINE(超大买<0,0,超大买,0.3,0),COLOR00FF00;
STICKLINE(超大买<0,0,超大买,0,0),COLOR00FF00;
STICKLINE(超大买>0,0,超大买,2.4,0),COLOR0000AA;{大于0的颜色}
STICKLINE(超大买>0,0,超大买,1.9,0),COLOR0000BB;
STICKLINE(超大买>0,0,超大买,1.5,0),COLOR0000CC;
STICKLINE(超大买>0,0,超大买,1.1,0),COLOR0000DD;
STICKLINE(超大买>0,0,超大买,0.7,0),COLOR0000EE;
STICKLINE(超大买>0,0,超大买,0.2,0),COLOR0000FF;
STICKLINE(超大买>0,0,超大买,0,0),COLOR0000FF;
{小于0 的颜色}
STICKLINE(大单买<0,0,大单买,1.8,0),COLOR40FF00;
STICKLINE(大单买<0,0,大单买,1.8,0),COLORFF6600;
STICKLINE(大单买<0,0,大单买,1.3,0),COLORFF8800;
STICKLINE(大单买<0,0,大单买,0.8,0),COLORFFAA00;
STICKLINE(大单买<0,0,大单买,0.3,0),COLORFFCC00;
STICKLINE(大单买<0,0,大单买,0.0,0),COLORFFDD00;
{大于0的颜色白色}
STICKLINE(大单买>0,0,大单买,1.8,0),COLOR999999;
STICKLINE(大单买>0,0,大单买,1.3,0),COLORBBBBBB;
STICKLINE(大单买>0,0,大单买,0.8,0),COLORDDDDDD;
STICKLINE(大单买>0,0,大单买,0.3,0),COLORFFFFFF;
{小于0 的颜色灰白}
STICKLINE(中单买<0,0,中单买,0.3,0),COLOR555555;
STICKLINE(中单买<0,0,中单买,0.2,0),COLOR777777;
STICKLINE(中单买<0,0,中单买,0.1,0),COLOR999999;
STICKLINE(中单买<0,0,中单买,0,0),COLOR999999;
{大于0的颜色紫色}
STICKLINE(中单买>0,0,中单买,0.3,0 ),COLORFF11FF;
STICKLINE(中单买>0,0,中单买,0.25,0 ),COLORFF22FF;
STICKLINE(中单买>0,0,中单买,0.20,0 ),COLORFF33FF;
STICKLINE(中单买>0,0,中单买,0.15,0 ),COLORFF44FF;
STICKLINE(中单买>0,0,中单买,0.05,0),COLORFF55AA;
STICKLINE(中单买>0,0,中单买,0.0,0),COLORFF66AA;
STICKLINE(中单买>0,0,中单买,0.3,0),COLORFF80FF;
{小于0 的颜色灰白}
STICKLINE(小单买<0,0,小单买,0.2,1),COLORLICYAN;
{大于0的颜色紫色}
STICKLINE(小单买>0,0,小单买,0.2,1),COLORLIBLUE;
LHB:=SIGNALS_USER(1001,0);{龙虎榜序列标记 1001}
DRAWTEXT(LHB>0 AND LHB<10000,主力买*1.2,VARCAT(VARCAT('榜:',VAR2STR(LHB,2)),'万')),COLORYELLOW;
DRAWTEXT(LHB>10000,主力买*1.1,VARCAT(VARCAT('榜:',VAR2STR(LHB/10000,2)),'亿')),COLORYELLOW;
DRAWTEXT(LHB<0 AND LHB>-10000,主力买*1.1,VARCAT(VARCAT('榜:',VAR2STR(LHB,2)),'万')),COLORGREEN;
DRAWTEXT(LHB<-10000,主力买*1.1,VARCAT(VARCAT('榜:',VAR2STR(LHB/10000,2)),'亿')),COLORGREEN;
DRAWTEXT_FIX(1,0.5,0.05,0,STRCAT('【协同作战】:',EXTERNSTR(0,1000))),COLORCYAN;
DRAWTEXT_FIX(1,0.05,0.05,0,'【风口概念】')COLORFFFFAA;
DRAWTEXT_FIX(1,0.15,0.05,0,EXTERNSTR(0,2000))COLORFFFFAA;{最近涨停信息:对应板块的信息}
DRAWTEXT_FIX(1,0.05,0.10,0,'【涨停揭秘】')COLORFFFFAA;
DRAWTEXT_FIX(1,0.15,0.10,0,EXTERNSTR(0,2001))COLORFFFFAA;{最近涨停信息:对应板块的信息};
DRAWTEXT(主力买>10000,主力买*1,VARCAT(VARCAT('●买:',VAR2STR(主力买/10000,2)),'亿')),COLORLIRED;
DRAWTEXT(主力买<-10000,主力买*1,VARCAT(VARCAT('●卖:',VAR2STR(主力买/10000,2)),'亿')),COLORGREEN;
DRAWTEXT(主力买>0 AND 主力买<10000,主力买*1.1,VARCAT(VARCAT('●买:',VAR2STR(主力买,2)),'万')),COLORLIRED;
DRAWTEXT(主力买<0 AND 主力买>-10000,主力买*1.2,VARCAT(VARCAT('●卖:',VAR2STR(主力买,2)),'万')),COLORGREEN;
{备注:完整指标,请群内下载。不便之处请谅解!}
在此期待金达牛更多更好的功能上线!!!
|