funds_rpt_Treynor_Ratio
简述
特雷诺比率
funds_rpt_Treynor_Ratio(funds:Array;IndexID:String;begt:Date;endt:Date;rf:Real;DaysIn1y:Integer):Real
| 名称 | 类型 | 说明 |
|---|
| funds | Array | 一维字符串数组,基金序列 |
| IndexID | String | 字符串,市场基准代码 |
| begt | Date | 日期,开始日 |
| endt | Date | 日期,截止日 |
| rf | Real | 实数,无风险收益率(%) |
| DaysIn1y | Integer | 整数,年化期数 |
| 返回 | Real | Real,特雷诺比率 |
funds := Array("OF000001","OF000003","OF000004");
BegT := 20200101T;
EndT := 20201231T;
indexid := "SH000300";
return funds_rpt_Treynor_Ratio(funds,IndexID,begt,endt,0,1);
//0.13