FundSharpMeasure
简述
返回Sharp指数(与系统证券pn_stock()相关)
FundSharpMeasure(BegT:Date;EndT:Date;Rf:Real;DataSelect:Integer):Real
| 名称 | 类型 | 说明 |
|---|
| BegT | Date | 开始日期 |
| EndT | Date | 截止日期 |
| Rf | Real | 无风险年收益率(%) |
| DataSelect | Integer | 所选取的数据
 |
| 返回 | Real | 实数,Sharp指数 |
Sharp=(Rp-Rf_)/Std
Std是基金收益率序列的标准差
Rp是基金收益率的均值
//取华安创新2003年3月14日到2012年10月19日之间的Sharp指数
Setsysparam(pn_stock(),'OF040001');
ReturnFundSharpMeasure(inttodate(20030314),inttodate(20121019),2,0);
//结果:0.04014