天软金融分析.NET函数大全 > 金融函数 > 基金 > 基金评估

FundSharpMeasure    

简述
返回Sharp指数(与系统证券pn_stock()相关)
定义
FundSharpMeasure(BegT:Date;EndT:Date;Rf:Real;DataSelect:Integer):Real
参数
名称类型说明
BegTDate开始日期
EndTDate截止日期
RfReal无风险年收益率(%)
DataSelectInteger所选取的数据
返回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
相关