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