StocksBTDepartmentTradeCountSum2
简述
N日指定营业部交易次数,与系统参数(时间)相关。
StocksBTDepartmentTradeCountSum2(StockArr:Array;N:Integer;Direction:Integer;DepartmentName:String):Integer
| 名称 | 类型 | 说明 |
|---|
| StockArr | Array | 数组。股票列表 |
| N | Integer | 整数。交易日 |
| Direction | Integer | 用户自定义。交易方向,取值如下:
|
| DepartmentName | String | 字符串。营业部名称 |
| 返回 | Integer | 整数。N日指定营业部交易次数。 |
//2020年11月20日的2日内机构专用对于上证A股的买入笔数
bk:=getbk("上证A股");
setsysparam(pn_date(),20201120T);
return StocksBTDepartmentTradeCountSum2(bk,2,2,"机构专用");
//结果:32