好久以来,一直想编写一个在盘中能够定时显示我要的一组数据,并且定格,不再随行情变化。这样做的好处是可以看到整个开盘4个小时里不同阶段行情的变化,以便自己判断和决策。
现在大家看到的盘中数据指标,是在一发千钧老师反复帮助下,才得以完成的,在此向一发千钧老师表示衷心地感谢!
盘中数据这个指标的关键核心是盘中定时显示数据,并且定格,不再随行情变化。这个关键核心是由一发千钧老师提供的。
这个指标只是在盘中定时显示最初步的日常数据,有了这个指标作为模型,我们想要的其它数据都可以利用这个模型来套用,我会在盘中数据之二中向大家介绍我的另一个盘中数据指标。
如果你喜欢就拿去用,如果你发现指标有什么不足欢迎你指教!
以下有源代码、有导出的指标(指标不设密码)和图片。
一、盘中引用
指标名称:盘中引用
指标源代码:
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 换手率:sum(vol,0)/CAPITAL;
- 成交额:sum(AMOUNT/10000,0);
- 外盘:sum(if(BUYVOL>0,vol,0),0);
- 内盘:sum(if(SELLVOL>0,vol,0),0);
- 涨跌幅:(c/DYNAINFO(3)-1)*100;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- DRAWRECTABS(805 ,10 ,842 ,47 ,0),LINETHICK4,COLOR6600FF;
- DRAWTEXTABS(810 ,15,'提沙'),LINETHICK2,COLOR6600FF;
- DRAWTEXTABS(810 ,28,'印吾'),LINETHICK2,COLOR6600FF;
-
- DRAWTEXTABS(310,3,'盘中各时段数据'),COLOR00FFFF,LINETHICK4;
-
- DRAWRECTABS( 1,28 ,780 ,175 ,RGB(0,50,50) ),COLORFFFFFF;
-
- DRAWTEXTABS(10,37,''+STKNAME+'('+STKLABEL+')'),COLORFFFF80,LINETHICK2;
- DRAWTEXTABS(20,55,'最 新 价(元)'),COLOR0066FF,LINETHICK2;
- DRAWTEXTABS(20,75,'换 手 率(%)'),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(20,95,'成 交(亿元)'),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(20,115,'外 盘(万手)'),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(20,135,'内 盘(万手)'),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(20,155,'涨 跌 幅(%)'),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(150,35,'10 点'),COLORFFFFFF,LINETHICK2;
- DRAWTEXTABS(230,35,'10 点 半'),COLORFFFFFF,LINETHICK2;
- DRAWTEXTABS(310,35,'11 点'),COLORFFFFFF,LINETHICK2;
- DRAWTEXTABS(390,35,'11 点 半'),COLORFFFFFF,LINETHICK2;
- DRAWTEXTABS(470,35,'13 点 半'),COLORFFFFFF,LINETHICK2;
- DRAWTEXTABS(550,35,'14 点'),COLORFFFFFF,LINETHICK2;
- DRAWTEXTABS(630,35,'14 点 半'),COLORFFFFFF,LINETHICK2;
- DRAWTEXTABS(710,35,'当 前'),COLORFFFFFF,LINETHICK2;
-
- HSL:="盘中引用.换手率#tick";
- CJE:="盘中引用.成交额#tick";
- WP:="盘中引用.外盘#tick";
- NP:="盘中引用.内盘#tick";
- ZDF:="盘中引用.涨跌幅#tick";
-
- DRAWTEXTABS(145,55,STRRIGHT(' '+NUMTOSTRN(REF(C,BARSLAST(TIME>095959 AND TIME<=100000)),2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(145,75,STRRIGHT(' '+NUMTOSTRN(REF(HSL*100,BARSLAST(TIME>095959 AND TIME<=100000)),2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(145,95,STRRIGHT(' '+NUMTOSTRN(REF(CJE,BARSLAST(TIME>095959 AND TIME<=100000))/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(145,115,STRRIGHT(' '+NUMTOSTRN(REF(WP/10000,BARSLAST(TIME>095959 AND TIME<=100000)),2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(145,135,STRRIGHT(' '+NUMTOSTRN(REF(NP/10000,BARSLAST(TIME>095959 AND TIME<=100000)),2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(145,155,STRRIGHT(' '+NUMTOSTRN(REF(ZDF,BARSLAST(TIME>095959 AND TIME<=100000)),2),7)),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(225,55,STRRIGHT(' '+NUMTOSTRN(REF(C,BARSLAST(TIME>102959 AND TIME<=103000)),2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(225,75,STRRIGHT(' '+NUMTOSTRN(REF(HSL*100,BARSLAST(TIME>102959 AND TIME<=103000)),2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(225,95,STRRIGHT(' '+NUMTOSTRN(REF(CJE,BARSLAST(TIME>102959 AND TIME<=103000))/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(225,115,STRRIGHT(' '+NUMTOSTRN(REF(WP/10000,BARSLAST(TIME>102959 AND TIME<=103000)),2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(225,135,STRRIGHT(' '+NUMTOSTRN(REF(NP/10000,BARSLAST(TIME>102959 AND TIME<=103000)),2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(225,155,STRRIGHT(' '+NUMTOSTRN(REF(ZDF,BARSLAST(TIME>102959 AND TIME<=103000)),2),7)),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(305,55,STRRIGHT(' '+NUMTOSTRN(REF(C,BARSLAST(TIME>105959 AND TIME<=110000)),2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(305,75,STRRIGHT(' '+NUMTOSTRN(REF(HSL*100,BARSLAST(TIME>105959 AND TIME<=110000)),2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(305,95,STRRIGHT(' '+NUMTOSTRN(REF(CJE,BARSLAST(TIME>105959 AND TIME<=110000))/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(305,115,STRRIGHT(' '+NUMTOSTRN(REF(WP/10000,BARSLAST(TIME>105959 AND TIME<=110000)),2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(305,135,STRRIGHT(' '+NUMTOSTRN(REF(NP/10000,BARSLAST(TIME>105959 AND TIME<=110000)),2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(305,155,STRRIGHT(' '+NUMTOSTRN(REF(ZDF,BARSLAST(TIME>105959 AND TIME<=110000)),2),7)),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(385,55,STRRIGHT(' '+NUMTOSTRN(REF(C,BARSLAST(TIME>112959 AND TIME<=113000)),2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(385,75,STRRIGHT(' '+NUMTOSTRN(REF(HSL*100,BARSLAST(TIME>112959 AND TIME<=113000)),2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(385,95,STRRIGHT(' '+NUMTOSTRN(REF(CJE,BARSLAST(TIME>112959 AND TIME<=113000))/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(385,115,STRRIGHT(' '+NUMTOSTRN(REF(WP/10000,BARSLAST(TIME>112959 AND TIME<=113000)),2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(385,135,STRRIGHT(' '+NUMTOSTRN(REF(NP/10000,BARSLAST(TIME>112959 AND TIME<=113000)),2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(385,155,STRRIGHT(' '+NUMTOSTRN(REF(ZDF,BARSLAST(TIME>112959 AND TIME<=113000)),2),7)),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(465,55,STRRIGHT(' '+NUMTOSTRN(REF(C,BARSLAST(TIME>132959 AND TIME<=133000)),2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(465,75,STRRIGHT(' '+NUMTOSTRN(REF(HSL*100,BARSLAST(TIME>132959 AND TIME<=133000)),2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(465,95,STRRIGHT(' '+NUMTOSTRN(REF(CJE,BARSLAST(TIME>132959 AND TIME<=133000))/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(465,115,STRRIGHT(' '+NUMTOSTRN(REF(WP/10000,BARSLAST(TIME>132959 AND TIME<=133000)),2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(465,135,STRRIGHT(' '+NUMTOSTRN(REF(NP/10000,BARSLAST(TIME>132959 AND TIME<=133000)),2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(465,155,STRRIGHT(' '+NUMTOSTRN(REF(ZDF,BARSLAST(TIME>132959 AND TIME<=133000)),2),7)),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(545,55,STRRIGHT(' '+NUMTOSTRN(REF(C,BARSLAST(TIME>135959 AND TIME<=140000)),2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(545,75,STRRIGHT(' '+NUMTOSTRN(REF(HSL*100,BARSLAST(TIME>135959 AND TIME<=140000)),2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(545,95,STRRIGHT(' '+NUMTOSTRN(REF(CJE,BARSLAST(TIME>135959 AND TIME<=140000))/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(545,115,STRRIGHT(' '+NUMTOSTRN(REF(WP/10000,BARSLAST(TIME>135959 AND TIME<=140000)),2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(545,135,STRRIGHT(' '+NUMTOSTRN(REF(NP/10000,BARSLAST(TIME>135959 AND TIME<=140000)),2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(545,155,STRRIGHT(' '+NUMTOSTRN(REF(ZDF,BARSLAST(TIME>135959 AND TIME<=140000)),2),7)),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(625,55,STRRIGHT(' '+NUMTOSTRN(REF(C,BARSLAST(TIME>142959 AND TIME<=143000)),2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(625,75,STRRIGHT(' '+NUMTOSTRN(REF(HSL*100,BARSLAST(TIME>142959 AND TIME<=143000)),2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(625,95,STRRIGHT(' '+NUMTOSTRN(REF(CJE,BARSLAST(TIME>142959 AND TIME<=143000))/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(625,115,STRRIGHT(' '+NUMTOSTRN(REF(WP/10000,BARSLAST(TIME>142959 AND TIME<=143000)),2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(625,135,STRRIGHT(' '+NUMTOSTRN(REF(NP/10000,BARSLAST(TIME>142959 AND TIME<=143000)),2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(625,155,STRRIGHT(' '+NUMTOSTRN(REF(ZDF,BARSLAST(TIME>142959 AND TIME<=143000)),2),7)),COLORFFFFFF,LINETHICK2;
-
- DRAWTEXTABS(705,55,STRRIGHT(' '+NUMTOSTRN(C,2),7)),COLOR3300FF,LINETHICK2;
- DRAWTEXTABS(705,75,STRRIGHT(' '+NUMTOSTRN(HSL*100,2),7)),COLORFF00FF,LINETHICK2;
- DRAWTEXTABS(705,95,STRRIGHT(' '+NUMTOSTRN(CJE/100000000,2),7)),COLOR6633FF,LINETHICK2;
- DRAWTEXTABS(705,115,STRRIGHT(' '+NUMTOSTRN(WP/10000,2),7)),COLOR0099FF,LINETHICK2;
- DRAWTEXTABS(705,135,STRRIGHT(' '+NUMTOSTRN(NP/10000,2),7)),COLOR00FFFF,LINETHICK2;
- DRAWTEXTABS(705,155,STRRIGHT(' '+NUMTOSTRN(ZDF,2),7)),COLORFFFFFF,LINETHICK2;