{以下代码,请仿制时参考是否能利用} 委托引用
b1:=bidvol(1);
s1:=askvol(1);
b2:bidvol(2);
s2:askvol(2);
ppl:(b1+s1)/2
匹配量
---用于分时图
pp:="委托引用.ppl#tick";
wtm:="委托引用.b2#tick";
wtw:="委托引用.s2#tick";
sj:=TIME<(92500);
匹配量:ref(pp,BARSLAST(sj)),PRECIS0,LINETHICK0;
未匹配买量:ref(wtm,BARSLAST(sj)),PRECIS0,LINETHICK0;
未匹配卖量:ref(wtw,BARSLAST(sj)),PRECIS0,LINETHICK0;
未匹配买量换手:(未匹配买量-未匹配卖量)/capital*100;
STICKLINE(c>=ref(c,1)and sj,0,pp,8,0),color000999;
STICKLINE(c<ref(c,1)and sj,0,pp,8,0),COLORCYAN;
VOL,VOLSTICK,PRECIS0;
{竞价监控}
MU:=TIME>92000 and TIME<=92600;
A1:=IF(MU,AMOUNT,0)/10000;
A2:=IF(MU,TICKCOUNT,0);
A3:=IF(MU,v,0);
上涨家数:=DYNAINFO(66);
下跌家数:=DYNAINFO(67);
竞价成交额:=SUM(A1,0);
竞价成交笔:=SUM(A2,0);
竞价成交量:=SUM(A3,0);
MBK21:="竞价盘口.MULK21#tick";
MBK22:="竞价盘口.MULK22#tick";
MBK23:="竞价盘口.MULK23#tick";
MBK24:="竞价盘口.MULK24#tick";
MBK25:="竞价盘口.MULK25#tick";
MBK26:="竞价盘口.MULK26#tick";
WML21:="竞价盘口.MUK21#tick";
WML22:="竞价盘口.MUK22#tick";
WML23:="竞价盘口.MUK23#tick";
WML24:="竞价盘口.MUK24#tick";
WML25:="竞价盘口.MUK25#tick";
WML26:="竞价盘口.MUK26#tick";
WMML21:="竞价盘口.MUKK21#tick";
WMML22:="竞价盘口.MUKK22#tick";
WMML23:="竞价盘口.MUKK23#tick";
WMML24:="竞价盘口.MUKK24#tick";
WMML25:="竞价盘口.MUKK25#tick";
WMML26:="竞价盘口.MUKK26#tick";
DRAWRECTABS(0,0,580,124,1);
DRAWRECTABS(579,1,550,30,rgb(255,0,0)),colorred;
DRAWTEXTABS(552,2,'竞价'),colorFFFFFF,LINETHICK1;
DRAWTEXTABS(552,15,'监控'),colorFFFFFF,LINETHICK1;
{竞价时间}
DRAWTEXTABS(5,3,'9点21分盘口:报价: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(115,3,NUMTOSTRN(MBK21,2)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(5,23,'9点22分盘口:报价: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(115,23,NUMTOSTRN(MBK22,2)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(5,43,'9点23分盘口:报价: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(115,43,NUMTOSTRN(MBK23,2)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(5,63,'9点24分盘口:报价: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(115,63,NUMTOSTRN(MBK24,2)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(5,83,'9点25分盘口:报价: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(115,83,NUMTOSTRN(MBK25,2)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(5,103,'9点26分盘口:报价: '),ColorYellow,LINETHICK1;DRAWTEXTABS(115,103,NUMTOSTRN(MBK26,2)),ColorYellow,LINETHICK1;
{委买}
DRAWTEXTABS(170,3,'委买量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(213,3,NUMTOSTRN(WML21,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(170,23,'委买量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(213,23,NUMTOSTRN(WML22,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(170,43,'委买量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(213,43,NUMTOSTRN(WML23,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(170,63,'委买量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(213,63,NUMTOSTRN(WML24,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(170,83,'委买量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(213,83,NUMTOSTRN(WML25,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(170,103,'委买量: '),ColorYellow,LINETHICK1;DRAWTEXTABS(213,103,NUMTOSTRN(WML26,0)),ColorYellow,LINETHICK1;
{委卖}
DRAWTEXTABS(270,3,'委卖量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(313,3,NUMTOSTRN(WMML21,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(270,23,'委卖量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(313,23,NUMTOSTRN(WMML22,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(270,43,'委卖量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(313,43,NUMTOSTRN(WMML23,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(270,63,'委卖量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(313,63,NUMTOSTRN(WMML24,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(270,83,'委卖量: '),ColorFFFFFF,LINETHICK1;DRAWTEXTABS(313,83,NUMTOSTRN(WMML25,0)),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(270,103,'委卖量: '),ColorYellow,LINETHICK1;DRAWTEXTABS(313,102,NUMTOSTRN(WMML26,0)),ColorYellow,LINETHICK1;
DRAWTEXTABS(370,23,'上涨家数 '+NUMTOSTRN(上涨家数,0) + '家'),Colorred,LINETHICK1;
DRAWTEXTABS(370,43,'下跌家数 '+NUMTOSTRN(下跌家数,0) + '家'),Colorgreen,LINETHICK1;
DRAWTEXTABS(370,63,'竞价成交笔 '+NUMTOSTRN(竞价成交笔,0) + '笔'),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(370,83,'竞价成交量 '+NUMTOSTRN(竞价成交量,0) + '手'),ColorFFFFFF,LINETHICK1;
DRAWTEXTABS(370,103,'竞价成交额 '+NUMTOSTRN(竞价成交额,2)+'万元'),ColorFFFFFF,LINETHICK1; |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!