FuturesWarehouseRatio
简述
与系统参数(期货品种代码、时间)相关。
1、当Warehouse、Region为空时,为仓单变比(%);
2、当Warehouse为空、Region为地区名时,为上期所-指定地区仓单变比(%);
3、当Warehouse为仓库名、Region为空时,为指定仓库仓单变比(%);
4、当Warehouse为仓库名、Region为地区名时,为上期所-指定地区仓库仓单变比(%),
5、算法:仓单净变动量/前一交易日仓单总量*100%
FuturesWarehouseRatio(Warehouse:String;Region:String):real
名称 | 类型 | 说明 |
---|
Warehouse | String | 仓库名 |
Region | String | 地区名 |
返回 | real | 实数 |
//返回截止日为20200518,关于SN(锡)的仓单占比(%)
SetSysParam(pn_stock(),'sn');
SetSysParam(pn_date(),20200518T);
return FuturesWarehouseRatio();