HBValuePS2
简述
环比数据(每股),与系统参数(证券代码,时间)相关。
HBValuePS2(RDate:Integer;InfoID:Integer;InfoID2:Integer;GetTheNearest:Integer):Real
名称 | 类型 | 说明 |
---|
RDate | Integer | 整数。报告期 |
InfoID | Integer | 整数。基本面 |
InfoID2 | Integer | 整数。基本面ID2 |
GetTheNearest | Integer | 整数。是否取最接近报告期 |
返回 | Real | 实数。环比数据(每股)。 |
环比数据=(InfoID的RDate数据-InfoID2的环比报告期数据)/报告期股本
//SZ000728 20221231的第四季度基本每股收益(业绩快报)
SetSysParam(pn_stock(),"SZ000728");
SetSysParam(PN_Date(),20230327T);
return HBValuePS2(20221231,41006,46078,0);
//结果:0.128032651854782