天软金融分析.NET函数大全 > 金融函数 > 基本面 > 基本 > 报告期数据获取 > 环比

HBValue2    

简述
环比数据(按季度),与系统参数(证券代码,时间)相关。
定义
HBValue2(RDate_:Integer;InfoID:Integer;InfoID2:Integer;GetTheNearest:Integer):Real
参数
名称类型说明
RDate_Integer整数。报告期
InfoIDInteger整数。基本面
InfoID2Integer整数。基本面ID2
GetTheNearestInteger整数。如无指定报告,找最接近的
返回Real实数。环比数据(按季度)。
  • 算法
    环比数据=InfoID的RDate数据-InfoID2的环比报告期数据
    范例


    //SZ000728 2022第四季度归母净利润季度数据(业绩快报)

        SetSysParam(pn_stock(),"SZ000728");

        SetSysParam(PN_Date(),20230327T);

        return HBValue2(20221231,41006,46078,0);

        //结果:558706055.49

相关