FundDeviationDegree_HY
简述
指定行业偏离度(%)(默认基准)
偏离度:Wp-Wb,其中Wp为基金持仓指定行业权重,Wb为业绩基准权重
FundDeviationDegree_HY(Rdate:Integer;PorType:Integer;IndustryType:Integer;IndustryName:String):Real
| 名称 | 类型 | 说明 |
|---|
| Rdate | Integer | 报告期,指定报告期 |
| PorType | Integer | 用户自定义,占比计算方式
|
显示名 |
取值 | |
占净值比例(%) |
"占净值比例(%)" | |
占市值比例(%) |
"占市值比例(%)" |
|
| IndustryType | Integer | 用户自定义,行业类型
|
显示名 |
取值 | |
申万一级行业 |
1 | |
证监会一级行业 |
2 | |
中证一级行业 |
3 |
|
| IndustryName | String | 字符串,行业名称 |
| 返回 | Real | 指定行业偏离度(%)(默认基准) |
// 获取"OF510500"报告期20250630的申万房地产偏离度(%),按占净值比例(%)计算
FundID:="OF510500";
Setsysparam(Pn_stock(),FundID);
RDate:=20250630;
return FundDeviationDegree_HY(RDate,'占净值比例(%)',1,'申万房地产');
//结果:-0.049