# 金融 / 基金 / 投资组合 / 持股情况 ## `fundHKStocksPercent(stock_id, rdate)` 声明:function 获取基金指定报告期港股占净值比例 | 参数 | 类型 | 说明 | | ---------- | ------ | ----------------- | | `stock_id` | string | 证券,证券代码 | | `rdate` | int | 报告期,指定报告期 | 返回:float ### 示例 范例01:获取前海开源沪港深优势基金在20241231港股的占比 ```tsl // 获取前海开源沪港深优势基金在20241231港股的占比 stockid := "OF001875"; rdate := 20241231; return FundHKStocksPercent(StockId, rdate); ``` ## `fundSCCentralization(report_date, to_no)` 声明:function 返回基金的持股集中度,与系统证券pn_stock()相关 | 参数 | 类型 | 说明 | | ------------- | ------- | --------------------- | | `report_date` | integer | 报告期 | | `to_no` | integer | 整型,前N名,取值如下 | 返回:int ### 示例 范例01:调用函数 ```tsl // 返回华安创新2010年一季报的前十名的持股集中度 setSysParam(pn_stock(), 'OF040001'); r_date := 20100331; return fundScCentralization(r_date, 10); // 输出:37.45 ``` ## `fundSCCentralizationGrow(r_date, r_date_2, to_no)` 声明:function 返回基金的持股集中度变动,与系统证券pn_stock()相关 | 参数 | 类型 | 说明 | | ---------- | ------- | ---------- | | `r_date` | integer | 报告期 | | `r_date_2` | integer | 同比报告期 | | `to_no` | integer | 整数,详情 | 返回:real ### 示例 范例01:调用函数 ```tsl // 返回华安创新2011年中报与2010年中报的前十大持股的集中度的变动 setSysParam(pn_stock(), 'OF040001'); r_date1 := 20110630; r_date2 := 20100630; return fundScCentralizationGrow(r_date1, r_date2, 10); // 输出:8.37 ``` ## `fundSCHoldAmount(report_date, to_no)` 声明:function 返回基金指定报告期的前N名持股股数和,与系统证券pn_stock()相关。(废弃) | 参数 | 类型 | 说明 | | ------------- | ------- | ------------------ | | `report_date` | integer | 报告期 | | `to_no` | integer | 整数,详情如下所示 | 返回:int ### 示例 范例01:调用函数 ```tsl // 获得华安创新2010一季报公布的前10名持股股数和 setSysParam(pn_stock(), 'OF040001'); r_date := 20100331; return fundScHoldAmount(r_date, 10); // 输出:91966000 ``` ## `fundSCIncludeStockId(report_date, to_no, stock_id)` 声明:function 基金的前N名股票是否包含指定的股票。与系统股票pn_stock()、当前时间pn_date()相关 | 参数 | 类型 | 说明 | | ------------- | -------- | --------------------- | | `report_date` | datetime | 报告期类型,报告期; | | `to_no` | int | 整型,前N名,取值如下 | | `stock_id` | string | 证券类型,股票代码 | 返回:bool ### 示例 范例01:调用函数 ```tsl setsysparam(pn_stock(), "OF162714"); Return FundSCIncludeStockId(20180630, 10, "SH600718"); ``` ## `fundSCMarketValue(report_date, to_no)` 声明:function 返回基金前N名持股的股票市值和,与系统证券pn_stock()相关 | 参数 | 类型 | 说明 | | ------------- | ---- | --------------------- | | `report_date` | int | 报告期 | | `to_no` | int | 整型,前N名,取值如下 | 返回:int ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), 'OF040001'); RDate := 20100331; return FundSCMarketValue(RDate, 10); ``` ## `fundSCMarketValueGrow(r_date, r_date_2, to_no)` 声明:function 返回基金前N名持股的股票市值和的变动,与系统证券pn_stock()相关 | 参数 | 类型 | 说明 | | ---------- | ------- | --------------------- | | `r_date` | integer | 报告期 | | `r_date_2` | integer | 报告期 | | `to_no` | integer | 整型,前N名,取值如下 | 返回:real ### 示例 范例01:调用函数 ```tsl // 返回华安创新2011年中报与2010年中报前10大持股的股票市值和的变动 setSysParam(pn_stock(), 'OF040001'); r_date1 := 20110630; r_date2 := 20100630; return fundScMarketValueGrow(r_date1, r_date2, 10); // 输出:709404118.56 ``` ## `fundSCMarketValueGrowRatio(r_date, r_date_2, to_no)` 声明:function 返回基金前N名持股的股票市值和的变动比(%),与系统证券pn_stock()相关 | 参数 | 类型 | 说明 | | ---------- | ------- | ------------------ | | `r_date` | integer | 报告期 | | `r_date_2` | integer | 报告期 | | `to_no` | integer | 整型,具体如下所示 | 返回:real ### 示例 范例01:调用函数 ```tsl // 返回华安创新2011年中报与2010年中报的前10大持股股票市值和的变动比(%) setSysParam(pn_stock(), 'OF040001'); r_date1 := 20110630; r_date2 := 20100630; ReturnFundSCMarketValueGrowRatio(r_date1, r_date2, 10); // 输出:51.61 ``` ## `fundscnonactivepercent(rdate, topn)` 声明:function 第N名股票积极投资市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票积极投资市值占净值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonactivepercent(20191231, 2); // 输出:0 ``` ## `fundscnonactivepercent2(rdate, topn)` 声明:function 第N名股票积极投资市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票积极投资市值占总值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonactivepercent2(20191231, 2); // 输出:0 ``` ## `fundscnonactivepercent3(rdate, topn)` 声明:function 第N名股票积极投资市值占股票市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票积极投资市值占股票市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonactivepercent3(20191231, 2); // 输出:0 ``` ## `fundscnonactivepercent4(rdate, topn)` 声明:function 第N名股票积极投资市值占积极投资部分比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票积极投资市值占积极投资部分比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonactivepercent4(20191231, 2); // 输出:0 ``` ## `fundscnonactivepercent5(rdate, topn)` 声明:function 第N名股票积极投资市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票积极投资市值占权益投资市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonactivepercent5(20191231, 2); // 输出:0 ``` ## `fundscnonactivevalue(rdate, topn)` 声明:function 第N名股票积极投资市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票积极投资市值 setSysParam(pn_stock(), "OF510300"); return fundscnonactivevalue(20191231, 2); // 输出:0 ``` ## `fundscnonactivevolume(rdate, topn)` 声明:function 第N名股票积极投资股数,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票积极投资股数 setSysParam(pn_stock(), "OF510300"); return fundscnonactivevolume(20191231, 2); // 输出:0 ``` ## `fundscnoncode(rdate, topn)` 声明:function 第N名股票代码,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:string ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票代码 setSysParam(pn_stock(), "OF510300"); return fundscnoncode(20191231, 2); // 输出:SH600519 ``` ## `fundscnonindexpercent(rdate, topn)` 声明:function 第N名股票指数投资市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票指数投资市值占净值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonindexpercent(20191231, 2); // 输出:4.18 ``` ## `fundscnonindexpercent2(rdate, topn)` 声明:function 第N名股票指数投资市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票指数投资市值占总值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonindexpercent2(20191231, 2); // 输出:4.16797774282387 ``` ## `fundscnonindexpercent3(rdate, topn)` 声明:function 第N名股票指数投资市值占股票市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票指数投资市值占股票市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonindexpercent3(20191231, 2); // 输出:4.21127420209799 ``` ## `fundscnonindexpercent4(rdate, topn)` 声明:function 第N名股票指数投资市值占指数投资部分比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票指数投资市值占指数投资部分比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonindexpercent4(20191231, 2); // 输出:4.21127420209799 ``` ## `fundscnonindexpercent5(rdate, topn)` 声明:function 第N名股票指数投资市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,第N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231第2名股票指数投资市值占权益投资市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscnonindexpercent5(20191231, 2); // 输出:4.21127420209799 ``` ## `fundscnonindexvalue(rdate, topn)` 声明:function 第N名股票指数投资市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNIndexValue(20191231, 2); // 输出:1683554509 ``` ## `fundscnonindexvolume(rdate, topn)` 声明:function 第N名股票指数投资股数,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNIndexVolume(20191231, 2); // 输出:1423123 ``` ## `fundscnonpercent(rdate, topn)` 声明:function 第N名股票市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNPercent(20191231, 2); // 输出:4.18 ``` ## `fundscnonpercent2(rdate, topn)` 声明:function 第N名股票市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNPercent2(20191231, 2); // 输出:4.16797774282387 ``` ## `fundscnonpercent3(rdate, topn)` 声明:function 第N名股票市值占股票市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNPercent3(20191231, 2); // 输出:4.21127420209799 ``` ## `fundscnonpercent4(rdate, topn)` 声明:function 第N名股票市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNPercent4(20191231, 2); // 输出:4.21127420209799 ``` ## `fundscnonvalue(rdate, topn)` 声明:function 第N名股票持有市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNValue(20191231, 2); // 输出:1683554509 ``` ## `fundscnonvolume(rdate, topn)` 声明:function 第N名股票持有股数,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,第N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCNoNVolume(20191231, 2); // 输出:1423123 ``` ## `fundSCPercentage(report_date, to_no)` 声明:function 返回基金指定报告期的前N名持股占净值比例之和,与系统证券pn_stock()相关 | 参数 | 类型 | 说明 | | ------------- | ------- | -------------- | | `report_date` | integer | 报告期 | | `to_no` | integer | 整型,取值如下 | 返回:real ### 示例 范例01:调用函数 ```tsl // 返回基金在2010年一季报的前10名持股占净值比例和 setSysParam(pn_stock(), 'OF040001'); r_date := 20100331; return fundScPercentage(r_date, 10); // 输出:24.44 ``` ## `fundSCPercentGrow(r_date, r_date_2, to_no)` 声明:function 返回基金的前N名持股占净值比例和的变动,与系统证券pn_stock()相关 | 参数 | 类型 | 说明 | | ---------- | ------- | -------------- | | `r_date` | integer | 报告期 | | `r_date_2` | integer | 报告期 | | `to_no` | integer | 整型,取值如下 | 返回:real ### 示例 范例01:调用函数 ```tsl // 返回华夏创新在2010年一季报和中报的前十名持股的占净值比例和的变动 setSysParam(pn_stock(), 'OF040001'); r_date1 := 20100331; r_date2 := 20100630; return fundScPercentGrow(r_date2, r_date1, 10); // 输出:-3.99 ``` ## `fundscstockactivepercent(rdate, stockid)` 声明:function 指定股票积极投资市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercent(20191231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivepercent2(rdate, stockid)` 声明:function 指定股票积极投资市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercent2(20191231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivepercent3(rdate, stockid)` 声明:function 指定股票积极投资市值占股票市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercent3(20191231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivepercent4(rdate, stockid)` 声明:function 指定股票积极投资市值占积极投资部分比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercent4(20191231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivepercent5(rdate, stockid)` 声明:function 指定股票积极投资市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercent5(20191231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivepercentgrow(rdate, rdate_2, stockid)` 声明:function 指定股票积极投资市值占净值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercentGrow(20191231, 20181231, 'SZ000002'); // 输出:0 ``` ## `fundscstockactivepercentgrow2(rdate, rdate_2, stockid)` 声明:function 指定股票积极投资市值占总值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercentGrow2(20191231, 20181231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivepercentgrow3(rdate, rdate_2, stockid)` 声明:function 指定股票积极投资市值占股票市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercentGrow3(20191231, 20181231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivepercentgrow4(rdate, rdate_2, stockid)` 声明:function 指定股票积极投资市值占权益投资市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActivePercentGrow4(20191231, 20181231, "SZ000002"); ``` ## `fundscstockactivevalue(rdate, stockid)` 声明:function 指定股票积极投资市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActiveValue(20191231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivevaluegrow(rdate, rdate_2, stockid)` 声明:function 指定股票积极投资市值变动,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActiveValueGrow(20191231, 20181231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivevaluegrowratio(rdate, rdate_2, stockid)` 声明:function 指定股票积极投资市值变比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActiveValueGrowRatio(20191231, 20181231, "SZ000002"); // 输出:0 ``` ## `fundscstockactivevolume(rdate, stockid)` 声明:function 指定股票积极投资股数,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockActiveVolume(20191231, "SZ000002"); // 输出:0 ``` ## `fundscstockindexpercent(rdate, stockid)` 声明:function 指定股票指数投资市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockIndexPercent(20191231, "SZ000002"); // 输出:1.35 ``` ## `fundscstockindexpercent2(rdate, stockid)` 声明:function 指定股票指数投资市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockIndexPercent2(20191231, "SZ000002"); // 输出:1.35187633739411 ``` ## `fundSCStockIndexPercent3(rdate, stock_id)` 声明:function 指定股票指数投资市值占股票市值比(%),与系统参数(基金)相关 | 参数 | 类型 | 说明 | | ---------- | ------ | ---------------- | | `rdate` | int | 整数。指定报告期 | | `stock_id` | string | 字符串。股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockIndexPercent3(20191231, "SZ000002"); ``` ## `fundscstockindexpercent4(rdate, stockid)` 声明:function 指定股票指数投资市值占指数投资部分比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockIndexPercent4(20191231, "SZ000002"); // 输出:1.36591946871515 ``` ## `fundscstockindexpercent5(rdate, stockid)` 声明:function 指定股票指数投资市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A指数投资市值占权益投资市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscstockindexpercent5(20191231, "SZ000002"); // 输出:1.36591946871515 ``` ## `fundscstockindexpercentgrow(rdate, rdate_2, stockid)` 声明:function 指定股票指数投资市值占净值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间第2名股票指数投资市值占净值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscstockindexpercentgrow(20191231, 20181231, 2); // 输出:0.12 ``` ## `fundscstockindexpercentgrow2(rdate, rdate_2, stockid)` 声明:function 指定股票指数投资市值占总值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间万科A指数投资市值占总值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscstockindexpercentgrow2(20191231, 20181231, "SZ000002"); // 输出:0.119102751396919 ``` ## `fundscstockindexpercentgrow3(rdate, rdate_2, stockid)` 声明:function 指定股票指数投资市值占股票市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间万科A指数投资市值占股票市值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscstockindexpercentgrow3(20191231, 20181231, 2); // 输出:0.128935091068871 ``` ## `fundscstockindexpercentgrow4(rdate, rdate_2, stockid)` 声明:function 指定股票指数投资市值占权益投资市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间万科A指数投资市值占权益投资市值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscstockindexpercentgrow4(20191231, 20181231, 'SZ000002'); // 输出:0.128935091068871 ``` ## `fundscstockindexvalue(rdate, stockid)` 声明:function 指定股票指数投资市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A指数投资市值 setSysParam(pn_stock(), "OF510300"); return fundscstockindexvalue(20191231, 'SZ000002'); // 输出:546057979.16 ``` ## `fundscstockindexvaluegrow(rdate, rdate_2, stockid)` 声明:function 指定股票指数投资市值变动,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间万科A指数投资市值变动 setSysParam(pn_stock(), "OF510300"); return fundscstockindexvaluegrow(20191231, 20181231, 'SZ000002'); // 输出:134879568.8 ``` ## `fundscstockindexvaluegrowratio(rdate, rdate_2, stockid)` 声明:function 指定股票指数投资市值变比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间指数投资市值变比(%) setSysParam(pn_stock(), "OF510300"); return fundscstockindexvaluegrowratio(20191231, 20181231, "SZ000002"); // 输出:32.8031738538773 ``` ## `fundscstockindexvolume(rdate, stockid)` 声明:function 指定股票指数投资股数,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A指数投资股数 setSysParam(pn_stock(), "OF510300"); return fundscstockindexvolume(20191231, 'SZ000002'); // 输出:16968862 ``` ## `fundscstockpercent(rdate, stockid)` 声明:function 指定股票市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A市值占净值比(%) setSysParam(pn_stock(), "OF510300"); return fundscstockpercent(20191231, "SZ000002"); // 输出:1.35 ``` ## `fundscstockpercent2(rdate, stockid)` 声明:function 指定股票市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A市值占总值比(%) setSysParam(pn_stock(), "OF510300"); return fundscstockpercent2(20191231, "SZ000002"); // 输出:1.35187633739411 ``` ## `fundscstockpercent3(rdate, stockid)` 声明:function 指定股票市值占股票市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A指定股票市值占股票市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscstockpercent3(20191231, "SZ000002"); // 输出:1.36591946871515 ``` ## `fundscstockpercent4(rdate, stockid)` 声明:function 指定股票市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockPercent4(20191231, "SZ000002"); // 输出:1.36591946871515 ``` ## `fundscstockpercentgrow(rdate, rdate_2, stockid)` 声明:function 指定股票市值占净值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockPercentGrow(20191231, 20181231, "SZ000002"); // 输出:0.12 ``` ## `fundscstockpercentgrow2(rdate, rdate_2, stockid)` 声明:function 指定股票市值占总值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockPercentGrow2(20191231, 20181231, "SZ000002"); ``` ## `fundscstockpercentgrow3(rdate, rdate_2, stockid)` 声明:function 指定股票市值占股票市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockPercentGrow3(20191231, 20181231, "SZ000002"); ``` ## `fundscstockpercentgrow4(rdate, rdate_2, stockid)` 声明:function 指定股票市值占权益投资市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockPercentGrow4(20191231, 20181231, "SZ000002"); ``` ## `fundscstockvalue(rdate, stockid)` 声明:function 指定股票持有市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A积持有市值 setSysParam(pn_stock(), "OF510300"); return fundscstockvalue(20191231, "SZ000002"); // 输出:546057979.16 ``` ## `fundscstockvaluegrow(rdate, rdate_2, stockid)` 声明:function 指定股票持有市值变动,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockValueGrow(20191231, 20181231, "SZ000002"); // 输出:134879568.8 ``` ## `fundscstockvaluegrowratio(rdate, rdate_2, stockid)` 声明:function 指定股票持有市值变比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------ | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `stockid` | string | 字符串,股票代码 | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCStockValueGrowRatio(20191231, 20181231, "SZ000002"); ``` ## `fundscstockvolume(rdate, stockid)` 声明:function 指定股票持有股数,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `stockid` | string | 字符串,股票代码 | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231万科A股票持有股数 setSysParam(pn_stock(), "OF510300"); return fundscstockvolume(20191231, "SZ000002"); // 输出:16968862 ``` ## `fundscsumnactivepercent(rdate, topn)` 声明:function 前N名股票积极投资市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票积极投资市值占净值比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnactivepercent(20191231, 2); // 输出:0 ``` ## `fundscsumnactivepercent2(rdate, topn)` 声明:function 前N名股票积极投资市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActivePercent2(20191231, 2); // 输出:0 ``` ## `fundscsumnactivepercent3(rdate, topn)` 声明:function 前N名股票积极投资市值占股票市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票积极投资市值占股票市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnactivepercent3(20191231, 2); // 输出:0 ``` ## `fundscsumnactivepercent4(rdate, topn)` 声明:function 前N名股票积极投资市值占积极投资部分比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActivePercent4(20191231, 2); // 输出:0 ``` ## `fundscsumnactivepercent5(rdate, topn)` 声明:function 前N名股票积极投资市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票积极投资市值占权益投资市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnactivepercent5(20191231, 2); // 输出:0 ``` ## `fundscsumnactivevalue(rdate, topn)` 声明:function 前N名股票积极投资市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActiveValue(20191231, 2); // 输出:0 ``` ## `fundscsumnactivevaluegrow(rdate, rdate_2, topn)` 声明:function 前N名股票积极投资市值变动,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActiveValueGrow(20191231, 20181231, 2); // 输出:0 ``` ## `fundscsumnactivevaluegrowratio(rdate, rdate_2, topn)` 声明:function 前N名股票积极投资市值变比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActiveValueGrowRatio(20191231, 20181231, 2); // 输出:0 ``` ## `fundscsumnactivevaluegrowratio2(rdate, rdate_2, topn)` 声明:function 前N名股票积极投资市值占净值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActiveValueGrowRatio2(20191231, 20181231, 2); // 输出:0 ``` ## `fundscsumnactivevaluegrowratio3(rdate, rdate_2, topn)` 声明:function 前N名股票积极投资市值占总值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActiveValueGrowRatio3(20191231, 20181231, 2); // 输出:0 ``` ## `fundscsumnactivevaluegrowratio4(rdate, rdate_2, topn)` 声明:function 前N名股票积极投资市值占股票市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间前2名股票积极投资市值占股票市值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnactivevaluegrowratio4(20191231, 20181231, 2); // 输出:0 ``` ## `fundscsumnactivevaluegrowratio5(rdate, rdate_2, topn)` 声明:function 前N名股票积极投资市值占权益投资市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNActiveValueGrowRatio5(20191231, 20181231, 2); // 输出:0 ``` ## `fundscsumnindexpercent(rdate, topn)` 声明:function 前N名股票指数投资市值占净值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票指数投资市值占净值比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexpercent(20191231, 2); // 输出:10.83 ``` ## `fundscsumnindexpercent2(rdate, topn)` 声明:function 前N名股票指数投资市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票指数投资市值占总值比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexpercent2(20191231, 2); // 输出:10.8037555610196 ``` ## `fundscsumnindexpercent3(rdate, topn)` 声明:function 前N名股票指数投资市值占股票市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票指数投资市值占股票市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexpercent3(20191231, 2); // 输出:10.9159836945456 ``` ## `fundscsumnindexpercent4(rdate, topn)` 声明:function 前N名股票指数投资市值占指数投资部分比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票指数投资市值占指数投资部分比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexpercent4(20191231, 2); // 输出:10.9159836945456 ``` ## `fundscsumnindexpercent5(rdate, topn)` 声明:function 前N名股票指数投资市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票指数投资市值占权益投资市值比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexpercent5(20191231, 2); // 输出:10.9159836945456 ``` ## `fundscsumnindexvalue(rdate, topn)` 声明:function 前N名股票指数投资市值,与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231前2名股票指数投资市值 setSysParam(pn_stock(), "OF510300"); return fundscsumnindexvalue(20191231, 2); // 输出:4363917590.54 ``` ## `fundSCSumNIndexValueGrow(rdate, rdate_2, top_n)` 声明:function 前N名股票指数投资市值变动,与系统参数(基金)相关 | 参数 | 类型 | 说明 | | ---------- | ---- | ---------------- | | `rdate` | int | 整数。指定报告期 | | `rdate_2` | int | 整数。同比报告期 | | `top_n` | int | 整数。前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNIndexValueGrow(20191231, 20181231, 2); ``` ## `fundscsumnindexvaluegrowratio(rdate, rdate_2, topn)` 声明:function 前N名股票指数投资市值变比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231前2名指数投资市值变比(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexvaluegrowratio(20191231, 20181231, 2); // 输出:35.8910845392378 ``` ## `fundscsumnindexvaluegrowratio2(rdate, rdate_2, topn)` 声明:function 前N名股票指数投资市值占净值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间前2名股票指数投资市值占净值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexvaluegrowratio2(20191231, 20181231, 2); // 输出:1.18 ``` ## `fundscsumnindexvaluegrowratio3(rdate, rdate_2, topn)` 声明:function 前N名股票指数投资市值占总值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231前2名股票指数投资市值占总值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexvaluegrowratio3(20191231, 20181231, 2); // 输出:1.1756998821252 ``` ## `fundscsumnindexvaluegrowratio4(rdate, rdate_2, topn)` 声明:function 前N名股票指数投资市值占股票市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间前2名股票指数投资市值占股票市值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexvaluegrowratio4(20191231, 20181231, 2); // 输出:1.25504141189035 ``` ## `fundscsumnindexvaluegrowratio5(rdate, rdate_2, topn)` 声明:function 前N名股票指数投资市值占权益投资市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ------- | --------------- | | `rdate` | integer | 整型,指定报告期 | | `rdate_2` | integer | 整型,同比报告期 | | `topn` | integer | 整型,前N | 返回:real ### 示例 范例01:调用函数 ```tsl // "OF510300"在20191231与20181231期间前2名股票指数投资市值占权益投资市值比变动(%) setSysParam(pn_stock(), "OF510300"); return fundscsumnindexvaluegrowratio5(20191231, 20181231, 2); // 输出:1.25504141189035 ``` ## `fundscsumnpercent2(rdate, topn)` 声明:function 前N名股票市值占总值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNPercent2(20191231, 2); // 输出:10.8037555610196 ``` ## `fundscsumnpercent4(rdate, topn)` 声明:function 前N名股票市值占权益投资市值比(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | ------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNPercent4(20191231, 2); // 输出:10.9159836945456 ``` ## `fundscsumnvaluegrowratio3(rdate, rdate_2, topn)` 声明:function 前N名股票市值占总值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNValueGrowRatio3(20191231, 20181231, 2); // 输出:1.1756998821252 ``` ## `fundscsumnvaluegrowratio5(rdate, rdate_2, topn)` 声明:function 前N名股票市值占权益投资市值比变动(%),与当前证券(基金)相关 | 参数 | 类型 | 说明 | | --------- | ---- | --------------- | | `rdate` | int | 整型,指定报告期 | | `rdate_2` | int | 整型,同比报告期 | | `topn` | int | 整型,前N | 返回:float ### 示例 范例01:调用函数 ```tsl SetSysParam(pn_stock(), "OF510300"); return FundSCSumNValueGrowRatio5(20191231, 20181231, 2); // 输出:1.25504141189035 ```