天软金融分析.NET函数大全 > 金融函数 > 基金 > 基金收益率

FundRSquared    

简述

基金R2。与系统股票pn_stock()、当前时间pn_date(),周期cy_cycle()相关。
定义
FundRSquared(IndexId:String;BegT:DateTime;EndT:DateTime;DataSelect:Integer;Cycle:String):Real;
参数
名称类型说明
IndexIdString指数类型,指数代码;
BegTDateTime日期类型,开始日;
EndTDateTime日期类型,截止日;
DataSelectInteger用户自定义类型,所选取的数据;
显示名 取值
净值数据 0
行情数据 1
费前 4
费后 5
CycleString周期类型,周期
返回Real实数
  • 范例

    //SH000018 ,2016年1月1日到2018年8月22日日线的净值数据的R2。
    Return FundRSquared("SH000018",20160101T,20180822T,0,cy_day());
    //结果:0.48236
相关