funds_rpt_Sharpe_ratio
简述
夏普比率
funds_rpt_Sharpe_ratio(funds:Array;begt:Date;endt:Date;rf:Real;DaysIn1y:Integer):Real
| 名称 | 类型 | 说明 |
|---|
| funds | Array | 一维字符串数组,基金序列 |
| begt | Date | 日期,开始日 |
| endt | Date | 日期,截止日 |
| rf | Real | 实数,无风险收益率(%) |
| DaysIn1y | Integer | 整数,年化期数 |
| 返回 | Real | Real,夏普比率 |
funds := Array("OF000001","OF000003","OF000004");
BegT := 20200101T; EndT := 20201231T; return funds_rpt_Sharpe_ratio(funds,begt,endt,0,1); //0.08