10681 lines
181 KiB
Markdown
10681 lines
181 KiB
Markdown
#### 基金
|
||
|
||
##### 内容
|
||
|
||
- ETF
|
||
- 财务分析
|
||
- 分红送配
|
||
- 份额结构
|
||
- 分级基金
|
||
- 基本情况
|
||
- 基金净值
|
||
- 基金经理
|
||
- 基金评估
|
||
- 基金收益率
|
||
- 投资组合
|
||
- 资产配置
|
||
- 基金行业
|
||
- 交易席位情况
|
||
- 中间函数
|
||
- ETF申购赎回-基本信息
|
||
- 基本信息
|
||
|
||
##### ETF
|
||
|
||
###### 内容
|
||
|
||
- Fund_CalculatedIOPV
|
||
- Getfundetfconstituent
|
||
|
||
###### Fund_CalculatedIOPV
|
||
|
||
算法
|
||
|
||
2015-05-04日前:
|
||
|
||
基金份额参考净值(IOPV)=
|
||
|
||
(申购、赎回清单(T 日)中必须用现金替代的替代金额
|
||
|
||
+申购、赎回清单中(T 日)可以用现金替代成份证券的数量与最新成交价相乘之和
|
||
|
||
+申购、赎回清单中(T 日)禁止用现金替代成份证券的数量与最新成交价相乘之和
|
||
|
||
+申购、赎回清单中(T 日)的预估现金部分)/最小申购、赎回单位对应的基金份额(T 日)
|
||
|
||
2015-05-04日后:FundIPOV(),交易所公布。范例
|
||
|
||
范例01:用Fund_CalculatedIOPV提取一段时间的5秒线的时点净值数据
|
||
|
||
```text
|
||
StockID:='OF159901';
|
||
|
||
BegT:=IntToDate(20140430);
|
||
|
||
EndT:=BegT+10/24;
|
||
|
||
JYCode:=spec(base(302033),StockID);
|
||
|
||
setsysparam(pn_stock(),JYCode);
|
||
|
||
setsysparam(pn_cycle(),cy_5s());
|
||
|
||
setsysparam(pn_date(),endt);
|
||
|
||
days:=tradedays(begt,endt);
|
||
|
||
name:=stockname(StockID);
|
||
|
||
return nday(days,'代码',StockID,
|
||
|
||
'名称',name,
|
||
|
||
'时间',datetimetostr(sp_time()),
|
||
|
||
'时点净值-计算',Fund_CalculatedIOPV());
|
||
```
|
||
|
||
部分结果截图:
|
||
|
||
范例02:
|
||
|
||
```text
|
||
//提取指定时点交易所公布 IOPV和用基金申赎清单计算的 IOPV
|
||
|
||
SetSysParam(PN_Stock(),'OF510050');
|
||
|
||
SetSysParam(PN_Cycle(),cy_1m());
|
||
|
||
SetSysParam(PN_Date(),20140430T+10/24);
|
||
|
||
//交易所公布 IOPV
|
||
|
||
IOPV1:=FundIPOV();
|
||
|
||
//用基金申赎清单计算的 IOPV
|
||
|
||
IOPV2:=Fund_CalculatedIOPV();
|
||
|
||
return array(IOPV1,IOPV2);
|
||
|
||
//返回:array(1.492,1.4923)
|
||
```
|
||
|
||
###### Getfundetfconstituent
|
||
|
||
范例
|
||
|
||
```text
|
||
//获取基金OF510050在2020-1-10日的成份股表
|
||
|
||
|
||
ret:=Getfundetfconstituent('OF510050',20200110T,t);
|
||
|
||
|
||
if ret then return t;
|
||
|
||
else return array();//获取失败
|
||
```
|
||
|
||
//返回结果:
|
||
|
||
##### 财务分析
|
||
|
||
###### 内容
|
||
|
||
- FIS1_1
|
||
- FIS1_2
|
||
- FIS1_3
|
||
- FIS1_4
|
||
- FIS1_5
|
||
- FIS1_6
|
||
- FIS1_7
|
||
- FIS2_1
|
||
- FIS2_2
|
||
- FIS2_3
|
||
|
||
###### FIS1_1
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的股票差价收入/收入合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS1_1(20041231);
|
||
|
||
//结果:76.533205
|
||
```
|
||
|
||
###### FIS1_2
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的债券差价收入/收入合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS1_2(20041231)
|
||
|
||
//结果:2.838036
|
||
```
|
||
|
||
###### FIS1_3
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的买入返售证券收入/收入合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS1_3(20041231);
|
||
|
||
//结果:0.026424
|
||
```
|
||
|
||
###### FIS1_4
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的其他收入/收入合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS1_4(20041231);
|
||
|
||
//结果:2.306001
|
||
```
|
||
|
||
###### FIS1_5
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的股票利息收入/收入合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS1_5(20041231);
|
||
|
||
//结果:9.187455
|
||
```
|
||
|
||
###### FIS1_6
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的债券利息收入/收入合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS1_6(20041231);
|
||
|
||
//结果:8.246515
|
||
```
|
||
|
||
###### FIS1_7
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的存款利息收入/收入合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS1_7(20041231);
|
||
|
||
//结果:0.862363
|
||
```
|
||
|
||
###### FIS2_1
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的业绩报酬/费用合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS2_1(20041231);
|
||
|
||
//结果:81.465797
|
||
```
|
||
|
||
###### FIS2_2
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的托管费用/费用合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS2_2(20041231);
|
||
|
||
//结果:13.577633
|
||
```
|
||
|
||
###### FIS2_3
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年年报的其他费用/费用合计(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FIS2_3(20041231);
|
||
|
||
//结果:1.153828
|
||
```
|
||
|
||
##### 分红送配
|
||
|
||
###### 内容
|
||
|
||
- FundPFAmount
|
||
- FundPFAmount2
|
||
- FundPFAmountII
|
||
- FundPFAmountII2
|
||
- FundPFInfo
|
||
- FundPFInfo2
|
||
- FundPFPercent
|
||
- FundCashAndBonusInfo
|
||
- FundPFNumberII
|
||
- FundDistributionInfo
|
||
|
||
###### FundPFAmount
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰2008年2月1日到2010年3月5日之间的分红总额(万)
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return FundPFAmount (inttodate(20080201),inttodate(20100305));
|
||
|
||
//结果:336476
|
||
```
|
||
|
||
###### FundPFAmount2
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰上市以来到2012年8月31日之间的分红总额(万)
|
||
|
||
Setsysparam(pn_stock(),'SH500001') ;
|
||
|
||
Setsysparam(pn_date(),inttodate(20120831));
|
||
|
||
Return FundPFAmount2();
|
||
|
||
//结果:597157
|
||
```
|
||
|
||
###### FundPFAmountII
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰2005年2月1日到2012年3月5日之间的分红(元/份)
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return FundPFAmountII(inttodate(20050201),inttodate(20120305));
|
||
|
||
//结果:2.35
|
||
```
|
||
|
||
###### FundPFAmountII2
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰上市以来到2012年8月31日之间的分红(元/份)
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Setsysparam(pn_date(),inttodate(20120831));
|
||
|
||
Return FundPFAmountII2 ();
|
||
|
||
//结果:3.03
|
||
```
|
||
|
||
###### FundPFInfo
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰2005年2月1日到2012年3月5日之间的分红情况
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return FundPFInfo(inttodate(20050201),inttodate(20120305));
|
||
```
|
||
|
||
结果:
|
||
|
||
###### FundPFInfo2
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰上市以来到2012年8月31日之间的分红情况
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Setsysparam(pn_date(),inttodate(20120831));
|
||
|
||
Return FundPFInfo2();
|
||
```
|
||
|
||
结果:
|
||
|
||
###### FundPFPercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰2005年2月1日到2012年3月5日之间的分红(复合比例/份)
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return FundPFPercent(inttodate(20050201),inttodate(20120305));
|
||
|
||
//结果:1.69
|
||
```
|
||
|
||
###### FundCashAndBonusInfo
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰2005年2月1日到2012年3月5日之间的分红和拆分情况
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return FundCashAndBonusInfo(inttodate(20050201),inttodate(20120305));
|
||
```
|
||
|
||
结果:
|
||
|
||
###### FundPFNumberII
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰2005年2月1日到2012年3月5日之间的分红次数
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return FundPFNumberII(inttodate(20050201),inttodate(20120305));
|
||
|
||
//结果:6
|
||
```
|
||
|
||
###### FundDistributionInfo
|
||
|
||
范例
|
||
|
||
```text
|
||
//SH600718在2001-01-01至2010-01-01的扩募情况。
|
||
|
||
SetSysParam(PN_Stock(),'SH600718');
|
||
|
||
return FundDistributionInfo(20010101T,20100101T);
|
||
```
|
||
|
||
##### 份额结构
|
||
|
||
###### 内容
|
||
|
||
- FundNSGrowRatio
|
||
- FundNSGrowValue
|
||
- FundTSGrowRatio
|
||
- FundNegotiableShares
|
||
- FundNegotiableShares3
|
||
- FundShares
|
||
- FundShares3
|
||
- FundTSGrowValue
|
||
- FundTotalShares
|
||
- FundTotalShares3
|
||
- FundNetAssetValue
|
||
- FundNetAssetValueQK
|
||
|
||
###### FundNSGrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2005年1月1日到2012年1月1日之间的流通份额变比(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FundNSGrowRatio(inttodate(20050101),inttodate(20120101));
|
||
|
||
//结果:302.6716
|
||
```
|
||
|
||
###### FundNSGrowValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2005年1月1日到2012年1月1日之间的流通份额变动
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
Return FundNSGrowValue(inttodate(20050101),inttodate(20120101));
|
||
|
||
//结果:7357481259.22
|
||
```
|
||
|
||
###### FundTSGrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2005年1月1日到2012年1月1日之间的总份额变比(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FundTSGrowRatio(inttodate(20050101),inttodate(20120101));
|
||
|
||
//结果:302.67
|
||
```
|
||
|
||
###### FundNegotiableShares
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月18日的流通份额
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
ReturnFundNegotiableShares(inttodate(20121018));
|
||
|
||
//结果:8915597665.48
|
||
```
|
||
|
||
###### FundNegotiableShares3
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月18日的最新流通份额
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Setsysparam(pn_date(),inttodate(20121018));
|
||
|
||
ReturnFundNegotiableShares3();
|
||
|
||
//结果:8915597665.48
|
||
```
|
||
|
||
###### FundShares
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月18日的总份额
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FundShares(inttodate(20121018),"总份额");
|
||
|
||
//结果:8915597665.48
|
||
```
|
||
|
||
###### FundShares3
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月18日的总份额
|
||
|
||
Setsysparam(pn_stock(),'OF040001');Setsysparam(pn_date(),inttodate(20121018));
|
||
|
||
Return FundShares3("总份额");
|
||
|
||
//结果:8915597665.48
|
||
```
|
||
|
||
###### FundTSGrowValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2004年9月30日到2012年10月18日之间的总份额变动
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
ReturnFundTSGrowValue(inttodate(20040930),inttodate(20121018));
|
||
|
||
//结果:6432568919.11
|
||
```
|
||
|
||
###### FundTotalShares
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月18日的总份额
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FundTotalShares(inttodate(20121018));
|
||
|
||
//结果:8915597665.48
|
||
```
|
||
|
||
###### FundTotalShares3
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月18日的最新总份额
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Setsysparam(pn_date(),inttodate(20121018));
|
||
|
||
ReturnFundTotalShares3();
|
||
|
||
//结果:8915597665.48
|
||
```
|
||
|
||
###### FundNetAssetValue
|
||
|
||
范例
|
||
|
||
```text
|
||
Rdate := 20221231;
|
||
|
||
fundID := "OF000001";
|
||
|
||
sp_s(pn_stock(),FundID);
|
||
|
||
return FundNetAssetValue(Rdate);//3148229855.4
|
||
```
|
||
|
||
###### FundNetAssetValueQK
|
||
|
||
范例
|
||
|
||
范例1
|
||
|
||
```text
|
||
begt := 20220101t;
|
||
|
||
endt := 20240101t;
|
||
|
||
sp_s(pn_stock(),"OF000001");
|
||
|
||
return FundNetAssetValueQK(begt,endt);
|
||
```
|
||
|
||
返回:
|
||
|
||
##### 分级基金
|
||
|
||
###### 内容
|
||
|
||
- GetAllStructuredFunds
|
||
- 报表
|
||
- 分级A基金
|
||
- 分级B基金
|
||
- 分级母基金
|
||
- 中间函数
|
||
|
||
###### GetAllStructuredFunds
|
||
|
||
范例
|
||
|
||
```text
|
||
Return GetAllStructuredFunds();
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 报表
|
||
|
||
####### 内容
|
||
|
||
- RPT_StructuredFund
|
||
|
||
####### RPT_StructuredFund
|
||
|
||
算法
|
||
|
||
1、从分级母基金板块中筛选出两个子基金都在交易所上市的母基金AllFund
|
||
|
||
2、过滤掉基金风格为股票型、分级B代码没上市、表基金.业绩比较基准(303)为空的母基金。提取其他母基金的母基金报表。
|
||
|
||
3、按‘预估折价率(%)’进行分组。范例
|
||
|
||
```text
|
||
//返回2018年9月3日的分级基金-母基金报表
|
||
|
||
return RPT_StructuredFund(20180903T);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 分级A基金
|
||
|
||
####### 内容
|
||
|
||
- FundHSLOfA4
|
||
- FundDiscountRatioOfA4
|
||
- FundShareIncreaseofA
|
||
|
||
####### FundHSLOfA4
|
||
|
||
算法
|
||
|
||
换手率(%)=基金成交份数/基金单位总额\*100%范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级A类换手率(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundHSLOfA4(20180903T);
|
||
|
||
//结果:1.48574824
|
||
```
|
||
|
||
####### FundDiscountRatioOfA4
|
||
|
||
算法
|
||
|
||
分级A的预估折溢价率 =(分级 A实时价格/分级A预估净值-1)\*100%范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级A类指定日折溢价率(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundDiscountRatioOfA4(20180903T);
|
||
|
||
//结果:-6.08175474
|
||
```
|
||
|
||
####### FundShareIncreaseofA
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级A类份额增长
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
Return FundShareIncreaseofA(20180903T);
|
||
|
||
//结果:-50000
|
||
```
|
||
|
||
###### 分级B基金
|
||
|
||
####### 内容
|
||
|
||
- FundVirtualDiscountRatioOfB4
|
||
- FundNAVLeverage4
|
||
- FundHSLOfB4
|
||
- FundShareLeverage
|
||
- FundShareIncreaseofB
|
||
- FundCalculatedNAVOfB4
|
||
- FundPriceLeverage4
|
||
|
||
####### FundVirtualDiscountRatioOfB4
|
||
|
||
算法
|
||
|
||
分级A的预估折溢价率 =(分级 B实时价格/分级B预估净值-1)\*100%范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级B类预估折价率(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundVirtualDiscountRatioOfB4(20180903T);
|
||
|
||
//结果:5.00532481
|
||
```
|
||
|
||
####### FundNAVLeverage4
|
||
|
||
算法
|
||
|
||
分级B类净值杠杆=(母基金净值/B份额净值)×份额杠杆范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级B类净值杠杆
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundNAVLeverage4(20180903T);
|
||
|
||
//结果:2.07036247
|
||
```
|
||
|
||
####### FundHSLOfB4
|
||
|
||
算法
|
||
|
||
换手率(%)=基金成交份数/基金单位总额\*100%范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级B类换手率(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundHSLOfB4(20180903T);
|
||
|
||
//结果:1.48574824
|
||
```
|
||
|
||
####### FundShareLeverage
|
||
|
||
算法
|
||
|
||
份额杠杆=(A份额份数+B份额份数)/B份额份数范例
|
||
|
||
```text
|
||
//返回基金OF161028的份额杠杆
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundShareLeverage();
|
||
|
||
//结果:2
|
||
```
|
||
|
||
####### FundShareIncreaseofB
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级B类份额增长
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundShareIncreaseofB(20180903T);
|
||
|
||
//结果:-50000
|
||
```
|
||
|
||
####### FundCalculatedNAVOfB4
|
||
|
||
算法
|
||
|
||
预估净值 = T-1净值\*(1+指数涨幅)范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级B类预估净值
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundCalculatedNAVOfB4(20180903T);
|
||
|
||
//结果:0.939
|
||
```
|
||
|
||
####### FundPriceLeverage4
|
||
|
||
算法
|
||
|
||
杠杆=份额杠杆/B类价格\*指定日净值数据
|
||
|
||
其中,份额杠杆=(A份额份数+B份额份数)/B份额份数范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的分级B类价格杠杆
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundPriceLeverage4(20180903T);
|
||
|
||
//结果:1.96957404
|
||
```
|
||
|
||
###### 分级母基金
|
||
|
||
####### 内容
|
||
|
||
- FundCalculatedNAVError4
|
||
- FundTrackingError
|
||
- FundCalculatedNAVAvgError
|
||
- FundVirtualDiscountRatio4
|
||
- FundVirtualTrackingError
|
||
- FundVirtualPrice4
|
||
- FundCalculatedNAV4
|
||
|
||
####### FundCalculatedNAVError4
|
||
|
||
算法
|
||
|
||
母基金预估净值相对误差(%)=(母基金预估净值/指定日净值-1)\*100%范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的母基金预估净值相对误差(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundCalculatedNAVError4(20180903T);
|
||
|
||
//结果:0
|
||
```
|
||
|
||
####### FundTrackingError
|
||
|
||
算法
|
||
|
||
跟踪误差(%)=
|
||
|
||
(净值增长率(%) - 基金预估涨幅(%))的差值的标准差范例
|
||
|
||
```text
|
||
//返回基金OF161028在2016年1月1日到2018年9月3日的母基金跟踪误差(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundTrackingError(20160101T,20180903T);
|
||
|
||
//结果:0.08006259
|
||
```
|
||
|
||
####### FundCalculatedNAVAvgError
|
||
|
||
算法
|
||
|
||
母基金预估净值相对误差的均值(%)=mean(预估净值-单位净值)范例
|
||
|
||
```text
|
||
//返回基金OF161028在22016年1月1日到2018年9月3日的母基金预估净值相对误差的均值(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundCalculatedNAVAvgError(20160101T,20180903T);
|
||
|
||
//结果:-0.000305373755905978
|
||
```
|
||
|
||
####### FundVirtualDiscountRatio4
|
||
|
||
算法
|
||
|
||
折溢价率=(虚拟价格/预估净值-1)\*100范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的母基金预估折价率(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundVirtualDiscountRatio4(20180903T);
|
||
|
||
//结果:-0.72091
|
||
```
|
||
|
||
####### FundVirtualTrackingError
|
||
|
||
算法
|
||
|
||
母基金预估净值相对误差的标准差(%)=(单位净值/预估净值-1)\*100范例
|
||
|
||
```text
|
||
//返回基金OF161028在2016年1月1日到2018年9月3日的母基金预估净值相对误差的标准差(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundVirtualTrackingError(20160101T,20180903T);
|
||
|
||
//结果:0.08047
|
||
```
|
||
|
||
####### FundVirtualPrice4
|
||
|
||
算法
|
||
|
||
虚拟价格=A收盘*A占比+B收盘*B占比范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的母基金虚拟价格
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundVirtualPrice4(20180903T);
|
||
|
||
//结果:0.964
|
||
```
|
||
|
||
####### FundCalculatedNAV4
|
||
|
||
算法
|
||
|
||
预估净值 = T-1净值\*(1+指数涨幅)范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的母基金预估净值
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundCalculatedNAV4(20180903T);
|
||
|
||
//结果:0.971
|
||
```
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- FundTrueNAV_All
|
||
- FundVirtualNAWZF4
|
||
- FundAdjustNAV2
|
||
- FundShareIncreaseOfRatio
|
||
- FundAdjustNAV1
|
||
- FundHSL
|
||
- GetDepositRate
|
||
- FundBenchmarkReturn4
|
||
- pf_BenchmarkReturnDayly3
|
||
- FundShareIncrease
|
||
- FundCalculatedNAV_All
|
||
- FundMarketShare
|
||
|
||
####### FundTrueNAV_All
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的母基金真实净值
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundTrueNAV_All(20180903T,0);
|
||
|
||
//结果:0.971
|
||
```
|
||
|
||
####### FundVirtualNAWZF4
|
||
|
||
算法
|
||
|
||
v1:T日母基金预估净值
|
||
|
||
v2:T-1日母基金预估净值
|
||
|
||
如果v2不为0,则返回(v1/v2-1)\*100;否则返回0。范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的基金预估净值涨幅(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundVirtualNAWZF4(20180903T);
|
||
|
||
//结果:-1.5213
|
||
```
|
||
|
||
####### FundAdjustNAV2
|
||
|
||
算法
|
||
|
||
调整前单位净值 := (单位净值+红利比)\*拆分比范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年8月22日,获取T-1调整前单位净值(预估折溢价)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundAdjustNAV2(20180822T);
|
||
|
||
//结果:0.99
|
||
```
|
||
|
||
####### FundShareIncreaseOfRatio
|
||
|
||
算法
|
||
|
||
份额增长率(%)=(变动前份额/变动后份额-1)\*100范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日,获取分级A和B类份额增长率(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundShareIncreaseOfRatio(20180903T);
|
||
|
||
//结果:-0.04951
|
||
```
|
||
|
||
####### FundAdjustNAV1
|
||
|
||
算法
|
||
|
||
T-1调整后单位净值(预估净值)=(T-1单位净值 - 红利比)/拆分比范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日,获取T-1调整后单位净值(预估净值)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundAdjustNAV1(20180903T);
|
||
|
||
//结果:0.969
|
||
```
|
||
|
||
####### FundHSL
|
||
|
||
算法
|
||
|
||
换手率(%)=成交量/总份额范例
|
||
|
||
```text
|
||
//返回分级A基金SZ150169在2018年1月1日到2018年9月3日的分级子基金换手率(%)
|
||
|
||
setsysparam(pn_stock(),"SZ150169");
|
||
|
||
return FundHSL(20180101T,20180903T);
|
||
|
||
//结果:140.1105636
|
||
```
|
||
|
||
####### GetDepositRate
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回2018年9月3日的银行存款利率
|
||
|
||
return GetDepositRate("IR000001",20180903);
|
||
|
||
//结果:0.35
|
||
```
|
||
|
||
####### FundBenchmarkReturn4
|
||
|
||
算法
|
||
|
||
基准预估涨幅(%)=(前一日价格/基准日价格-1)\*100范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年9月3日的基准预估涨幅(%)
|
||
|
||
setsysparam(pn_stock(),"OF161028");
|
||
|
||
return FundBenchmarkReturn4(20180903T);
|
||
|
||
//结果:0.20716
|
||
```
|
||
|
||
####### pf_BenchmarkReturnDayly3
|
||
|
||
算法
|
||
|
||
基准日收益率(%)= (前一日价格/基准日价格-1)\*100范例
|
||
|
||
```text
|
||
//返回基金OF161028在2018年8月22日;年化收益率折算为日收益率方法为:单利法;年化收益率折算天数为:365;浮动利率为:2;返回类型为:日收益率值。setsysparam(pn_stock(),"OF161028");
|
||
|
||
barr:=array(
|
||
|
||
("代码":"IR000004","比例(%)":35.0,"年化收益率(%)":2.75),
|
||
|
||
("代码":"SH000300","比例(%)":65.0,"年化收益率(%)":0.0));
|
||
|
||
return pf_BenchmarkReturnDayly3(barr,20180822T,0,365,2,0);
|
||
|
||
//结果:-0.35717
|
||
```
|
||
|
||
####### FundShareIncrease
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回基金OF000092在2017年7月3日前两个交易日之间的份额变动数目
|
||
|
||
setsysparam(pn_stock(),"OF000092");
|
||
|
||
Return FundShareIncrease(20170703T);
|
||
|
||
//结果:-8324378.64
|
||
```
|
||
|
||
####### FundCalculatedNAV_All
|
||
|
||
算法
|
||
|
||
母基金:
|
||
|
||
基金T日基金预估净值(用于计算折溢价)=T-1母基金单位净值(调整后)\*(1+涨幅)
|
||
|
||
分级A基金:
|
||
|
||
基金T日基金预估净值(用于计算折溢价)=经过分红拆分调整后的T-1分级A的净值
|
||
|
||
分级B基金:
|
||
|
||
基金T日基金预估净值(用于计算折溢价)=(母基金净值 - A净值\*A占比)/B占比范例
|
||
|
||
```text
|
||
//返回基金OF161811在2018年9月3日T日基金预估净值(用于计算折溢价)
|
||
|
||
setsysparam(pn_stock(),"OF161811");
|
||
|
||
Return FundCalculatedNAV_All(20180903T,0);
|
||
|
||
//结果:0.839
|
||
```
|
||
|
||
####### FundMarketShare
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在20231215的流通份额(万)。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundMarketShare(20231215T,0);
|
||
|
||
//结果:1
|
||
```
|
||
|
||
##### 基本情况
|
||
|
||
###### 内容
|
||
|
||
- IsExtFund
|
||
- IsClassifyOfAFund
|
||
- FundGoMarketDate
|
||
- IsClassifyOfBFund
|
||
- FundIssueDate
|
||
- IsFund
|
||
- IsClassifyFund
|
||
- IsFundGoMarket
|
||
- IsDefinedFundIMStyle
|
||
- isscrollhold
|
||
- isclosedoperation
|
||
- NSharesOfFund
|
||
- isminiholdperiod
|
||
- isregularopenfund
|
||
- IsCurrencyFund
|
||
- fundindustrynamelv2
|
||
- isregularredeem
|
||
- fundindustrynamelv1
|
||
- isregulapurchasescrollhold
|
||
- TSharesOfFund
|
||
- bk_fundcompanylist
|
||
- fundindustrynamelv3
|
||
- fundscompanylist
|
||
- isunrestrictedopening
|
||
- fundoperationperiod
|
||
- IsOpenFund
|
||
- fundhsl2
|
||
- fundsindustrynamelv
|
||
- fundpurchaseredemptiontype
|
||
- bk_fundthemename
|
||
- 中间函数
|
||
- fundscale
|
||
- fundallthemename
|
||
- fundallcompanylist
|
||
- fundsthemename
|
||
- fundthemename
|
||
- fundinvestmentstyles
|
||
- fundindustrynamelv4
|
||
- isotherrestrictedopening
|
||
- IsCurrencyFundByEndt
|
||
- FundsFromManagerID
|
||
- FundsFromManagerName
|
||
|
||
###### IsExtFund
|
||
|
||
范例
|
||
|
||
```text
|
||
//判断华安创新是否为基金
|
||
|
||
Return IsExtFund('OF040001');
|
||
|
||
//结果:1
|
||
```
|
||
|
||
###### IsClassifyOfAFund
|
||
|
||
算法
|
||
|
||
如果FundId属于板块‘分级A基金’则返回1,否则返回0范例
|
||
|
||
```text
|
||
//判断SH502049判断是否是分级A基金
|
||
|
||
Return IsClassifyOfAFund("SH502049");
|
||
|
||
//结果:1
|
||
```
|
||
|
||
###### FundGoMarketDate
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新的上市日
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
ReturnFundGoMarketDate();
|
||
|
||
//结果:20010921
|
||
```
|
||
|
||
###### IsClassifyOfBFund
|
||
|
||
算法
|
||
|
||
如果FundId属于板块‘分级B基金’则返回1,否则返回0范例
|
||
|
||
```text
|
||
//判断SH502049判断是否是分级B基金
|
||
|
||
Return IsClassifyOfBFund("SH502049");
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### FundIssueDate
|
||
|
||
范例
|
||
|
||
```text
|
||
//取信诚增强的发行日
|
||
|
||
Setsysparam(pn_stock(),'SZ165509');
|
||
|
||
ReturnFundIssueDate();
|
||
|
||
//结果:20100913
|
||
```
|
||
|
||
###### IsFund
|
||
|
||
范例
|
||
|
||
```text
|
||
//判断万科A是否为基金
|
||
|
||
Return IsFund('SZ000002');
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### IsClassifyFund
|
||
|
||
算法
|
||
|
||
如果FundId属于板块‘分级母基金’则返回1,否则返回0范例
|
||
|
||
```text
|
||
//判断SH500003 基金安信是否是分级母基金。
|
||
|
||
Return FundCommision("SH500003");
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### IsFundGoMarket
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新在2001年05月01日是否已上市
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
ReturnIsFundGoMarket(inttodate(20010501));
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### IsDefinedFundIMStyle
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新的投资风格是否为混合型
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return IsDefinedFundIMStyle(0);
|
||
|
||
//结果:1
|
||
```
|
||
|
||
###### isscrollhold
|
||
|
||
###### isclosedoperation
|
||
|
||
###### NSharesOfFund
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰 2010年5月3日的流通股本
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return NSharesOfFund(324,inttodate(20100503));
|
||
|
||
//结果:1970000000
|
||
```
|
||
|
||
###### isminiholdperiod
|
||
|
||
###### isregularopenfund
|
||
|
||
###### IsCurrencyFund
|
||
|
||
范例
|
||
|
||
```text
|
||
//判断华安创新是否为货币型基金
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
ReturnIsCurrencyFund();
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### fundindustrynamelv2
|
||
|
||
###### isregularredeem
|
||
|
||
###### fundindustrynamelv1
|
||
|
||
###### isregulapurchasescrollhold
|
||
|
||
###### TSharesOfFund
|
||
|
||
范例
|
||
|
||
```text
|
||
//取基金金泰2010年5月3日的基金总股本
|
||
|
||
Setsysparam(pn_stock(),'SH500001');
|
||
|
||
Return TSharesOfFund (324,inttodate(20100503));
|
||
|
||
//结果:2000000000
|
||
```
|
||
|
||
###### bk_fundcompanylist
|
||
|
||
###### fundindustrynamelv3
|
||
|
||
###### fundscompanylist
|
||
|
||
###### isunrestrictedopening
|
||
|
||
###### fundoperationperiod
|
||
|
||
算法(指定日-上市日)/365
|
||
|
||
###### IsOpenFund
|
||
|
||
范例
|
||
|
||
```text
|
||
//判断华安创新是否为开放式基金
|
||
|
||
ReturnIsOpenFund('OF040001');
|
||
|
||
//结果:1
|
||
```
|
||
|
||
###### fundhsl2
|
||
|
||
###### fundsindustrynamelv
|
||
|
||
###### fundpurchaseredemptiontype
|
||
|
||
- IsClassifyOfAFund
|
||
- IsClassifyOfBFund
|
||
- IsClassifyFund
|
||
- FundGoMarketDate
|
||
- FundIssueDate
|
||
- IsDefinedFundIMStyle
|
||
- IsExtFund
|
||
- IsFund
|
||
- IsFundGoMarket
|
||
- IsOpenFund
|
||
- IsCurrencyFund
|
||
- NSharesOfFund
|
||
- TSharesOfFund
|
||
- isregulapurchasescrollhold
|
||
- fundhsl2
|
||
- fundoperationperiod
|
||
- fundindustrynamelv1
|
||
- fundsindustrynamelv
|
||
- bk_fundcompanylist
|
||
- isminiholdperiod
|
||
- isunrestrictedopening
|
||
- fundscompanylist
|
||
- isscrollhold
|
||
- fundpurchaseredemptiontype
|
||
- isregularredeem
|
||
- isregularopenfund
|
||
- isclosedoperation
|
||
- fundindustrynamelv3
|
||
- fundindustrynamelv2
|
||
- fundindustrynamelv4
|
||
- fundsthemename
|
||
- fundthemename
|
||
- bk_fundthemename
|
||
- fundallthemename
|
||
- fundinvestmentstyles
|
||
- fundscale
|
||
- fundallcompanylist
|
||
- isotherrestrictedopening
|
||
- 中间函数
|
||
- IsCurrencyFundByEndt
|
||
- FundsFromManagerID
|
||
- FundsFromManagerName
|
||
|
||
###### bk_fundthemename
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- containwords_regularredeem
|
||
- containwords_regulapurchasescrollhold
|
||
- containwords_scrollhold
|
||
- containwords_regularopenfund
|
||
- containwords_closedoperation
|
||
- notcontainwords_regularopenfund
|
||
- notcontainwords_scrollhold
|
||
- isnotcontainswords
|
||
- containwords_miniholdperiod
|
||
- containwords_otherrestrictedopening
|
||
- iscontainswords
|
||
- isthepurchaseredemptiontype
|
||
- fundindustryname
|
||
- fundindustrygetmatchstr
|
||
- fundthemegetmatchstr
|
||
- fundthemematchstring
|
||
- fundgetthemename
|
||
- fundindustrymatchstring
|
||
|
||
####### containwords_regularredeem
|
||
|
||
####### containwords_regulapurchasescrollhold
|
||
|
||
####### containwords_scrollhold
|
||
|
||
####### containwords_regularopenfund
|
||
|
||
####### containwords_closedoperation
|
||
|
||
####### notcontainwords_regularopenfund
|
||
|
||
####### notcontainwords_scrollhold
|
||
|
||
####### isnotcontainswords
|
||
|
||
####### containwords_miniholdperiod
|
||
|
||
####### containwords_otherrestrictedopening
|
||
|
||
####### iscontainswords
|
||
|
||
####### isthepurchaseredemptiontype
|
||
|
||
####### fundindustryname
|
||
|
||
####### fundindustrygetmatchstr
|
||
|
||
####### fundthemegetmatchstr
|
||
|
||
####### fundthemematchstring
|
||
|
||
####### fundgetthemename
|
||
|
||
####### fundindustrymatchstring
|
||
|
||
###### fundscale
|
||
|
||
范例
|
||
|
||
```text
|
||
//获取OF510050在20240823的基金规模
|
||
|
||
setsysparam(pn_stock(),"OF510050");
|
||
|
||
setsysparam(pn_date(),20240823T);
|
||
|
||
return FundScale();
|
||
```
|
||
|
||
###### fundallthemename
|
||
|
||
###### fundallcompanylist
|
||
|
||
###### fundsthemename
|
||
|
||
###### fundthemename
|
||
|
||
###### fundinvestmentstyles
|
||
|
||
###### fundindustrynamelv4
|
||
|
||
###### isotherrestrictedopening
|
||
|
||
###### IsCurrencyFundByEndt
|
||
|
||
范例
|
||
|
||
```text
|
||
sp_s(pn_stock(),'OF110050');
|
||
|
||
EndT := 20200911T;
|
||
|
||
return IsCurrencyFundByEndt(EndT); //结果:1
|
||
```
|
||
|
||
###### FundsFromManagerID
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundsFromManagerID('7289');
|
||
```
|
||
|
||
结果:
|
||
|
||
###### FundsFromManagerName
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundsFromManagerName('张惠');
|
||
```
|
||
|
||
结果:
|
||
|
||
##### 基金净值
|
||
|
||
###### 内容
|
||
|
||
- FundMaxMinNAW
|
||
- FundMaxMinNAW2
|
||
- FundNAW
|
||
- FundNAWDW
|
||
- FundNAWLInfo
|
||
- FundNAWLInfo2
|
||
- FundNAWLJ
|
||
- FundNAWZf
|
||
- FundNAWLInfoFromBegT
|
||
- FundNAWZf4
|
||
- FundNAWZf3
|
||
- FundNAWZf_fh
|
||
- FundIPOV
|
||
- FundIPOC
|
||
- FundNAWLAccumulativeNetAsset
|
||
- FundNAWMWFJJDWSY
|
||
- FundNAWLNetAsset
|
||
- FundNAWZJQRSYZSDNSYL
|
||
- FundNAWByRateBegtEndt
|
||
- FundNAWByRateEndT
|
||
- FundZjRatio4
|
||
- Fund7DaysAnnualRate
|
||
- 中间函数
|
||
- FundAdjustNAW
|
||
- FundNetAssetperUnitInReportDate
|
||
|
||
###### FundMaxMinNAW
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2004年9月30日到2012年10月18日之间的最大单位净值
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundMaxMinNAW(inttodate(20040930),inttodate(20121018),0,0);
|
||
|
||
//结果:4.452
|
||
```
|
||
|
||
###### FundMaxMinNAW2
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新上市以来到2012年10月18日之间的最大单位净值
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundMaxMinNAW2(inttodate(20121018),0,0);
|
||
|
||
//结果:4.452
|
||
```
|
||
|
||
###### FundNAW
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新的净值截止日期
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
Setsysparam(pn_date(),20240506t) ;
|
||
|
||
Return FundNAW(5);
|
||
|
||
//结果:20240506
|
||
```
|
||
|
||
###### FundNAWDW
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新最新单位净值
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundNAWDW()
|
||
|
||
//结果:0.58
|
||
```
|
||
|
||
###### FundNAWLInfo
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月10日到2012年10月19日之间的单位净值和累计净值
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundNAWLInfo(inttodate(20121010),inttodate(20121019),2);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### FundNAWLInfo2
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月19日的单位净值和累计净值
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundNAWLInfo2 (inttodate(20121019),2);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### FundNAWLJ
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新的最新累计净值
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundNAWLJ();
|
||
|
||
//结果:4.1274
|
||
```
|
||
|
||
###### FundNAWZf
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月10日到2012年10月19日之间的区间净值增长率(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundNAWZf(inttodate(20121010),inttodate(20121019));
|
||
|
||
//结果:0.17
|
||
```
|
||
|
||
###### FundNAWLInfoFromBegT
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月10日到2012年10月19日之间的累计净值
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
Return
|
||
|
||
FundNAWLInfoFromBegT(inttodate(20121010),inttodate(20121019),1);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### FundNAWZf4
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月19日的日收益率(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundNAWZf4(inttodate(20121019));
|
||
|
||
//结果:-0.17
|
||
```
|
||
|
||
###### FundNAWZf3
|
||
|
||
范例
|
||
|
||
```text
|
||
{取华安创新2012年10月19日的最新日收益率(%)
|
||
|
||
注意,函数必须先设置当前时间,再设置当前股票。原因是设置当前的时间跟时间序列数据有关,如果先设置股票为'OF040001',而开放式基金是没有二级市场交易数据的,之后再设置时间为指定日,会导致当前的时间为0。从而取不出数据。}
|
||
|
||
Setsysparam(pn_date(),inttodate(20121019));
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
Return FundNAWZf3();
|
||
|
||
//结果:-0.17212
|
||
```
|
||
|
||
###### FundNAWZf_fh
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年10月10日到2012年10月19日之间的区间复合收益率(%)
|
||
|
||
Setsysparam(pn_stock(),'OF040001') ;
|
||
|
||
ReturnFundNAWZf_fh(inttodate(20121010),inttodate(20121019));
|
||
|
||
//结果:0.17
|
||
```
|
||
|
||
###### FundIPOV
|
||
|
||
范例
|
||
|
||
```text
|
||
//取国泰价值最新时点净值
|
||
|
||
Setsysparam(pn_stock(),'SZ160215') ;
|
||
|
||
SetSysParam(pn_date(),inttodate(20121019));
|
||
|
||
Return FundIPOV();
|
||
|
||
//结果:0.73
|
||
```
|
||
|
||
###### FundIPOC
|
||
|
||
范例
|
||
|
||
```text
|
||
//取国泰价值最新时点收盘
|
||
|
||
Setsysparam(pn_stock(),'SZ160215') ;
|
||
|
||
SetSysParam(pn_date(),inttodate(20121019));
|
||
|
||
Return FundIPOC();
|
||
|
||
//结果:0.72
|
||
```
|
||
|
||
###### FundNAWLAccumulativeNetAsset
|
||
|
||
范例
|
||
|
||
```text
|
||
//基金OF162714在2018年8月22日的累计净值。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAWLAccumulativeNetAsset(20180822T);
|
||
|
||
//结果:1.1249
|
||
```
|
||
|
||
###### FundNAWMWFJJDWSY
|
||
|
||
范例
|
||
|
||
```text
|
||
//基金OF090005在2018年8月22日的每万份基金单位收益。
|
||
|
||
setsysparam(pn_stock(),"OF090005");
|
||
|
||
Return FundNAWMWFJJDWSY(20180822T);
|
||
|
||
//结果:0.86
|
||
```
|
||
|
||
###### FundNAWLNetAsset
|
||
|
||
范例
|
||
|
||
```text
|
||
//基金OF162714在2018年8月22日的单位净值。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAWLNetAsset(20180822T);
|
||
|
||
//结果:0.9557
|
||
```
|
||
|
||
###### FundNAWZJQRSYZSDNSYL
|
||
|
||
范例
|
||
|
||
```text
|
||
//基金OF090005在2018年8月22日的最近七日收益折算的年收益率。
|
||
|
||
setsysparam(pn_stock(),"OF090005");
|
||
|
||
Return FundNAWZJQRSYZSDNSYL (20180822T);
|
||
|
||
//结果:3.243
|
||
```
|
||
|
||
###### FundNAWByRateBegtEndt
|
||
|
||
范例
|
||
|
||
范例1:
|
||
|
||
//返回OF000001在2021-05-01至2021-05-14的复权基准日为上市日的比例复权净值数据
|
||
|
||
```text
|
||
setsysparam(pn_stock(),"OF000001");
|
||
|
||
SetSysParam(PN_Rate(),1) ;
|
||
|
||
SetSysParam(PN_RateDay(),-1);
|
||
|
||
return FundNAWByRateBegtEndt(20210501T,20210514T);
|
||
```
|
||
|
||
返回结果:(图中结果保留了四位小数)
|
||
|
||
范例2:
|
||
|
||
//返回多个票在一段区间内的复权净值数据
|
||
|
||
```text
|
||
funds:= array('OF00006','OF000017','OF000020');
|
||
|
||
r:=array();
|
||
|
||
SetSysParam(PN_Rate(),1) ;
|
||
|
||
SetSysParam(PN_RateDay(),-1);
|
||
|
||
for i:=0 to length(funds)-1 do
|
||
|
||
r&=select funds[i] as "Fundid",* from spec(FundNAWByRateBegtEndt(20240601T,20240621T),funds[i]) end;
|
||
|
||
return r;
|
||
```
|
||
|
||
###### FundNAWByRateEndT
|
||
|
||
- FundMaxMinNAW
|
||
- FundMaxMinNAW2
|
||
- FundNAW
|
||
- FundNAWDW
|
||
- FundNAWLInfo
|
||
- FundNAWLInfo2
|
||
- FundNAWLJ
|
||
- FundNAWZf
|
||
- FundNAWLInfoFromBegT
|
||
- FundNAWZf4
|
||
- FundNAWZf3
|
||
- FundNAWZf_fh
|
||
- FundIPOV
|
||
- FundIPOC
|
||
- FundNAWLAccumulativeNetAsset
|
||
- FundNAWMWFJJDWSY
|
||
- FundNAWLNetAsset
|
||
- FundNAWZJQRSYZSDNSYL
|
||
- FundNAWByRateBegtEndt
|
||
- FundNAWByRateEndT
|
||
- FundZjRatio4
|
||
- Fund7DaysAnnualRate
|
||
- 中间函数
|
||
- FundAdjustNAW
|
||
- FundNetAssetperUnitInReportDate
|
||
|
||
###### FundZjRatio4
|
||
|
||
算法(时点收盘-时点净值)/时点净值范例
|
||
|
||
```text
|
||
// "OF512610"在2020-09-24的ETF时点折价率
|
||
|
||
SetSysParam(pn_stock(),"OF512610");
|
||
|
||
SetSysParam(PN_Date(),20200924T);
|
||
|
||
return FundZjRatio4(); //结果:-0.14
|
||
```
|
||
|
||
###### Fund7DaysAnnualRate
|
||
|
||
算法七日总收益率(%)/7\*365范例
|
||
|
||
```text
|
||
//OF162206在20210302的的7日折算的年化收益率
|
||
|
||
return Fund7DaysAnnualRate("OF162206",20210302T); //2.369
|
||
```
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- CalculateRatioRightQJ
|
||
- CalculateComplexRightQJ
|
||
|
||
####### CalculateRatioRightQJ
|
||
|
||
- CalculateRatioRightQJ
|
||
- CalculateComplexRightQJ
|
||
|
||
####### CalculateComplexRightQJ
|
||
|
||
###### FundAdjustNAW
|
||
|
||
算法
|
||
|
||
基金分红或拆分当日根据公布净值计算收益率时存在误差,需要对当日实际净值进行调整,一般来说,分红影响当日盘前净值,拆分影响当日盘后净值。调整过程如下:
|
||
|
||
分红日:盘前净值为分红后净值
|
||
|
||
盘前净值 = 昨日公布净值-红利比
|
||
|
||
拆分日:盘后净值分为调整前净值与调整后净值
|
||
|
||
若拆分日有净值公布
|
||
|
||
盘后调整前净值 = 当日公布净值\*拆分比
|
||
|
||
盘后调整后净值 = 当日公布净值
|
||
|
||
若拆分日无净值公布
|
||
|
||
盘后调整前净值 = 昨日公布净值
|
||
|
||
盘后调整后净值 = 昨日公布净值/拆分比范例
|
||
|
||
```text
|
||
Setsysparam(Pn_Stock(),"OF000001");
|
||
Endt:=20230112T;
|
||
|
||
return FundAdjustNAW(Endt,1); //0.9952
|
||
```
|
||
|
||
###### FundNetAssetperUnitInReportDate
|
||
|
||
范例
|
||
|
||
```text
|
||
// SH500001在报告期20211231的单位净值
|
||
|
||
SetSysParam(PN_Stock(),'SH500001');
|
||
|
||
return FundNetAssetperUnitInReportDate(20211231);
|
||
```
|
||
|
||
##### 基金经理
|
||
|
||
###### 内容
|
||
|
||
- 中间函数
|
||
- FundManagerByEndt
|
||
- Fundmanagerid2funds
|
||
- Fundmanagerid2fundsendt
|
||
- Fundmanagername2id
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- FundManagerDataByEndt
|
||
|
||
####### FundManagerDataByEndt
|
||
|
||
###### FundManagerByEndt
|
||
|
||
###### Fundmanagerid2funds
|
||
|
||
范例
|
||
|
||
```text
|
||
// 返回基金经理ID为3076管理的基金代码列表
|
||
|
||
return FundManagerID2Funds("3067");
|
||
```
|
||
|
||
###### Fundmanagerid2fundsendt
|
||
|
||
范例
|
||
|
||
```text
|
||
// 返回基金经理ID为3067在20201009日管理的基金列表
|
||
|
||
return FundManagerID2FundsEndT("3067",20201009T);
|
||
```
|
||
|
||
###### Fundmanagername2id
|
||
|
||
范例
|
||
|
||
```text
|
||
// 返回基金经理名称对应的基金经理ID号
|
||
|
||
return FundsManagerName2ID("刘朝阳");
|
||
```
|
||
|
||
##### 基金评估
|
||
|
||
###### 内容
|
||
|
||
- FundRachev
|
||
- FundOmega
|
||
- FundSortinoRatio
|
||
- FundCalmarRatio
|
||
- FundAppraisalRatio
|
||
- FundJensenMeasure
|
||
- FundSharpMeasure
|
||
- FundTreynorMeasure
|
||
- FundMeasure
|
||
- UserDefineIndex
|
||
- ZSRfRatio
|
||
|
||
###### FundRachev
|
||
|
||
算法
|
||
|
||
Rachev=(1-alpha)下的CVaR(RF-Rp)/(1-beta)下的CVaR(Rp-RF)范例
|
||
|
||
```text
|
||
//基金OF162714,2016年1月1日到2018年9月3日,无风险年收益率为3的日线净值数据的Rachev比率。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundRachev(20160101T,20180903T,3,0,cy_day());
|
||
|
||
//结果:0.68382
|
||
```
|
||
|
||
###### FundOmega
|
||
|
||
范例
|
||
|
||
```text
|
||
//SH000018,2016年1月1日到2018年9月3日,日线净值数据的Omega比率。
|
||
|
||
Return FundOmega("SH000018",20160101T,20180903T,0,cy_day());
|
||
|
||
//结果:0.98081
|
||
```
|
||
|
||
###### FundSortinoRatio
|
||
|
||
算法
|
||
|
||
索丁诺比率=(组合平均收益率-无风险收益率)/组合下方标准差(%)范例
|
||
|
||
```text
|
||
//OF162714,2016年1月1日到2018年9月3日,无风险年收益率为3,年化的日线净值数据的索丁诺比率。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundSortinoRatio(20160101T,20180903T,3,0,1,cy_day());
|
||
|
||
//结果:-0.31887
|
||
```
|
||
|
||
###### FundCalmarRatio
|
||
|
||
算法
|
||
|
||
组合Calmar比率=组合年化收益率\*100/最大回撤的绝对值范例
|
||
|
||
```text
|
||
//OF162714,2016年1月1日到2018年9月3日,无风险年收益率为3,年化的日线净值数据的Calmar。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundCalmarRatio(20160101T,20180903T,0,cy_day());
|
||
|
||
//结果:-0.18243
|
||
```
|
||
|
||
###### FundAppraisalRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2003年10月10日到2012年10月19日之间的估价比率
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
ReturnFundAppraisalRatio("SH000001",inttodate(20031010),inttodate(20121022),0);
|
||
|
||
//结果:0.03157
|
||
```
|
||
|
||
###### FundJensenMeasure
|
||
|
||
算法Jensen=(Rp-Rf*)-Beta\*(Rm-Rf*)
|
||
|
||
Rm是基准收益率序列的均值
|
||
|
||
Rp是基金收益率序列的均值
|
||
|
||
Rf\_是无风险收益率(折算) 范例
|
||
|
||
```text
|
||
//取华安创新2003年03月14日到2012年10月19日之间的Jense指数
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FundJensenMeasure("SH000001",inttodate(20030314),inttodate(20121019),1.98,0);
|
||
|
||
//结果:0.03575
|
||
```
|
||
|
||
###### FundSharpMeasure
|
||
|
||
算法Sharp=(Rp-Rf\_)/Std
|
||
|
||
Std是基金收益率序列的标准差
|
||
|
||
Rp是基金收益率的均值范例
|
||
|
||
```text
|
||
//取华安创新2003年3月14日到2012年10月19日之间的Sharp指数
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
ReturnFundSharpMeasure(inttodate(20030314),inttodate(20121019),2,0);
|
||
|
||
//结果:0.04014
|
||
```
|
||
|
||
###### FundTreynorMeasure
|
||
|
||
算法Treynor=(Rp-Rf\_)/Beta
|
||
|
||
Rp是基金收益率的均值
|
||
|
||
Rf\_是无风险收益率(折算)
|
||
|
||
beta是基金收益率序列与基准收益率序列的回归系数范例
|
||
|
||
```text
|
||
//取华安创新2003年03月14日到2012年10月19日之间的Treynor指数
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
Return FundTreynorMeasure("SH000001",inttodate(20030314),inttodate(20121019),1.98,0);
|
||
|
||
//结果:0.07722
|
||
```
|
||
|
||
###### FundMeasure
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新2012年1月21日到2012年5月21日之间的常用指标
|
||
|
||
Setsysparam(pn_stock(),'OF040001');
|
||
|
||
setsysparam(pn_cycle(),cy_day());//设置当前周期为日线
|
||
|
||
Return FundMeasure("SH000001",inttodate(20120121),inttodate(20120521),14,0);
|
||
```
|
||
|
||
//结果:
|
||
|
||
```text
|
||
//取东方红睿元三年定期开放2021年1月21日到2021年5月21日之间的常用指标
|
||
|
||
setsysparam(pn_stock(),'OF000970'); //净值按周线公布
|
||
|
||
setsysparam(pn_cycle(),cy_week()); //设置当前周期为周线
|
||
|
||
Return FundMeasure("SH000001",inttodate(20210121),inttodate(20210521),14,0);
|
||
```
|
||
|
||
返回(不完整截图):
|
||
|
||
###### UserDefineIndex
|
||
|
||
范例
|
||
|
||
```text
|
||
//取2012年10月10日到2012年10月19日的自定义指数收益率序列
|
||
|
||
SetSysParam(pn_cycle(),cy_day());
|
||
|
||
Return UserDefineIndex(
|
||
|
||
array(
|
||
|
||
("代码":"SH600000","名称":"浦发银行","比例(%)":55.00),
|
||
|
||
("代码":"SH600001","名称":"邯郸钢铁","比例(%)":35.00),
|
||
|
||
("代码":"SZ000002","名称":"万科A","比例(%)":10.00)),
|
||
|
||
inttodate(20121010),inttodate(20121019),2,False);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### ZSRfRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//获得折算后的无风险收益率
|
||
|
||
SetSysParam(pn_cycle(),cy_day());
|
||
|
||
Return ZSRfRatio(2);
|
||
|
||
//结果:0.00833
|
||
```
|
||
|
||
##### 基金收益率
|
||
|
||
###### 内容
|
||
|
||
- FundPNA
|
||
- FundAverageYTM2
|
||
- FundZjRatio
|
||
- FundAverageYTM3
|
||
- FundCorr
|
||
- FundAlpha
|
||
- FundTurnOver
|
||
- FundStdDev
|
||
- FundBeta
|
||
- FundZjRatio3
|
||
- FundNAVReturn
|
||
- FundTraingReturn3Y
|
||
- FundRSquared
|
||
- FundMarginalRisk
|
||
- FundNAVReturnQTD
|
||
- FundTraingReturn1Y
|
||
- FundVaR
|
||
- FundTraingReturn2Y
|
||
- FundMinRecoveryPeriod
|
||
- FundSemiDeviation
|
||
- FundNAVReturnITD
|
||
- FundNAVReturnYTD
|
||
- FundNAVReturnDTD
|
||
- FundNetAsset
|
||
- FundExcessReturn
|
||
- FundNAVReturnWTD
|
||
- FundTraingReturn6M
|
||
- FundMaxDrawDown
|
||
- FundTraingReturn1M
|
||
- FundTE
|
||
- FundNAVReturnMTD
|
||
|
||
###### FundPNA
|
||
|
||
算法基金市净率=收盘价/单位净值范例
|
||
|
||
```text
|
||
//获得基金金泰 20110910日的市净率
|
||
|
||
setsysparam(pn_stock(),'SH500001');
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundPNA(endt);
|
||
|
||
//结果:0.96
|
||
```
|
||
|
||
###### FundAverageYTM2
|
||
|
||
范例
|
||
|
||
```text
|
||
//获得华安创新20110101到20110910之间的周收益率均值
|
||
|
||
setsysparam(pn_stock(),'OF040001');
|
||
|
||
begt:=inttodate(20110101);
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundAverageYTM2(begt,endt);
|
||
|
||
//结果:-0.08285
|
||
```
|
||
|
||
###### FundZjRatio
|
||
|
||
算法基金折溢率/折价率=(收盘价-单位净值)/单位净值\*100范例
|
||
|
||
```text
|
||
//获得基金金泰20110910的折价率(%)
|
||
|
||
setsysparam(pn_stock(),'SH500001');
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundZjRatio(endt);
|
||
|
||
//结果:-3.69
|
||
```
|
||
|
||
###### FundAverageYTM3
|
||
|
||
算法基金风险收益率=基金平均收益率(算术)-年化无风险收益率范例
|
||
|
||
```text
|
||
//获得基金金泰20110101到20110910之间的风险收益率(%)
|
||
|
||
setsysparam(pn_stock(),'OF040001');
|
||
|
||
setsysparam(pn_cycle(),cy_day());
|
||
|
||
begt:=inttodate(20110101);
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundAverageYTM3(begt,endt,2.25);
|
||
|
||
//结果:-0.12972
|
||
```
|
||
|
||
###### FundCorr
|
||
|
||
范例
|
||
|
||
```text
|
||
//获得华安创新与上证指数从20110101到20110910之间的收益率的相关系数
|
||
|
||
setsysparam(pn_stock(),'OF040001');
|
||
|
||
begt:=inttodate(20110101);
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundCorr('SH000001',begt,endt,0);
|
||
|
||
//结果:0.3
|
||
```
|
||
|
||
###### FundAlpha
|
||
|
||
范例
|
||
|
||
```text
|
||
//取华安创新的α系数
|
||
|
||
setsysparam(pn_stock(),'OF040001');
|
||
|
||
SetSysParam(pn_cycle(),cy_day());
|
||
|
||
begt:=inttodate(20110101);
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundAlpha('SH000300',begt,endt,0);
|
||
|
||
//结果:-0.02956
|
||
```
|
||
|
||
###### FundTurnOver
|
||
|
||
算法交易周转率=基金成交份数/基金单位总额\*100%范例
|
||
|
||
```text
|
||
//获得基金金泰2011010到20110910之间的交易周转率
|
||
|
||
setsysparam(pn_stock(),'SH500001');
|
||
|
||
begt:=inttodate(20110101);
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundTurnOver(begt,endt);
|
||
|
||
//结果:51.64
|
||
```
|
||
|
||
###### FundStdDev
|
||
|
||
范例
|
||
|
||
```text
|
||
//获得华安创新20110101到20110910之间的收益率标准差
|
||
|
||
setsysparam(pn_stock(),'OF040001');
|
||
|
||
setsysparam(pn_cycle(),cy_day());
|
||
|
||
begt:=inttodate(20110101);
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
return FundStdDev(begt,endt,0) ;
|
||
|
||
//结果:1.06907
|
||
```
|
||
|
||
###### FundBeta
|
||
|
||
算法用复权后的日线数据计算
|
||
|
||
取基金和指数对数收益率序列;
|
||
|
||
计算β系数。范例
|
||
|
||
```text
|
||
//获得华安创新20110101到20110910之间的β系数
|
||
|
||
|
||
setsysparam(pn_stock(),'OF040001');
|
||
|
||
|
||
SetSysParam(pn_cycle(),cy_day());
|
||
|
||
|
||
begt:=inttodate(20110101);
|
||
|
||
|
||
endt:=inttodate(20110910);
|
||
|
||
|
||
return FundBeta('SH000300',begt,endt,0);
|
||
|
||
|
||
//结果:0.78558
|
||
```
|
||
|
||
###### FundZjRatio3
|
||
|
||
算法基金折溢率/折价率=(收盘价-单位净值)/单位净值\*100 范例
|
||
|
||
```text
|
||
//获得基金金泰20110910的最新折价率(%)
|
||
|
||
setsysparam(pn_stock(),'SH500001');
|
||
|
||
setsysparam(pn_date(),inttodate(20110910));
|
||
|
||
return FundZjRatio3();
|
||
|
||
//结果:-3.69
|
||
```
|
||
|
||
###### FundNAVReturn
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2016年1月1日到2018年9月27日,净值数据的组合收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAVReturn(20160101T,20180927T,0,1);
|
||
|
||
//结果:-5.23127
|
||
```
|
||
|
||
###### FundTraingReturn3Y
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月28日,净值数据的最近3年收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundTraingReturn3Y(20180928T,0,1);
|
||
|
||
//结果:3.32472
|
||
```
|
||
|
||
###### FundRSquared
|
||
|
||
范例
|
||
|
||
```text
|
||
//SH000018 ,2016年1月1日到2018年8月22日日线的净值数据的R2。
|
||
|
||
Return FundRSquared("SH000018",20160101T,20180822T,0,cy_day());
|
||
|
||
//结果:0.48236
|
||
```
|
||
|
||
###### FundMarginalRisk
|
||
|
||
范例
|
||
|
||
```text
|
||
//SH000018,2016年1月1日到2018年9月3日,日线净值数据的边际风险。
|
||
|
||
Return FundMarginalRisk("SH000018",20160101T,20180903T,0,1);
|
||
|
||
//结果:0.94514
|
||
```
|
||
|
||
###### FundNAVReturnQTD
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年6月30日,净值数据的本季收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAVReturnQTD(20180630T,0,1);
|
||
|
||
//结果:-36.96638
|
||
```
|
||
|
||
###### FundTraingReturn1Y
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月28日,净值数据的最近1年收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundTraingReturn1Y(20180928T,0,1);
|
||
|
||
//结果:-16.68357
|
||
```
|
||
|
||
###### FundVaR
|
||
|
||
算法
|
||
|
||
VaR(%)=年化平均收益率-置信度90的正态分布的分布逆函数\*年化标准差范例
|
||
|
||
```text
|
||
//OF162714,2016年1月1日到2018年9月27日,日线净值数据的VaR(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundVaR(20160101T,20180927T,0,cy_day());
|
||
|
||
//结果:-38.63863
|
||
```
|
||
|
||
###### FundTraingReturn2Y
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月28日,净值数据的最近2年收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundTraingReturn2Y(20180928T,0,1);
|
||
|
||
//结果:-0.21469
|
||
```
|
||
|
||
###### FundMinRecoveryPeriod
|
||
|
||
算法
|
||
|
||
净值突破前值最长时间=恢复到最大回撤起始日净值对应的日期-最大回撤起始日范例
|
||
|
||
```text
|
||
//OF090005,2016年1月1日到2018年9月3日,日线净值数据的净值突破前值最长时间。
|
||
|
||
setsysparam(pn_stock(),"OF090005");
|
||
|
||
Return FundMinRecoveryPeriod(20160101T,20180903T,0,cy_day());
|
||
|
||
//结果:2
|
||
```
|
||
|
||
###### FundSemiDeviation
|
||
|
||
算法
|
||
|
||
组合下方标准差(%)=组合收益率小于零的值的标准差范例
|
||
|
||
```text
|
||
//OF162714,2016年1月1日到2018年9月27日,年化的日线净值数据的下方标准差(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundSemiDeviation(20160101T,20180927T,0,1,cy_day());
|
||
|
||
//结果:18.5797
|
||
```
|
||
|
||
###### FundNAVReturnITD
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年10月8日,净值数据的成立以来收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAVReturnITD(20181008T,0,1);
|
||
|
||
//结果:1.37011
|
||
```
|
||
|
||
###### FundNAVReturnYTD
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月3日,净值数据的本年收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAVReturnYTD(20180903T,0,1);
|
||
|
||
//结果:-30.67985
|
||
```
|
||
|
||
###### FundNAVReturnDTD
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月7日,净值数据的本日收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAVReturnDTD(20180907T,0,1);
|
||
|
||
//结果:-5.18553
|
||
```
|
||
|
||
###### FundNetAsset
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年8月22日的净值。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNetAsset(20180822T,'单位净值');
|
||
|
||
//结果:0.9557
|
||
```
|
||
|
||
###### FundExcessReturn
|
||
|
||
范例
|
||
|
||
```text
|
||
//获取OF001344在一段时间内相对于沪深300的超额收益
|
||
|
||
setsysparam(pn_stock(),'OF001344');
|
||
|
||
Return FundExcessReturn("SH000300",20160101T,20180903T,0,0);
|
||
|
||
//返回:21.02
|
||
```
|
||
|
||
###### FundNAVReturnWTD
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月7日,净值数据的本周收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAVReturnWTD(20180907T,0,1);
|
||
|
||
//结果:-70.64383
|
||
```
|
||
|
||
###### FundTraingReturn6M
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月28日,净值数据的最近6个月收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundTraingReturn6M(20180928T,0,1);
|
||
|
||
//结果:-31.69346
|
||
```
|
||
|
||
###### FundMaxDrawDown
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2016年1月1日到2018年9月3日,净值数据的最大回撤(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundMaxDrawDown(20160101T,20180903T,0);
|
||
|
||
//结果:-28.59099
|
||
```
|
||
|
||
###### FundTraingReturn1M
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月28日,净值数据的最近1个月收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundTraingReturn1M(20180928T,0,1);
|
||
|
||
//结果:-24.32095
|
||
```
|
||
|
||
###### FundTE
|
||
|
||
范例
|
||
|
||
```text
|
||
//SH000018,2016年1月1日到2018年9月3日,无风险年收益率为3,年化的日线净值数据的跟踪误差(%)。
|
||
|
||
Return FundTE("SH000018",20160101T,20180903T,3,0,1,cy_day());
|
||
|
||
//结果:17.77457
|
||
```
|
||
|
||
###### FundNAVReturnMTD
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年9月27日,净值数据的本月收益(%)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundNAVReturnMTD(20180927T,0,1);
|
||
|
||
//结果:-11.07834
|
||
```
|
||
|
||
##### 投资组合
|
||
|
||
###### 内容
|
||
|
||
- 持股情况
|
||
- 行业配置
|
||
- 债券配置
|
||
- 资产配置
|
||
- 持有人结构
|
||
- 持债明细
|
||
- 处于转股期的可转债明细
|
||
- 份额变动
|
||
- 贵金属明细
|
||
- 基金明细
|
||
- 累计买入和卖出
|
||
- 平均剩余期限分布情况
|
||
- 资产支持证券明细
|
||
- IsFundDeclareIR
|
||
|
||
###### 持股情况
|
||
|
||
####### 内容
|
||
|
||
- FundSCHoldAmount
|
||
- Fundscnonactivepercent5
|
||
- FundSCPercentGrow
|
||
- FundSCMarketValue
|
||
- Fundscnonactivepercent2
|
||
- FundSCMarketValueGrow
|
||
- FundSCIncludeStockId
|
||
- FundSCCentralization
|
||
- FundSCPercentage
|
||
- Fundscnoncode
|
||
- Fundscnonactivepercent3
|
||
- Fundscnonindexpercent
|
||
- FundSCCentralizationGrow
|
||
- Fundscnonactivevalue
|
||
- FundSCInfo
|
||
- Fundscnonactivepercent
|
||
- Fundscnonactivevolume
|
||
- Fundscnonactivepercent4
|
||
- FundSCMarketValueGrowRatio
|
||
- Fundscstockactivepercentgrow4
|
||
- Fundscnonvolume
|
||
- Fundscstockactivepercentgrow
|
||
- Fundscnonindexpercent2
|
||
- Fundscnonpercent3
|
||
- Fundscstockactivepercent3
|
||
- Fundscnonindexpercent4
|
||
- Fundscstockactivepercent5
|
||
- Fundscnonindexvolume
|
||
- Fundscstockactivepercentgrow3
|
||
- Fundscstockactivepercent2
|
||
- Fundscnonpercent2
|
||
- Fundscnonindexvalue
|
||
- Fundscstockactivepercentgrow2
|
||
- Fundscnonvalue
|
||
- Fundscstockactivevalue
|
||
- Fundscnonindexpercent3
|
||
- Fundscnonpercent
|
||
- Fundscstockactivepercent
|
||
- Fundscnonpercent4
|
||
- Fundscnonindexpercent5
|
||
- Fundscstockactivepercent4
|
||
- Fundscstockindexpercentgrow4
|
||
- Fundscstockactivevaluegrowratio
|
||
- Fundscstockindexvaluegrowratio
|
||
- Fundscstockindexpercentgrow
|
||
- Fundscstockindexpercent2
|
||
- Fundscstockindexpercent4
|
||
- Fundscstockactivevolume
|
||
- Fundscstockindexvalue
|
||
- Fundscstockindexpercentgrow2
|
||
- Fundscstockpercent2
|
||
- Fundscstockindexvolume
|
||
- Fundscstockactivevaluegrow
|
||
- Fundscstockindexpercentgrow3
|
||
- Fundscstockpercent
|
||
- Fundscstockpercent3
|
||
- Fundscstockindexpercent
|
||
- Fundscstockindexvaluegrow
|
||
- Fundscstockindexpercent5
|
||
- Fundscstockpercent4
|
||
- Fundscsumnactivevaluegrowratio2
|
||
- Fundscsumnactivepercent3
|
||
- Fundscsumnactivevalue
|
||
- Fundscsumnactivevaluegrowratio5
|
||
- Fundscstockvolume
|
||
- Fundscstockvalue
|
||
- Fundscsumnactivepercent5
|
||
- Fundscsumnindexpercent2
|
||
- Fundscsumnactivevaluegrowratio4
|
||
- Fundscstockpercentgrow2
|
||
- Fundscstockvaluegrowratio
|
||
- Fundscsumnactivevaluegrowratio
|
||
- Fundscsumnindexpercent
|
||
- Fundscsumnactivevaluegrowratio3
|
||
- Fundscsumnactivepercent2
|
||
- Fundscstockpercentgrow4
|
||
- Fundscsumnactivepercent
|
||
- Fundscstockpercentgrow
|
||
- Fundscstockpercentgrow3
|
||
- Fundscstockvaluegrow
|
||
- Fundscsumnactivevaluegrow
|
||
- Fundscsumnactivepercent4
|
||
- Fundscsumnindexvalue
|
||
- Fundscsumnpercent2
|
||
- Fundscsumnindexvaluegrowratio4
|
||
- Fundscsumnindexpercent4
|
||
- Fundscsumnindexpercent3
|
||
- Fundscsumnvaluegrowratio5
|
||
- Fundscsumnindexvaluegrowratio3
|
||
- Fundscsumnindexvaluegrowratio
|
||
- Fundscsumnpercent4
|
||
- Fundscsumnindexvaluegrowratio2
|
||
- Fundscsumnindexpercent5
|
||
- Fundscsumnvaluegrowratio3
|
||
- Fundscsumnindexvaluegrowratio5
|
||
- FundSCStockIndexPercent3
|
||
- FundSCSumNIndexValueGrow
|
||
- 中间函数
|
||
|
||
####### FundSCHoldAmount
|
||
|
||
范例
|
||
|
||
```text
|
||
//获得华安创新2010一季报公布的前10名持股股数和
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
return FundSCHoldAmount(RDate,10);
|
||
|
||
//结果:91966000
|
||
```
|
||
|
||
####### Fundscnonactivepercent5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票积极投资市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNActivePercent5(20191231,2); //结果:0
|
||
```
|
||
|
||
####### FundSCPercentGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华夏创新在2010年一季报和中报的前十名持股的占净值比例和的变动
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20100331;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundSCPercentGrow(RDate2,RDate1,10);
|
||
|
||
//结果:-3.99
|
||
```
|
||
|
||
####### FundSCMarketValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报公布的前十名持股的股票市值和
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
return FundSCMarketValue(RDate,10);
|
||
|
||
//结果:1938735800
|
||
```
|
||
|
||
####### Fundscnonactivepercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票积极投资市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNActivePercent2(20191231,2); //结果:0
|
||
```
|
||
|
||
####### FundSCMarketValueGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报与2010年中报前10大持股的股票市值和的变动
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundSCMarketValueGrow(RDate1,RDate2,10);
|
||
|
||
//结果:709404118.56
|
||
```
|
||
|
||
####### FundSCIncludeStockId
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年中报的前十名股票是否包含SH600718。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundSCIncludeStockId(20180630,10,"SH600718");
|
||
|
||
//结果:0
|
||
```
|
||
|
||
####### FundSCCentralization
|
||
|
||
算法基金的持股集中度= (前N名持仓股票的总市值/所有持仓股票的总市值)\*100% 范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报的前十名的持股集中度
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
return FundSCCentralization(RDate,10);
|
||
|
||
//结果:37.45
|
||
```
|
||
|
||
####### FundSCPercentage
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回基金在2010年一季报的前10名持股占净值比例和
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate:=20100331;
|
||
|
||
|
||
Return FundSCPercentage(RDate,10);
|
||
|
||
//结果:24.44
|
||
```
|
||
|
||
####### Fundscnoncode
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票代码
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNCode(20191231,2); //结果:SH600519
|
||
```
|
||
|
||
####### Fundscnonactivepercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票积极投资市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNActivePercent3(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscnonindexpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票指数投资市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNIndexPercent(20191231,2); //结果:4.18
|
||
```
|
||
|
||
####### FundSCCentralizationGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报与2010年中报的前十大持股的集中度的变动
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundSCCentralizationGrow(RDate1,RDate2,10);
|
||
|
||
//结果:8.37
|
||
```
|
||
|
||
####### Fundscnonactivevalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票积极投资市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNActiveValue(20191231,2); //结果:0
|
||
```
|
||
|
||
####### FundSCInfo
|
||
|
||
范例
|
||
|
||
```text
|
||
//获得华安创新2010年一季报前3名股票明细
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
return FundSCInfo(RDate,3);
|
||
```
|
||
|
||
结果:
|
||
|
||
####### Fundscnonactivepercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票积极投资市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNActivePercent(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscnonactivevolume
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票积极投资股数
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNActiveVolume(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscnonactivepercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票积极投资市值占积极投资部分比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNActivePercent4(20191231,2); //结果:0
|
||
```
|
||
|
||
####### FundSCMarketValueGrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报与2010年中报的前10大持股股票市值和的变动比(%)
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
ReturnFundSCMarketValueGrowRatio(RDate1,RDate2,10);
|
||
|
||
//结果:51.61
|
||
```
|
||
|
||
####### Fundscstockactivepercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A积极投资市值占权益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercentGrow4(20191231,20181231,"SZ000002");
|
||
|
||
//结果:0
|
||
```
|
||
|
||
####### Fundscnonvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票持有股数
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNVolume(20191231,2); //结果:1423123
|
||
```
|
||
|
||
####### Fundscstockactivepercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A积极投资市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercentGrow(20191231,20181231,'SZ000002'); //结果:0
|
||
```
|
||
|
||
####### Fundscnonindexpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票指数投资市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNIndexPercent2(20191231,2); //结果:4.16797774282387
|
||
```
|
||
|
||
####### Fundscnonpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNPercent3(20191231,2); //结果:4.21127420209799
|
||
```
|
||
|
||
####### Fundscstockactivepercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积极投资市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercent3(20191231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscnonindexpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票指数投资市值占指数投资部分比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNIndexPercent4(20191231,2); //结果:4.21127420209799
|
||
```
|
||
|
||
####### Fundscstockactivepercent5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积极投资市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercent5(20191231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscnonindexvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票指数投资股数
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNIndexVolume(20191231,2); //结果:1423123
|
||
```
|
||
|
||
####### Fundscstockactivepercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A积极投资市值占股票市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercentGrow3(20191231,20181231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscstockactivepercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积极投资市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercent2(20191231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscnonpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNPercent2(20191231,2); //结果:4.16797774282387
|
||
```
|
||
|
||
####### Fundscnonindexvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票指数投资市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNIndexValue(20191231,2); //结果:1683554509
|
||
```
|
||
|
||
####### Fundscstockactivepercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A积极投资市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercentGrow2(20191231,20181231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscnonvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票持有市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNValue(20191231,2); //结果:1683554509
|
||
```
|
||
|
||
####### Fundscstockactivevalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积极投资市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActiveValue(20191231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscnonindexpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票指数投资市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNIndexPercent3(20191231,2); //结果:4.21127420209799
|
||
```
|
||
|
||
####### Fundscnonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNPercent(20191231,2); //结果:4.18
|
||
```
|
||
|
||
####### Fundscstockactivepercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积极投资市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercent(20191231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscnonpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNPercent4(20191231,2); //结果:4.21127420209799
|
||
```
|
||
|
||
####### Fundscnonindexpercent5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231第2名股票指数投资市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCNoNIndexPercent5(20191231,2); //结果:4.21127420209799
|
||
```
|
||
|
||
####### Fundscstockactivepercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积极投资市值占积极投资部分比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActivePercent4(20191231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscstockindexpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A指数投资市值占权益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercentGrow4(20191231,20181231,'SZ000002');
|
||
|
||
//结果:0.128935091068871
|
||
```
|
||
|
||
####### Fundscstockactivevaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A积极投资市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActiveValueGrowRatio(20191231,20181231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscstockindexvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间指数投资市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexValueGrowRatio(20191231,20181231,"SZ000002");
|
||
|
||
//结果:32.8031738538773
|
||
```
|
||
|
||
####### Fundscstockindexpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间第2名股票指数投资市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercentGrow(20191231,20181231,2); //结果:0.12
|
||
```
|
||
|
||
####### Fundscstockindexpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指数投资市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercent2(20191231,"SZ000002"); //结果:1.35187633739411
|
||
```
|
||
|
||
####### Fundscstockindexpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指数投资市值占指数投资部分比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercent4(20191231,"SZ000002"); //结果:1.36591946871515
|
||
```
|
||
|
||
####### Fundscstockactivevolume
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积极投资股数
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActiveVolume(20191231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscstockindexvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指数投资市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexValue(20191231,'SZ000002'); //结果:546057979.16
|
||
```
|
||
|
||
####### Fundscstockindexpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A指数投资市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercentGrow2(20191231,20181231,"SZ000002");
|
||
|
||
//结果:0.119102751396919
|
||
```
|
||
|
||
####### Fundscstockpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercent2(20191231,"SZ000002"); //结果:1.35187633739411
|
||
```
|
||
|
||
####### Fundscstockindexvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指数投资股数
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexVolume(20191231,'SZ000002'); //结果:16968862
|
||
```
|
||
|
||
####### Fundscstockactivevaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A积极投资市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockActiveValueGrow(20191231,20181231,"SZ000002"); //结果:0
|
||
```
|
||
|
||
####### Fundscstockindexpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A指数投资市值占股票市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercentGrow3(20191231,20181231,2);
|
||
|
||
//结果:0.128935091068871
|
||
```
|
||
|
||
####### Fundscstockpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercent(20191231,"SZ000002"); //结果:1.35
|
||
```
|
||
|
||
####### Fundscstockpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指定股票市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercent3(20191231,"SZ000002"); //结果:1.36591946871515
|
||
```
|
||
|
||
####### Fundscstockindexpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指数投资市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercent(20191231,"SZ000002"); //结果:1.35
|
||
```
|
||
|
||
####### Fundscstockindexvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A指数投资市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexValueGrow(20191231,20181231,'SZ000002');
|
||
|
||
//结果:134879568.8
|
||
```
|
||
|
||
####### Fundscstockindexpercent5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指数投资市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercent5(20191231,"SZ000002"); //结果:1.36591946871515
|
||
```
|
||
|
||
####### Fundscstockpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercent4(20191231,"SZ000002"); //结果:1.36591946871515
|
||
```
|
||
|
||
####### Fundscsumnactivevaluegrowratio2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票积极投资市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActiveValueGrowRatio2(20191231,20181231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnactivepercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票积极投资市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActivePercent3(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnactivevalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票积极投资市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActiveValue(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnactivevaluegrowratio5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231前2名股票积极投资市值占权益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActiveValueGrowRatio5(20191231,20181231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscstockvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A股票持有股数
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockVolume(20191231,"SZ000002"); //结果:16968862
|
||
```
|
||
|
||
####### Fundscstockvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A积持有市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockValue(20191231,"SZ000002"); //结果:546057979.16
|
||
```
|
||
|
||
####### Fundscsumnactivepercent5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票积极投资市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActivePercent5(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnindexpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票指数投资市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexPercent2(20191231,2); //结果:10.8037555610196
|
||
```
|
||
|
||
####### Fundscsumnactivevaluegrowratio4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票积极投资市值占股票市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActiveValueGrowRatio4(20191231,20181231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscstockpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231万科A占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercentGrow2(20191231,20181231,"SZ000002");
|
||
|
||
//结果:0.119102751396919
|
||
```
|
||
|
||
####### Fundscstockvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockValueGrowRatio(20191231,20181231,"SZ000002");
|
||
|
||
//结果:32.8031738538773
|
||
```
|
||
|
||
####### Fundscsumnactivevaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231前2名积极投资市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActiveValueGrowRatio(20191231,20181231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnindexpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票指数投资市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexPercent(20191231,2); //结果:10.83
|
||
```
|
||
|
||
####### Fundscsumnactivevaluegrowratio3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票积极投资市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActiveValueGrowRatio3(20191231,20181231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnactivepercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票积极投资市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActivePercent2(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscstockpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A市值占权益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercentGrow4(20191231,20181231,"SZ000002");
|
||
|
||
//结果:0.128935091068871
|
||
```
|
||
|
||
####### Fundscsumnactivepercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票积极投资市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActivePercent(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscstockpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercentGrow(20191231,20181231,"SZ000002"); //结果:0.12
|
||
```
|
||
|
||
####### Fundscstockpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间万科A市值占股票市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockPercentGrow3(20191231,20181231,"SZ000002");
|
||
|
||
//结果:0.128935091068871
|
||
```
|
||
|
||
####### Fundscstockvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231万科A的市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockValueGrow(20191231,20181231,"SZ000002"); //结果:134879568.8
|
||
```
|
||
|
||
####### Fundscsumnactivevaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票积极投资市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActiveValueGrow(20191231,20181231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnactivepercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票积极投资市值占积极投资部分比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNActivePercent4(20191231,2); //结果:0
|
||
```
|
||
|
||
####### Fundscsumnindexvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票指数投资市值
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexValue(20191231,2); //结果:4363917590.54
|
||
```
|
||
|
||
####### Fundscsumnpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNPercent2(20191231,2); //结果:10.8037555610196
|
||
```
|
||
|
||
####### Fundscsumnindexvaluegrowratio4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票指数投资市值占股票市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexValueGrowRatio4(20191231,20181231,2);
|
||
|
||
//结果:1.25504141189035
|
||
```
|
||
|
||
####### Fundscsumnindexpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票指数投资市值占指数投资部分比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexPercent4(20191231,2); //结果:10.9159836945456
|
||
```
|
||
|
||
####### Fundscsumnindexpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票指数投资市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexPercent3(20191231,2); //结果:10.9159836945456
|
||
```
|
||
|
||
####### Fundscsumnvaluegrowratio5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票市值占权益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNValueGrowRatio5(20191231,20181231,2); //结果:1.25504141189035
|
||
```
|
||
|
||
####### Fundscsumnindexvaluegrowratio3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231前2名股票指数投资市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexValueGrowRatio3(20191231,20181231,2); //结果:1.1756998821252
|
||
```
|
||
|
||
####### Fundscsumnindexvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231前2名指数投资市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexValueGrowRatio(20191231,20181231,2);
|
||
|
||
//结果:35.8910845392378
|
||
```
|
||
|
||
####### Fundscsumnpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNPercent4(20191231,2); //结果:10.9159836945456
|
||
```
|
||
|
||
####### Fundscsumnindexvaluegrowratio2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票指数投资市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexValueGrowRatio2(20191231,20181231,2); //结果:1.18
|
||
```
|
||
|
||
####### Fundscsumnindexpercent5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231前2名股票指数投资市值占权益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexPercent5(20191231,2); //结果:10.9159836945456
|
||
```
|
||
|
||
####### Fundscsumnvaluegrowratio3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNValueGrowRatio3(20191231,20181231,2); //结果:1.1756998821252
|
||
```
|
||
|
||
####### Fundscsumnindexvaluegrowratio5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票指数投资市值占权益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexValueGrowRatio5(20191231,20181231,2);
|
||
|
||
//结果:1.25504141189035
|
||
```
|
||
|
||
####### FundSCStockIndexPercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231万科A指数投资市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCStockIndexPercent3(20191231,"SZ000002");
|
||
|
||
//结果:1.36591946871515
|
||
```
|
||
|
||
####### FundSCSumNIndexValueGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF510300"在20191231与20181231期间前2名股票指数投资市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF510300");
|
||
|
||
return FundSCSumNIndexValueGrow(20191231,20181231,2);
|
||
|
||
//结果:1152582862.19
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundSCValue
|
||
- FundSCNoN
|
||
- FundSCSumN
|
||
- FundSCValue2
|
||
|
||
######## FundSCValue
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundSCValue(20231231,'SZ002230');
|
||
```
|
||
|
||
结果:
|
||
|
||
######## FundSCNoN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundSCNoN(20231231,1,'市值');
|
||
|
||
//结果:100804880.54
|
||
```
|
||
|
||
######## FundSCSumN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundSCSumN(20231231,10,'市值');
|
||
|
||
//结果:709906215.11
|
||
```
|
||
|
||
######## FundSCValue2
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundSCValue2(20231231,'SZ002230','市值');
|
||
|
||
//结果:45953304
|
||
```
|
||
|
||
###### 行业配置
|
||
|
||
####### 内容
|
||
|
||
- FundICInfo
|
||
- FundICInfo2
|
||
- FundICCentralization
|
||
- FundICCentralizationGrow
|
||
- FundICMarketValue
|
||
- FundICMarketValue2
|
||
- FundICMarketValue2Grow
|
||
- FundICMarketValue2GrowRatio
|
||
- FundICMarketValueGrow
|
||
- FundICMarketValueGrowRatio
|
||
- FundICPercentage
|
||
- FundICPercentage2
|
||
- FundICPercentageGrow
|
||
- FundICPercentage2Grow
|
||
- Fundicindustrypercent2
|
||
- Fundicindustrypercent3
|
||
- Fundicindustrypercentgrow2
|
||
- Fundicindustrypercentgrow3
|
||
- Fundicindustryrank
|
||
- Fundicnonname
|
||
- Fundicnonpercent
|
||
- Fundicnonpercent2
|
||
- Fundicnonpercent3
|
||
- Fundicnonpercentgrow2
|
||
- Fundicnonvalue
|
||
- Fundicsumnpercent2
|
||
- Fundicsumnpercentgrow2
|
||
- 中间函数
|
||
|
||
####### FundICInfo
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报前3名行业详情,结果如下图所示。
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
Return FundICInfo(RDate,3);
|
||
```
|
||
|
||
结果:
|
||
|
||
####### FundICInfo2
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报前3名行业详情,结果如下图所示。
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
Return FundICInfo2(RDate,3);
|
||
```
|
||
|
||
结果:
|
||
|
||
####### FundICCentralization
|
||
|
||
算法(持仓前N名的行业总市值之和/所有持仓股票的总市值之和)\*100%范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报持有的前3大行业的集中度
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
return FundICCentralization(RDate,3);
|
||
|
||
//结果:52.49
|
||
```
|
||
|
||
####### FundICCentralizationGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报和2010年中报持有的前十大行业的集中度的变动
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate1:=20110630;
|
||
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
Return FundICCentralizationGrow(RDate1,RDate2,10);
|
||
|
||
|
||
//结果:8.03
|
||
```
|
||
|
||
####### FundICMarketValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报持有的金融、保险业的股票的市值和
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
return FundICMarketValue(RDate,'金融、保险业');
|
||
|
||
//结果:828593000
|
||
```
|
||
|
||
####### FundICMarketValue2
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报持有的前十名行业的股票市值和
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate:=20100331;
|
||
|
||
|
||
Return FundICMarketValue2(RDate,10);
|
||
|
||
//结果:4599957090.29
|
||
```
|
||
|
||
####### FundICMarketValue2Grow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报和2010年中报持有的前十名行业的市值变动
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundICMarketValue2Grow(RDate1,RDate2,10);
|
||
|
||
|
||
//结果:4705104767.54
|
||
```
|
||
|
||
####### FundICMarketValue2GrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报和2010年中报持有的前十名行业的市值变动比
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
return FundICMarketValue2GrowRatio(RDate1,RDate2,10);
|
||
|
||
|
||
//结果:29.29
|
||
```
|
||
|
||
####### FundICMarketValueGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报与2010年中报持有金融、保险业的股票市值的变动的绝对值
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundICMarketValueGrow(RDate1,RDate2,'金融、保险业');
|
||
|
||
|
||
//结果:-163366000
|
||
```
|
||
|
||
####### FundICMarketValueGrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报与2010年中报持有的金融、保险业的股票市值的变动比
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate1:=20110630;
|
||
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
Return FundICMarketValueGrowRatio(RDate1,RDate2,'金融、保险业') ;
|
||
|
||
|
||
//结果:-92.4
|
||
```
|
||
|
||
####### FundICPercentage
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创业2010年一季报中在金融、保险行业占净值比例(%)
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
Return FundSCCentralization(RDate,'金融、保险业');
|
||
|
||
|
||
//结果:37.45
|
||
```
|
||
|
||
####### FundICPercentage2
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报持有的前十名行业占净值比例
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
Return FundICPercentage2(RDate,10);
|
||
|
||
|
||
//结果:57.96
|
||
```
|
||
|
||
####### FundICPercentageGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//比较华安创新 2011年中报与2010年中报在金融、保险行业持股的变动情况
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
return FundICPercentageGrow(RDate1,RDate2,'金融、保险业');
|
||
|
||
|
||
//结果:-2.45
|
||
```
|
||
|
||
####### FundICPercentage2Grow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报和2010年中报持有的前N名行业占净值比例的变动
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundICPercentage2Grow(RDate1,RDate2,10);
|
||
|
||
|
||
//结果:10.44
|
||
```
|
||
|
||
####### Fundicindustrypercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定行业"金融业"市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICIndustryPercent2(20191231,"金融业"); //结果:5.57438513631856
|
||
```
|
||
|
||
####### Fundicindustrypercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定行业"金融业"市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICIndustryPercent3(20191231,"金融业"); //结果:7.45005479951638
|
||
```
|
||
|
||
####### Fundicindustrypercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定行业"金融业"市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICIndustryPercentGrow2(20191231,20181231,"金融业");
|
||
|
||
//结果:-1.55266269888475
|
||
```
|
||
|
||
####### Fundicindustrypercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定行业"金融业"市值占股票市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICIndustryPercentGrow3(20191231,20181231,"金融业");
|
||
|
||
//结果:-4.18387984110969
|
||
```
|
||
|
||
####### Fundicindustryrank
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定行业"金融业"市值排名
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICIndustryRank(20191231,"金融业"); //结果:4
|
||
```
|
||
|
||
####### Fundicnonname
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第1名行业名称
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICNoNName(20191231,1); //结果:制造业
|
||
```
|
||
|
||
####### Fundicnonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第1名行业市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICNoNPercent(20191231,1); //结果:44.09
|
||
```
|
||
|
||
####### Fundicnonpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第1名行业市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICNoNPercent2(20191231,1); //结果:43.6123705431576
|
||
```
|
||
|
||
####### Fundicnonpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第1名行业市值占股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICNoNPercent3(20191231,1); //结果:58.2870653063485
|
||
```
|
||
|
||
####### Fundicnonpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间第1名行业市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICNoNPercentGrow2(20191231,20181231,1);
|
||
|
||
//结果:20.3906014790993
|
||
```
|
||
|
||
####### Fundicnonvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第1名行业市值
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICNoNValue(20191231,1); //结果:2027297873.83
|
||
```
|
||
|
||
####### Fundicsumnpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231的前1名行业市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICSumNPercent2(20191231,1); //结果:12.9
|
||
```
|
||
|
||
####### Fundicsumnpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前1名行业市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundICSumNPercentGrow2(20191231,20181231,1);
|
||
|
||
//结果:-3.71182617266113
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundICIValue
|
||
- FundICNoN
|
||
- FundICSumN
|
||
|
||
######## FundICIValue
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundICIValue(20221231,'制造业');
|
||
```
|
||
|
||
结果:
|
||
|
||
######## FundICNoN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundICNoN(20221231,3,'市值');
|
||
|
||
//结果:52692108.75
|
||
```
|
||
|
||
######## FundICSumN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundICSumN(20221231,3,'市值');
|
||
|
||
//结果:2288640127.23
|
||
```
|
||
|
||
###### 债券配置
|
||
|
||
####### 内容
|
||
|
||
- fundbccbankbillvalue
|
||
- fundbcconveniblebondpercent1
|
||
- fundbccorporatebondvalue
|
||
- fundbccorporatebondpercent2
|
||
- fundbcprivatebondpercent2
|
||
- fundbcarmdebtpercent2
|
||
- fundbcgovbondpercent2
|
||
- fundbcfbondpercent1
|
||
- 中间函数
|
||
- fundbcscpvalue
|
||
- fundbcconveniblebondvalue
|
||
- fundbcotherbondpercent1
|
||
- fundbcncdpercent1
|
||
- fundbcprivatebondpercent1
|
||
- fundbcotherbondpercent2
|
||
- fundbcmtnvalue
|
||
- fundbcexchangebondpercent1
|
||
- fundbcscppercent2
|
||
- fundbcexchangebondpercent2
|
||
- fundbcenterprisebondpercent1
|
||
- fundbcotherbondvalue
|
||
- fundbcscppercent1
|
||
- fundbcmtnpercent2
|
||
- fundbcarmdebtpercent1
|
||
- fundbcncdpercent2
|
||
- fundbclocaldebtpercent1
|
||
- fundbcfbondvalue
|
||
- fundbcmtnpercent1
|
||
- fundbcbankbillpercent2
|
||
- fundbcexchangebondvalue
|
||
- fundbcgovbondvalue
|
||
- fundbccorporatebondpercent1
|
||
- fundbclocaldebtvalue
|
||
- fundbcbondpercent2
|
||
- fundbcenterprisebondvalue
|
||
- fundbcfbondpercent2
|
||
- fundbcenterprisebondpercent2
|
||
- fundbclocaldebtpercent2
|
||
- fundbcbankbillpercent1
|
||
- Fundbcbondpercentgrow3
|
||
- fundbcarmdebtvalue
|
||
- Fundbcbondpercent4
|
||
- fundbcconveniblebondpercent2
|
||
- Fundbcbondpercentgrow
|
||
- Fundbcbondvaluegrow
|
||
- fundbcbondpercentgrow2
|
||
- fundbcgovbondpercent1
|
||
- fundbcprivatebondvalue
|
||
- Fundbcbondpercent3
|
||
- Fundbcbondpercentgrow4
|
||
- fundbcncdvalue
|
||
- Fundbcnonpercent3
|
||
- Fundbcsumnpercentgrow2
|
||
- Fundbcnonvaluegrow
|
||
- Fundbcnonpercentgrow3
|
||
- Fundbcnonpercent4
|
||
- Fundbcsumnpercent3
|
||
- Fundbcnonpercent
|
||
- Fundbcsumnpercent2
|
||
- Fundbcnonvalue
|
||
- Fundbcsumnpercentgrow
|
||
- Fundbcsumnpercentgrow4
|
||
- Fundbcsumnpercentgrow3
|
||
- Fundbcbondvaluegrowratio
|
||
- Fundbcsumnpercent
|
||
- Fundbcnonpercentgrow2
|
||
- Fundbcnonname
|
||
- Fundbcsumnpercent4
|
||
- Fundbcnonpercentgrow4
|
||
- Fundbcnonpercent2
|
||
- Fundbcnonpercentgrow
|
||
- Fundbcsumnvalue
|
||
- Fundbcsumnvaluegrow
|
||
- Fundbcsumnvaluegrowratio
|
||
|
||
####### fundbccbankbillvalue
|
||
|
||
- fundbccbankbillvalue
|
||
- fundbcscpvalue
|
||
- fundbcexchangebondpercent1
|
||
- fundbcarmdebtpercent2
|
||
- fundbcconveniblebondvalue
|
||
- fundbccorporatebondvalue
|
||
- fundbcgovbondpercent2
|
||
- fundbcprivatebondpercent1
|
||
- fundbcmtnvalue
|
||
- fundbcexchangebondpercent2
|
||
- fundbcotherbondpercent1
|
||
- fundbcconveniblebondpercent1
|
||
- fundbcfbondpercent1
|
||
- fundbcncdpercent1
|
||
- fundbccorporatebondpercent2
|
||
- fundbcscppercent2
|
||
- fundbcotherbondpercent2
|
||
- fundbcprivatebondpercent2
|
||
- 中间函数
|
||
- fundbcscppercent1
|
||
- fundbclocaldebtpercent2
|
||
- fundbcmtnpercent1
|
||
- fundbcenterprisebondpercent1
|
||
- fundbcgovbondvalue
|
||
- fundbcncdpercent2
|
||
- fundbcmtnpercent2
|
||
- fundbcbankbillpercent2
|
||
- fundbcfbondvalue
|
||
- fundbcfbondpercent2
|
||
- fundbccorporatebondpercent1
|
||
- fundbclocaldebtpercent1
|
||
- fundbcenterprisebondpercent2
|
||
- fundbclocaldebtvalue
|
||
- fundbcotherbondvalue
|
||
- fundbcbondpercent2
|
||
- fundbcexchangebondvalue
|
||
- fundbcarmdebtpercent1
|
||
- fundbcenterprisebondvalue
|
||
- fundbcncdvalue
|
||
- fundbcprivatebondvalue
|
||
- fundbcarmdebtvalue
|
||
- fundbcbondpercentgrow2
|
||
- fundbcgovbondpercent1
|
||
- fundbcbankbillpercent1
|
||
- fundbcconveniblebondpercent2
|
||
- Fundbcbondpercent3
|
||
- Fundbcbondpercent4
|
||
- Fundbcbondpercentgrow
|
||
- Fundbcbondpercentgrow3
|
||
- Fundbcbondpercentgrow4
|
||
- Fundbcbondvaluegrow
|
||
- Fundbcbondvaluegrowratio
|
||
- Fundbcnonname
|
||
- Fundbcnonpercent
|
||
- Fundbcnonpercent2
|
||
- Fundbcnonpercent3
|
||
- Fundbcnonpercent4
|
||
- Fundbcnonpercentgrow
|
||
- Fundbcnonpercentgrow2
|
||
- Fundbcnonpercentgrow3
|
||
- Fundbcnonpercentgrow4
|
||
- Fundbcnonvalue
|
||
- Fundbcnonvaluegrow
|
||
- Fundbcsumnpercent
|
||
- Fundbcsumnpercent2
|
||
- Fundbcsumnpercent3
|
||
- Fundbcsumnpercent4
|
||
- Fundbcsumnpercentgrow
|
||
- Fundbcsumnpercentgrow2
|
||
- Fundbcsumnpercentgrow3
|
||
- Fundbcsumnpercentgrow4
|
||
- Fundbcsumnvalue
|
||
- Fundbcsumnvaluegrow
|
||
- Fundbcsumnvaluegrowratio
|
||
|
||
####### fundbcconveniblebondpercent1
|
||
|
||
####### fundbccorporatebondvalue
|
||
|
||
####### fundbccorporatebondpercent2
|
||
|
||
####### fundbcprivatebondpercent2
|
||
|
||
####### fundbcarmdebtpercent2
|
||
|
||
- fundbccbankbillvalue
|
||
- fundbcscpvalue
|
||
- fundbcexchangebondpercent1
|
||
- fundbcarmdebtpercent2
|
||
- fundbcconveniblebondvalue
|
||
- fundbccorporatebondvalue
|
||
- fundbcgovbondpercent2
|
||
- fundbcprivatebondpercent1
|
||
- fundbcmtnvalue
|
||
- fundbcexchangebondpercent2
|
||
- fundbcotherbondpercent1
|
||
- fundbcconveniblebondpercent1
|
||
- fundbcfbondpercent1
|
||
- fundbcncdpercent1
|
||
- fundbccorporatebondpercent2
|
||
- fundbcscppercent2
|
||
- fundbcotherbondpercent2
|
||
- fundbcprivatebondpercent2
|
||
- 中间函数
|
||
- fundbcscppercent1
|
||
- fundbclocaldebtpercent2
|
||
- fundbcmtnpercent1
|
||
- fundbcenterprisebondpercent1
|
||
- fundbcgovbondvalue
|
||
- fundbcncdpercent2
|
||
- fundbcmtnpercent2
|
||
- fundbcbankbillpercent2
|
||
- fundbcfbondvalue
|
||
- fundbcfbondpercent2
|
||
- fundbccorporatebondpercent1
|
||
- fundbclocaldebtpercent1
|
||
- fundbcenterprisebondpercent2
|
||
- fundbclocaldebtvalue
|
||
- fundbcotherbondvalue
|
||
- fundbcbondpercent2
|
||
- fundbcexchangebondvalue
|
||
- fundbcarmdebtpercent1
|
||
- fundbcenterprisebondvalue
|
||
- fundbcncdvalue
|
||
- fundbcprivatebondvalue
|
||
- fundbcarmdebtvalue
|
||
- fundbcbondpercentgrow2
|
||
- fundbcgovbondpercent1
|
||
- fundbcbankbillpercent1
|
||
- fundbcconveniblebondpercent2
|
||
- Fundbcbondpercent3
|
||
- Fundbcbondpercent4
|
||
- Fundbcbondpercentgrow
|
||
- Fundbcbondpercentgrow3
|
||
- Fundbcbondpercentgrow4
|
||
- Fundbcbondvaluegrow
|
||
- Fundbcbondvaluegrowratio
|
||
- Fundbcnonname
|
||
- Fundbcnonpercent
|
||
- Fundbcnonpercent2
|
||
- Fundbcnonpercent3
|
||
- Fundbcnonpercent4
|
||
- Fundbcnonpercentgrow
|
||
- Fundbcnonpercentgrow2
|
||
- Fundbcnonpercentgrow3
|
||
- Fundbcnonpercentgrow4
|
||
- Fundbcnonvalue
|
||
- Fundbcnonvaluegrow
|
||
- Fundbcsumnpercent
|
||
- Fundbcsumnpercent2
|
||
- Fundbcsumnpercent3
|
||
- Fundbcsumnpercent4
|
||
- Fundbcsumnpercentgrow
|
||
- Fundbcsumnpercentgrow2
|
||
- Fundbcsumnpercentgrow3
|
||
- Fundbcsumnpercentgrow4
|
||
- Fundbcsumnvalue
|
||
- Fundbcsumnvaluegrow
|
||
- Fundbcsumnvaluegrowratio
|
||
|
||
####### fundbcgovbondpercent2
|
||
|
||
####### fundbcfbondpercent1
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- fundbcbondpercent
|
||
- fundbcbondvalue
|
||
- fundbcvalue
|
||
- FundBCBondSumN
|
||
- FundBCBondNoN
|
||
|
||
######## fundbcbondpercent
|
||
|
||
######## fundbcbondvalue
|
||
|
||
######## fundbcvalue
|
||
|
||
######## FundBCBondSumN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundBCBondSumN(20221231,3,'市值');
|
||
|
||
//结果:658056005.48
|
||
```
|
||
|
||
######## FundBCBondNoN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundBCBondNoN(20221231,3,'市值');
|
||
|
||
//结果:110787178.08
|
||
```
|
||
|
||
####### fundbcscpvalue
|
||
|
||
####### fundbcconveniblebondvalue
|
||
|
||
####### fundbcotherbondpercent1
|
||
|
||
####### fundbcncdpercent1
|
||
|
||
####### fundbcprivatebondpercent1
|
||
|
||
####### fundbcotherbondpercent2
|
||
|
||
####### fundbcmtnvalue
|
||
|
||
####### fundbcexchangebondpercent1
|
||
|
||
####### fundbcscppercent2
|
||
|
||
####### fundbcexchangebondpercent2
|
||
|
||
####### fundbcenterprisebondpercent1
|
||
|
||
####### fundbcotherbondvalue
|
||
|
||
####### fundbcscppercent1
|
||
|
||
####### fundbcmtnpercent2
|
||
|
||
####### fundbcarmdebtpercent1
|
||
|
||
####### fundbcncdpercent2
|
||
|
||
####### fundbclocaldebtpercent1
|
||
|
||
####### fundbcfbondvalue
|
||
|
||
####### fundbcmtnpercent1
|
||
|
||
####### fundbcbankbillpercent2
|
||
|
||
####### fundbcexchangebondvalue
|
||
|
||
####### fundbcgovbondvalue
|
||
|
||
####### fundbccorporatebondpercent1
|
||
|
||
####### fundbclocaldebtvalue
|
||
|
||
####### fundbcbondpercent2
|
||
|
||
####### fundbcenterprisebondvalue
|
||
|
||
####### fundbcfbondpercent2
|
||
|
||
####### fundbcenterprisebondpercent2
|
||
|
||
####### fundbclocaldebtpercent2
|
||
|
||
####### fundbcbankbillpercent1
|
||
|
||
####### Fundbcbondpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券类型市值占债券市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondPercentGrow3(20191231,20181231,"国债");
|
||
|
||
//结果:-3.55152582173095
|
||
```
|
||
|
||
####### fundbcarmdebtvalue
|
||
|
||
####### Fundbcbondpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定债券类型市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondPercent4(20191231,"国债"); //结果:1.10841752508523
|
||
```
|
||
|
||
####### fundbcconveniblebondpercent2
|
||
|
||
####### Fundbcbondpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券类型市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondPercentGrow(20191231,20181231,"国债"); //结果:-1.26
|
||
```
|
||
|
||
####### Fundbcbondvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券类型市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondValueGrow(20191231,20181231,"国债");
|
||
|
||
//结果:-49762000
|
||
```
|
||
|
||
####### fundbcbondpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券类型市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondPercentGrow2(20191231,20181231,"国债"); //结果:-1.23
|
||
```
|
||
|
||
####### fundbcgovbondpercent1
|
||
|
||
####### fundbcprivatebondvalue
|
||
|
||
####### Fundbcbondpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定债券类型市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondPercent3(20191231,"国债"); //结果:1.11
|
||
```
|
||
|
||
####### Fundbcbondpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券类型市值占固定收益投资市值比变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondPercentGrow4(20191231,20181231,"国债");
|
||
|
||
//结果:-3.55152582173095
|
||
```
|
||
|
||
####### fundbcncdvalue
|
||
|
||
####### Fundbcnonpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券类型市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercent3(20191231,2);
|
||
|
||
//结果:10.8997086846338
|
||
```
|
||
|
||
####### Fundbcsumnpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券类型市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercentGrow2(20191231,20181231,2); //结果:-9.50685311820331
|
||
```
|
||
|
||
####### Fundbcnonvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间第2名债券类型持有市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNValueGrow(20191231,20181231,2); //结果:-220000
|
||
```
|
||
|
||
####### Fundbcnonpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间第2名债券类型市值占债券市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercentGrow3(20191231,20181231,2);
|
||
|
||
//结果:3.04012437331564
|
||
```
|
||
|
||
####### Fundbcnonpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券类型市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercent4(20191231,2);
|
||
|
||
//结果:10.8997086846338
|
||
```
|
||
|
||
####### Fundbcsumnpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券类型市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercent3(20191231,1); //结果:87.86
|
||
```
|
||
|
||
####### Fundbcnonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券类型市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercent(20191231,2); //结果:2.2
|
||
```
|
||
|
||
####### Fundbcsumnpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券类型市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercent2(20191231,2);
|
||
|
||
//结果:19.6952584471872
|
||
```
|
||
|
||
####### Fundbcnonvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券类型持有市值
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNValue(20191231,2); //结果:101040000
|
||
```
|
||
|
||
####### Fundbcsumnpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券类型市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercentGrow(20191231,20181231,2); //结果:-9.92
|
||
```
|
||
|
||
####### Fundbcsumnpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券类型市值占固定收益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercentGrow4(20191231,20181231,2); //结果:4.76065071464147
|
||
```
|
||
|
||
####### Fundbcsumnpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券类型市值占债券市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercentGrow3(20191231,20181231,2); //结果:4.76065071464147
|
||
```
|
||
|
||
####### Fundbcbondvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券类型市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCBondValueGrowRatio(20191231,20181231,"国债");
|
||
|
||
//结果:-82.8855539084231
|
||
```
|
||
|
||
####### Fundbcsumnpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券类型市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercent(20191231,2); //结果:19.91
|
||
```
|
||
|
||
####### Fundbcnonpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间第2名债券类型市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercentGrow2(20191231,20181231,2);
|
||
|
||
//结果:-0.26799288508768
|
||
```
|
||
|
||
####### Fundbcnonname
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券类型名称
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNName(20191231,2); //结果:中期票据
|
||
```
|
||
|
||
####### Fundbcsumnpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券类型市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNPercent4(20191231,2); //结果:98.7622803483759
|
||
```
|
||
|
||
####### Fundbcnonpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间第2名债券类型市值占固定收益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercentGrow4(20191231,20181231,2);
|
||
|
||
//结果:3.04012437331564
|
||
```
|
||
|
||
####### Fundbcnonpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券类型市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercent2(20191231,2);
|
||
|
||
//结果:2.17362923158186
|
||
```
|
||
|
||
####### Fundbcnonpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间第2名债券类型市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCNoNPercentGrow(20191231,20181231,2); //结果:-0.29
|
||
```
|
||
|
||
####### Fundbcsumnvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券类型持有市值
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNValue(20191231,2); //结果:915523625
|
||
```
|
||
|
||
####### Fundbcsumnvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券类型持有市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNValueGrow(20191231,20181231,2);
|
||
|
||
//结果:-295558875
|
||
```
|
||
|
||
####### Fundbcsumnvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券类型市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBCSumNValueGrowRatio(20191231,20181231,2);
|
||
|
||
//结果:-24.4045203361456
|
||
```
|
||
|
||
###### 资产配置
|
||
|
||
####### 内容
|
||
|
||
- FundIRStockValue
|
||
- FundIRBondPercent
|
||
- FundIRBondPercentGrow
|
||
- FundIRBondValue
|
||
- FundIRBondValueGrow
|
||
- FundIRBondValueGrowRatio
|
||
- FundIRNetAssetValue
|
||
- FundIRNetAssetValueGrow
|
||
- FundIRNetAssetValueGrowRatio
|
||
- FundIRStockPercent
|
||
- FundIRStockPercentGrow
|
||
- FundIRStockValueGrow
|
||
- FundIRStockValueGrowRatio
|
||
- fundircashvalue
|
||
- fundirabsvalue
|
||
- fundirresalevalue
|
||
- fundirderivativesvalue
|
||
- fundirrepurchasevalue
|
||
- fundirfundvalue
|
||
- fundirothervalue
|
||
- fundirtotalassetvalue
|
||
- fundirfieldvalue
|
||
|
||
####### FundIRStockValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714,2018年中报的股票市值。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundIRStockValue(20180630);
|
||
|
||
//结果:75934603.15
|
||
```
|
||
|
||
####### FundIRBondPercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//取得华安创新2011年年报公布的债券占净值比例(%)
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20111231;
|
||
|
||
Return FundIRBondPercent(RDate);
|
||
|
||
|
||
//结果:26.48
|
||
```
|
||
|
||
####### FundIRBondPercentGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//比较华安创新 2011年中报与2010年中报的债券现金占净值比例变动情况
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
Return FundIRBondPercentGrow(RDate1,RDate2);
|
||
|
||
|
||
//结果:-10.55
|
||
```
|
||
|
||
####### FundIRBondValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报的债券市值
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20110630;
|
||
|
||
|
||
Return FundIRBondValue(RDate);
|
||
|
||
|
||
//结果:1656960130.7
|
||
```
|
||
|
||
####### FundIRBondValueGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//比较华安创新 2011年中报与2010年中报中债券现金变动情况
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
Return FundIRBondValueGrow(RDate1,RDate2);
|
||
|
||
|
||
//结果:-581095932
|
||
```
|
||
|
||
####### FundIRBondValueGrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//比较华安创新2011年中报与2010年中报的债券现金变比(增长率)(%)
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
Return FundIRBondValueGrowRatio(RDate1,RDate2);
|
||
|
||
|
||
//结果:-25.96
|
||
```
|
||
|
||
####### FundIRNetAssetValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新 2011年中报公布的资产净值
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20110630;
|
||
|
||
|
||
Return FundIRNetAssetValue(RDate);
|
||
|
||
|
||
//结果:7285618761.52
|
||
```
|
||
|
||
####### FundIRNetAssetValueGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报和2010年中报的资产净值的变动
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate1:=20110630;
|
||
|
||
|
||
RDate2:=20100630;
|
||
|
||
|
||
Return FundIRNetAssetValueGrow(RDate1,RDate2);
|
||
|
||
|
||
//结果:563746056.32
|
||
```
|
||
|
||
####### FundIRNetAssetValueGrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报和2010年中报的资产净值变动比值
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundIRNetAssetValueGrowRatio(RDate1,RDate2);
|
||
|
||
|
||
//结果:8.39
|
||
```
|
||
|
||
####### FundIRStockPercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报的公布的股票占净值比例(%)
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20110630;
|
||
|
||
|
||
Return FundIRStockPercent(RDate);
|
||
|
||
|
||
//结果:66.35
|
||
```
|
||
|
||
####### FundIRStockPercentGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报公布的股票市值
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate:=20110630;
|
||
|
||
|
||
Return FundIRStockValue(RDate);
|
||
|
||
|
||
//结果:4833655935.55
|
||
```
|
||
|
||
####### FundIRStockValueGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报2010年中报的股票市值变动
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundIRStockValueGrow(RDate1,RDate2);
|
||
|
||
|
||
//结果:876888161.01
|
||
```
|
||
|
||
####### FundIRStockValueGrowRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2011年中报与2010年中报股票市值变动的比值
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate1:=20110630;
|
||
|
||
RDate2:=20100630;
|
||
|
||
Return FundIRStockValueGrowRatio(RDate1,RDate2);
|
||
|
||
|
||
//结果:22.16
|
||
```
|
||
|
||
####### fundircashvalue
|
||
|
||
####### fundirabsvalue
|
||
|
||
####### fundirresalevalue
|
||
|
||
####### fundirderivativesvalue
|
||
|
||
####### fundirrepurchasevalue
|
||
|
||
####### fundirfundvalue
|
||
|
||
####### fundirothervalue
|
||
|
||
####### fundirtotalassetvalue
|
||
|
||
####### fundirfieldvalue
|
||
|
||
###### 持有人结构
|
||
|
||
####### 内容
|
||
|
||
- Fundhsorgangrow
|
||
- Fundhsorgangrow2
|
||
- Fundhsorganpercent
|
||
- Fundhsorganpercentgrow
|
||
- Fundhsorganvalue
|
||
- Fundhsothergrow
|
||
- Fundhsothergrow2
|
||
- FundHSOtherPercent
|
||
- FundHSOtherPercentGrow
|
||
- FundHSOtherValue
|
||
- FundHSPersonGrow
|
||
- Fundhspersongrow2
|
||
- Fundhspersonpercent
|
||
- Fundhspersonpercentgrow
|
||
- Fundhspersonvalue
|
||
- Fundhspractitionergrow
|
||
- Fundhspractitionergrow2
|
||
- Fundhspractitionerpercent
|
||
- Fundhspractitionerpercentgrow
|
||
- Fundhspractitionervalue
|
||
- 中间函数
|
||
|
||
####### Fundhsorgangrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的机构持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSOrganGrow(20191231,20181231);
|
||
|
||
//返回:860.475365116
|
||
```
|
||
|
||
####### Fundhsorgangrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000009在2019年报的机构持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundHSOrganGrow2(20191231,20181231);
|
||
|
||
//返回:-517584542.92
|
||
```
|
||
|
||
####### Fundhsorganpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的机构持有市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSOrganPercent(20191231);
|
||
|
||
//返回:0.452437302449383
|
||
```
|
||
|
||
####### Fundhsorganpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的机构持有市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSOrganPercentGrow(20191231,20181231);
|
||
|
||
//返回:0.151944943259435
|
||
```
|
||
|
||
####### Fundhsorganvalue
|
||
|
||
算法机构持有份额\*单位净值范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的机构持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSOrganValue(20191231);
|
||
|
||
//返回:2080.4658667
|
||
```
|
||
|
||
####### Fundhsothergrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF159919在2014年报的其他持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF159919");
|
||
|
||
return FundHSOtherGrow(20141231,20131231);
|
||
|
||
//返回:3206350.87849476
|
||
```
|
||
|
||
####### Fundhsothergrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF159919在2014年报的其他持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF159919");
|
||
|
||
return FundHSOtherGrow2(20141231,20131231);
|
||
|
||
//返回:8708413804
|
||
```
|
||
|
||
####### FundHSOtherPercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF159919在2014年报的其他持有市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF159919");
|
||
|
||
return FundHSOtherPercent(20141231);
|
||
|
||
//返回:69.9025987572471
|
||
```
|
||
|
||
####### FundHSOtherPercentGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF159919在2014年报的其他持有市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF159919");
|
||
|
||
return FundHSOtherPercentGrow(20141231,20131231);
|
||
|
||
//返回:69.9025987572471
|
||
```
|
||
|
||
####### FundHSOtherValue
|
||
|
||
算法其他持有份额\*单位净值范例
|
||
|
||
```text
|
||
//计算基金OF159919在2014年报的其他持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF159919");
|
||
|
||
return FundHSOtherValue(20141231);
|
||
|
||
//返回:3206350.87849476
|
||
```
|
||
|
||
####### FundHSPersonGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的个人持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPersonGrow(20191231,20181231);
|
||
|
||
//返回:53009.883755893
|
||
```
|
||
|
||
####### Fundhspersongrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000009在2019年报的个人持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundHSPersonGrow2(20191231,20181231);
|
||
|
||
//返回:-16431107983.73
|
||
```
|
||
|
||
####### Fundhspersonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的机构持有市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPersonPercent(20191231);
|
||
|
||
//返回:99.5576381673184
|
||
```
|
||
|
||
####### Fundhspersonpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的个人持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPersonPercentGrow(20191231,20181231);
|
||
|
||
//返回:-0.145310022556174
|
||
```
|
||
|
||
####### Fundhspersonvalue
|
||
|
||
算法Sum(个人持有份额\*单位净值)范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报的个人持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPersonValue(20191231);
|
||
|
||
//返回:457801.040840455
|
||
```
|
||
|
||
####### Fundhspractitionergrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的从业人员持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPractitionerGrow(20191231,20181231);
|
||
|
||
//返回:-35.813267566
|
||
```
|
||
|
||
####### Fundhspractitionergrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000009在2019年报的从业人员持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundHSPractitionerGrow2(20191231,20181231);
|
||
|
||
//返回:1889309.58
|
||
```
|
||
|
||
####### Fundhspractitionerpercent
|
||
|
||
算法从业人员持有市值/总净值\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的从业人员持有市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPractitionerPercent(20191231);
|
||
|
||
//返回:0.00131867119665122
|
||
```
|
||
|
||
####### Fundhspractitionerpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的从业人员持有市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPractitionerPercentGrow(20191231,20181231);
|
||
|
||
//返回:-0.00899592795489366
|
||
```
|
||
|
||
####### Fundhspractitionervalue
|
||
|
||
算法从业人员持有份额\*单位净值范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的从业人员持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundHSPractitionerValue(20191231);
|
||
|
||
//返回:6.06371402
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundHSMX
|
||
|
||
######## FundHSMX
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundHSMX('OF000001',20221231);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 持债明细
|
||
|
||
####### 内容
|
||
|
||
- Fundbdbondpercentgrow2
|
||
- Fundbdbondpercent
|
||
- Fundbdbondpercentgrow3
|
||
- Fundbdbondpercent5
|
||
- FundBDBondPercentGrow
|
||
- Fundbdbondpercent3
|
||
- Fundbdbondpercent2
|
||
- Fundbdbondpercentgrow4
|
||
- Fundbdnonvalue
|
||
- Fundbdbondvolumegrowratio
|
||
- Fundbdsumnpercent3
|
||
- Fundbdnonpercent2
|
||
- Fundbdbondvaluegrowratio
|
||
- Fundbdnonpercent4
|
||
- Fundbdsumnpercentgrow
|
||
- Fundbdbondvolumegrow
|
||
- Fundbdsumnpercentgrow3
|
||
- Fundbdsumnpercent2
|
||
- Fundbdnonpercent
|
||
- Fundbdbondvaluegrow
|
||
- Fundbdsumnpercent
|
||
- Fundbdsumnpercent4
|
||
- Fundbdnonpercent3
|
||
- Fundbdbondvolume
|
||
- Fundbdbondvalue
|
||
- Fundbdsumnpercentgrow2
|
||
- Fundbdnoncode
|
||
- Fundbdsumnvalue
|
||
- Fundbdsumnvaluegrow
|
||
- Fundbdsumnpercentgrow4
|
||
- Fundbdsumnvaluegrowratio
|
||
- 中间函数
|
||
|
||
####### Fundbdbondpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercentGrow2(20191231,20181231,"BK190303");
|
||
|
||
//结果:2.15383767484141
|
||
```
|
||
|
||
####### Fundbdbondpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定债券市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercent(20191231,"BK190201"); //结果:2.18
|
||
```
|
||
|
||
####### Fundbdbondpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券市值占债券市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercentGrow3(20191231,20181231,"BK190303");
|
||
|
||
//结果:10.8004635145045
|
||
```
|
||
|
||
####### Fundbdbondpercent5
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定债券"190303"市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercent5(20191231,"BK190303"); //结果:10.8004635145045
|
||
```
|
||
|
||
####### FundBDBondPercentGrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200331与20191231期间指定债券市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercentGrow(20200331,20191231,"BK190303");//结果:0.13
|
||
```
|
||
|
||
####### Fundbdbondpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定债券市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercent3(20191231,"BK190303"); //结果:10.8004635145045
|
||
```
|
||
|
||
####### Fundbdbondpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定债券市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercent2(20191231,"190030"); //结果:2.15383767484141
|
||
```
|
||
|
||
####### Fundbdbondpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间指定债券市值占固定收益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondPercentGrow4(20191231,20181231,"BK190303");
|
||
|
||
//结果:10.8004635145045
|
||
```
|
||
|
||
####### Fundbdnonvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券持有市值
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDNoNValue(20191231,2); //结果:132678000
|
||
```
|
||
|
||
####### Fundbdbondvolumegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20210331与20191231期间指定债券持有份额变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondVolumeGrowRatio(20210331,20191231,"BK180208");
|
||
|
||
//结果:13.3333333333333
|
||
```
|
||
|
||
####### Fundbdsumnpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercent3(20191231,2); //结果:30.785204522995
|
||
```
|
||
|
||
####### Fundbdnonpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDNoNPercent2(20191231,2); //结果:2.85424365783668
|
||
```
|
||
|
||
####### Fundbdbondvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200331与20191231期间指定债券持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondValueGrowRatio(20200331,20191231,"BK190303");
|
||
|
||
//结果:1.1785856971634
|
||
```
|
||
|
||
####### Fundbdnonpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDNoNPercent4(20191231,2); //结果:14.312663785232
|
||
```
|
||
|
||
####### Fundbdsumnpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercentGrow(20191231,20181231,2); //结果:-7.68
|
||
```
|
||
|
||
####### Fundbdbondvolumegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20210331与20191231期间指定债券持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondVolumeGrow(20210331,20191231,"BK180208"); //结果:200000
|
||
```
|
||
|
||
####### Fundbdsumnpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券市值占债券市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercentGrow3(20191231,20181231,2); //结果:-12.9956916639413
|
||
```
|
||
|
||
####### Fundbdsumnpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercent2(20191231,2); //结果:6.13921182551829
|
||
```
|
||
|
||
####### Fundbdnonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDNoNPercent(20191231,2); //结果:2.89
|
||
```
|
||
|
||
####### Fundbdbondvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20241231与20231231期间指定债券持有市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondValueGrow(20241231,20231231,"BK101564021"); //结果:-735357.74000001
|
||
```
|
||
|
||
####### Fundbdsumnpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercent(20191231,2); //结果:6.21
|
||
```
|
||
|
||
####### Fundbdsumnpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名债券市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercent4(20191231,2); //结果:30.785204522995
|
||
```
|
||
|
||
####### Fundbdnonpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDNoNPercent3(20191231,2); //结果:14.312663785232
|
||
```
|
||
|
||
####### Fundbdbondvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231"190303"债券持有份额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondVolume(20191231,"BK190303"); //结果:1000000
|
||
```
|
||
|
||
####### Fundbdbondvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231指定债券持有市值
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDBondValue(20191231,"BK190303"); //结果:100120000
|
||
```
|
||
|
||
####### Fundbdsumnpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercentGrow2(20191231,20181231,2); //结果:-7.46155892563982
|
||
```
|
||
|
||
####### Fundbdnoncode
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名债券代码
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDNoNCode(20191231,2); //结果:180409
|
||
```
|
||
|
||
####### Fundbdsumnvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前N名债券持有市值
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNValue(20191231,2); //结果:285378000
|
||
```
|
||
|
||
####### Fundbdsumnvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券持有市值变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNValueGrow(20191231,20181231,2); //结果:-278679000
|
||
```
|
||
|
||
####### Fundbdsumnpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券市值占固定收益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNPercentGrow4(20191231,20181231,2); //结果:-12.9956916639413
|
||
```
|
||
|
||
####### Fundbdsumnvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231与20181231期间前2名债券持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBDSumNValueGrowRatio(20191231,20181231,2); //结果:-49.4061770352996
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundBDSumN
|
||
- FundBDValue
|
||
- FundBDNoN
|
||
- FundBDValue2
|
||
|
||
######## FundBDSumN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundBDSumN(20221231,1,'市值');
|
||
|
||
//结果:110787178.08
|
||
```
|
||
|
||
######## FundBDValue
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundBDValue(20221231,'BK220014');
|
||
```
|
||
|
||
结果:
|
||
|
||
######## FundBDNoN
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundBDNoN(20221231,1,'市值');
|
||
|
||
//结果:110787178.08
|
||
```
|
||
|
||
######## FundBDValue2
|
||
|
||
- FundBDSumN
|
||
- FundBDValue
|
||
- FundBDNoN
|
||
- FundBDValue2
|
||
|
||
###### 处于转股期的可转债明细
|
||
|
||
####### 内容
|
||
|
||
- Fundcbbondpercent
|
||
- Fundcbbondpercent2
|
||
- Fundcbbondpercent3
|
||
- Fundcbbondvalue
|
||
- Fundcbnoncode
|
||
- Fundcbnonpercent
|
||
- Fundcbnonpercent2
|
||
- Fundcbnonpercent3
|
||
- Fundcbnonvalue
|
||
- Fundcbsumnpercent
|
||
- Fundcbsumnpercent2
|
||
- Fundcbsumnpercent3
|
||
- Fundcbsumnvalue
|
||
- 中间函数
|
||
|
||
####### Fundcbbondpercent
|
||
|
||
算法指定可转债市值/基金净值\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SZ128016可转债市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBBondPercent(20191231,"SZ128016");
|
||
|
||
//返回:0.01
|
||
```
|
||
|
||
####### Fundcbbondpercent2
|
||
|
||
算法指定可转债市值/基金总值\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SZ128016可转债市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBBondPercent2(20191231,"SZ128016");
|
||
|
||
//返回:0.0116317476572049
|
||
```
|
||
|
||
####### Fundcbbondpercent3
|
||
|
||
算法指定可转债市值/sum(债券市值)\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SZ128016可转债市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBBondPercent3(20191231,"SZ128016");
|
||
|
||
//返回:0.0583276389158785
|
||
```
|
||
|
||
####### Fundcbbondvalue
|
||
|
||
算法指定可转债的市值范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SZ128016可转债持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBBondValue(20191231,"SZ128016");
|
||
|
||
//返回:54.069561
|
||
```
|
||
|
||
####### Fundcbnoncode
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000001在2019年报第1名可转债证券代码
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBNoNCode(20191231,1);
|
||
|
||
//返回:SZ128022
|
||
```
|
||
|
||
####### Fundcbnonpercent
|
||
|
||
算法第N名可转债业市值/基金净值\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报第1名可转债市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBNoNPercent(20191231,1);
|
||
|
||
//返回:0.01
|
||
```
|
||
|
||
####### Fundcbnonpercent2
|
||
|
||
算法第N名可转债市值/基金总值\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报第1名可转债市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBNoNPercent2(20191231,1);
|
||
|
||
//返回:0.0141537930469117
|
||
```
|
||
|
||
####### Fundcbnonpercent3
|
||
|
||
算法第N名可转债市值/sum(债券净值)\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报第1名可转债市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBNoNPercent3(20191231,1);
|
||
|
||
//返回:0.0709744876230163
|
||
```
|
||
|
||
####### Fundcbnonvalue
|
||
|
||
算法统计所有可转债市值后排名取第N市值汇总范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报第1名可转债持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBNoNValue(20191231,1);
|
||
|
||
//返回:65.793155
|
||
```
|
||
|
||
####### Fundcbsumnpercent
|
||
|
||
算法前N名可转债业市值/基金净值\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名可转债市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBSumNPercent(20191231,3);
|
||
|
||
//返回:0.02
|
||
```
|
||
|
||
####### Fundcbsumnpercent2
|
||
|
||
算法前N名可转债市值/基金总值\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名可转债市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBSumNPercent2(20191231,3);
|
||
|
||
//返回:0.0257855407041167
|
||
```
|
||
|
||
####### Fundcbsumnpercent3
|
||
|
||
算法前N名可转债市值/sum(债券市值)\*100范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名可转债市值占债券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBSumNPercent3(20191231,3);
|
||
|
||
//返回:0.129302126538895
|
||
```
|
||
|
||
####### Fundcbsumnvalue
|
||
|
||
算法统计所有可转债市值后排名取前N市值汇总范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名可转债持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundCBSumNValue(20191231,3);
|
||
|
||
//返回:119.862716
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundCBQk
|
||
|
||
######## FundCBQk
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundCBQk('OF000001',20231231,1);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 份额变动
|
||
|
||
####### 内容
|
||
|
||
- Fundssnetassetvalue
|
||
- Fundssnetassetvolume
|
||
- Fundsspurchasevalue
|
||
- Fundsspurchasevolume
|
||
- 中间函数
|
||
|
||
####### Fundssnetassetvalue
|
||
|
||
算法基金份额总额\*单位净值范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报的基金资产净值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundSSNetAssetValue(20191231);
|
||
|
||
//返回:19402.6657367436
|
||
```
|
||
|
||
####### Fundssnetassetvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF006872在2019年报的基金总份额
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundSSNetAssetVolume(20191231);
|
||
|
||
//返回:191612341.86 表示基金OF006872在2019年报的基金总份额
|
||
```
|
||
|
||
####### Fundsspurchasevalue
|
||
|
||
算法期末-期初范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报的基金净申购金额(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundSSPurchaseValue(20191231,20181231);
|
||
|
||
//返回:53870.359121009
|
||
```
|
||
|
||
####### Fundsspurchasevolume
|
||
|
||
算法期末-期初范例
|
||
|
||
```text
|
||
计算基金OF000001在2019年报的基金净申购份额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundSSPurchaseVolume(20191231,20181231);
|
||
|
||
//返回:-260955795.36
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundSSMX
|
||
|
||
######## FundSSMX
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundSSMX('OF000001',20231231);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 贵金属明细
|
||
|
||
####### 内容
|
||
|
||
- Fundpmnoncode
|
||
- Fundpmnonpercent
|
||
- Fundpmnonpercent2
|
||
- Fundpmnonpercent3
|
||
- Fundpmnonvalue
|
||
- Fundpmnonvolume
|
||
- Fundpmsecuritypercent
|
||
- Fundpmsecuritypercent2
|
||
- Fundpmsecuritypercent3
|
||
- Fundpmsecuritypercentgrow
|
||
- Fundpmsecuritypercentgrow2
|
||
- Fundpmsecuritypercentgrow3
|
||
- Fundpmsecurityvalue
|
||
- Fundpmsecurityvaluegrow
|
||
- Fundpmsecurityvaluegrowratio
|
||
- Fundpmsecurityvolume
|
||
- Fundpmsecurityvolumegrow
|
||
- Fundpmsumnpercent
|
||
- Fundpmsumnpercent2
|
||
- Fundpmsumnpercent3
|
||
- Fundpmsumnpercentgrow
|
||
- Fundpmsumnpercentgrow2
|
||
- Fundpmsumnpercentgrow3
|
||
- Fundpmsumnvalue
|
||
- Fundpmsumnvaluegrow
|
||
- Fundpmsumnvaluegrowratio
|
||
- 中间函数
|
||
|
||
####### Fundpmnoncode
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报第1名贵金属代码
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMNoNCode(20191231,1);
|
||
|
||
//返回:Au9999
|
||
```
|
||
|
||
####### Fundpmnonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2018年报第1名贵金属市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMNoNPercent(20181231,1);
|
||
|
||
//返回:0.03
|
||
```
|
||
|
||
####### Fundpmnonpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报第1名贵金属市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMNoNPercent2(20191231,1);
|
||
|
||
//返回:0.00341047340700451
|
||
```
|
||
|
||
####### Fundpmnonpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报第1名贵金属市值占贵金属市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMNoNPercent3(20191231,1);
|
||
|
||
//返回:100
|
||
```
|
||
|
||
####### Fundpmnonvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报第1名贵金属持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMNoNValue(20191231,1);
|
||
|
||
//返回:15.336
|
||
```
|
||
|
||
####### Fundpmnonvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF002610在2019年报第1名贵金属持有份额
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMNoNVolume(20191231,1);
|
||
|
||
//返回:450
|
||
```
|
||
|
||
####### Fundpmsecuritypercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2018年报Au9999市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityPercent(20181231,"Au9999");
|
||
|
||
//返回:0.01
|
||
```
|
||
|
||
####### Fundpmsecuritypercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityPercent2(20191231,"Au9999");
|
||
|
||
//返回:0.00341047340700451
|
||
```
|
||
|
||
####### Fundpmsecuritypercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999市值占贵金属投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityPercent3(20191231,"Au9999");
|
||
|
||
//返回:100
|
||
```
|
||
|
||
####### Fundpmsecuritypercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityPercentGrow(20191231,20181231,"Au9999");
|
||
|
||
//返回:-0.01
|
||
```
|
||
|
||
####### Fundpmsecuritypercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityPercentGrow2(20191231,20181231,"Au9999");
|
||
|
||
//返回:-0.00160813258462438
|
||
```
|
||
|
||
####### Fundpmsecuritypercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999市值占贵金属市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityPercentGrow3(20191231,20181231,"Au9999");
|
||
|
||
//返回:86.9249617151608
|
||
```
|
||
|
||
####### Fundpmsecurityvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityValue(20191231,"Au9999");
|
||
|
||
//返回:15.336
|
||
```
|
||
|
||
####### Fundpmsecurityvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityValueGrow(20191231,20181231,"Au9999");
|
||
|
||
//返回:2.529
|
||
```
|
||
|
||
####### Fundpmsecurityvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报Au9999持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityValueGrowRatio(20191231,20181231,"Au9999");
|
||
|
||
//返回:19.7470133520731
|
||
```
|
||
|
||
####### Fundpmsecurityvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF002610在2019年报Au9999持有份额
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityVolume(20191231,"Au9999");
|
||
|
||
//返回:450
|
||
```
|
||
|
||
####### Fundpmsecurityvolumegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF002610在2018年报Au9999持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSecurityVolumeGrow(20181231,20171231,"Au9999");
|
||
|
||
//返回:450
|
||
```
|
||
|
||
####### Fundpmsumnpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2018年报前1名贵金属市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNPercent(20181231,1);
|
||
|
||
//返回:0.03
|
||
```
|
||
|
||
####### Fundpmsumnpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNPercent2(20191231,1);
|
||
|
||
//返回:0.00341047340700451
|
||
```
|
||
|
||
####### Fundpmsumnpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属市值占贵金属市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNPercent3(20191231,1);
|
||
|
||
//返回:100
|
||
```
|
||
|
||
####### Fundpmsumnpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNPercentGrow(20191231,20181231,1);
|
||
|
||
//返回:-0.03
|
||
```
|
||
|
||
####### Fundpmsumnpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNPercentGrow2(20191231,20181231,1);
|
||
|
||
//返回:-0.0299540280332437
|
||
```
|
||
|
||
####### Fundpmsumnpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属市值占贵金属市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNPercentGrow3(20191231,20181231,1);
|
||
|
||
//返回:13.0750382848392
|
||
```
|
||
|
||
####### Fundpmsumnvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNValue(20191231,1);
|
||
|
||
//返回:15.336
|
||
```
|
||
|
||
####### Fundpmsumnvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNValueGrow(20191231,20181231,1);
|
||
|
||
//返回:-69.807
|
||
```
|
||
|
||
####### Fundpmsumnvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF002610在2019年报前1名贵金属持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF002610");
|
||
|
||
return FundPMSumNValueGrowRatio(20191231,20181231,1);
|
||
|
||
//返回:-81.9879496846482
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundPMQk
|
||
|
||
######## FundPMQk
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundPMQk('OF002610',20231231,1);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 基金明细
|
||
|
||
####### 内容
|
||
|
||
- Fundfdfundpercent3
|
||
- Fundfdfundvolumegrow
|
||
- Fundfdmanagerpercent3
|
||
- Fundfdfundvaluegrowratio
|
||
- Fundfdmanagerpercent
|
||
- Fundfdfundpercentgrow3
|
||
- Fundfdmanagerpercent2
|
||
- Fundfdfundpercent
|
||
- Fundfdfundvalue
|
||
- Fundfdfundvolume
|
||
- Fundfdfundpercentgrow
|
||
- Fundfdfundpercentgrow2
|
||
- Fundfdfundvaluegrow
|
||
- Fundfdfundpercent2
|
||
- Fundfdmanagerpercentgrow2
|
||
- Fundfdnonpercent
|
||
- Fundfdmanagerpercentgrow3
|
||
- Fundfdsumnvaluegrow
|
||
- Fundfdnonpercent2
|
||
- Fundfdmanagervaluegrow
|
||
- Fundfdnonvalue
|
||
- Fundfdsumnpercent2
|
||
- Fundfdsumnvalue
|
||
- Fundfdnonpercent3
|
||
- Fundfdnoncode
|
||
- Fundfdsumnpercentgrow
|
||
- Fundfdsumnpercent
|
||
- Fundfdmanagervalue
|
||
- Fundfdsumnvaluegrowratio
|
||
- Fundfdsumnpercent3
|
||
- Fundfdnonvolume
|
||
- Fundfdmanagervaluegrowratio
|
||
- Fundfdsumnpercentgrow2
|
||
- Fundfdmanagerpercentgrow
|
||
- Fundfdsumnpercentgrow3
|
||
- 中间函数
|
||
|
||
####### Fundfdfundpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报关于OF003349的市值占基金市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDFundPercent3(20191231,"OF003349");
|
||
|
||
//返回:15.6340847701839
|
||
```
|
||
|
||
####### Fundfdfundvolumegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF005809在2019年报关于OF004496的持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDFundVolumeGrow(20191231,20181231,"OF004496");
|
||
|
||
//返回:35137318.77
|
||
```
|
||
|
||
####### Fundfdmanagerpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报持有关联基金占基金市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDManagerPercent3(20191231);
|
||
|
||
//返回:29.05
|
||
```
|
||
|
||
####### Fundfdfundvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000008在2019年报关于OF159922的持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000008");
|
||
|
||
return FundFDFundValueGrowRatio(20191231,20181231,"OF159922");
|
||
|
||
//返回:147.794380361061
|
||
```
|
||
|
||
####### Fundfdmanagerpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报持有关联基金占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDManagerPercent(20191231);
|
||
|
||
//返回:21.83
|
||
```
|
||
|
||
####### Fundfdfundpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报关于OF004496的市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDFundPercentGrow3(20191231,20181231,"OF004496");
|
||
|
||
//返回:16.7501100284876
|
||
```
|
||
|
||
####### Fundfdmanagerpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报持有关联基金占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDManagerPercent2(20191231);
|
||
|
||
//返回:20.47
|
||
```
|
||
|
||
####### Fundfdfundpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报关于OF003349的市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDFundPercent(20191231,"OF003349");
|
||
|
||
//返回:11.75
|
||
```
|
||
|
||
####### Fundfdfundvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报关于OF003349的持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDFundValue(20191231,"OF003349");
|
||
|
||
//返回:2813.922013
|
||
```
|
||
|
||
####### Fundfdfundvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF006872在2019年报关于OF003349的持有份额
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDFundVolume(20191231,"OF003349");
|
||
|
||
//返回:27301077.06
|
||
```
|
||
|
||
####### Fundfdfundpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报关于OF004496的市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDFundPercentGrow(20191231,20181231,"OF004496");
|
||
|
||
//返回:16.0138474911758
|
||
```
|
||
|
||
####### Fundfdfundpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报关于OF004496的市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDFundPercentGrow2(20191231,20181231,"OF004496");
|
||
|
||
//返回:15.6386901861466
|
||
```
|
||
|
||
####### Fundfdfundvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000008在2019年报关于OF159922的持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000008");
|
||
|
||
return FundFDFundValueGrow(20191231,20181231,"OF159922");
|
||
|
||
//返回:140560.033292
|
||
```
|
||
|
||
####### Fundfdfundpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报关于OF003349的市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDFundPercent2(20191231,"OF003349");
|
||
|
||
//返回:11.016283621239
|
||
```
|
||
|
||
####### Fundfdmanagerpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000008在2019年报持有关联基金市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000008");
|
||
|
||
return FundFDManagerPercentGrow2(20191231,20181231);
|
||
|
||
//返回:-5.44
|
||
```
|
||
|
||
####### Fundfdnonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报第3名基金市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDNoNPercent(20191231,3);
|
||
|
||
//返回:13.6
|
||
```
|
||
|
||
####### Fundfdmanagerpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报持有关联基金市值占基金市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDManagerPercentGrow3(20191231,20181231);
|
||
|
||
//返回:22.7
|
||
```
|
||
|
||
####### Fundfdsumnvaluegrow
|
||
|
||
算法本期前N名-上期前N名范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNValueGrow(20191231,20181231,3);
|
||
|
||
//返回:5594.169418
|
||
```
|
||
|
||
####### Fundfdnonpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报第3名基金市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDNoNPercent2(20191231,3);
|
||
|
||
//返回:13.2831488703853
|
||
```
|
||
|
||
####### Fundfdmanagervaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000008在2019年报持有关联基金市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000008");
|
||
|
||
return FundFDManagerValueGrow(20191231,20181231);
|
||
|
||
//返回:140560.03
|
||
```
|
||
|
||
####### Fundfdnonvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报第3名基金持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDNoNValue(20191231,3);
|
||
|
||
//返回:4285.1224
|
||
```
|
||
|
||
####### Fundfdsumnpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNPercent2(20191231,3);
|
||
|
||
//返回:43.0483021682607
|
||
```
|
||
|
||
####### Fundfdsumnvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNValue(20191231,3);
|
||
|
||
//返回:13887.31
|
||
```
|
||
|
||
####### Fundfdnonpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报第3名基金市值占基金市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDNoNPercent3(20191231,3);
|
||
|
||
//返回:14.2271636854108
|
||
```
|
||
|
||
####### Fundfdnoncode
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF005809在2019年报第3名基金代码
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDNoNCode(20191231,3);
|
||
|
||
//返回:OF512880
|
||
```
|
||
|
||
####### Fundfdsumnpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNPercentGrow(20191231,20181231,3);
|
||
|
||
//返回:-3.04
|
||
```
|
||
|
||
####### Fundfdsumnpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNPercent(20191231,3);
|
||
|
||
//返回:44.08
|
||
```
|
||
|
||
####### Fundfdmanagervalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报持有关联基金市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundFDManagerValue(20191231);
|
||
|
||
//返回:5229.128188
|
||
```
|
||
|
||
####### Fundfdsumnvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNValueGrowRatio(20191231,20181231,3);
|
||
|
||
//返回:67.4553559647378
|
||
```
|
||
|
||
####### Fundfdsumnpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金市值占基金市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNPercent3(20191231,3);
|
||
|
||
//返回:46.1076848044921
|
||
```
|
||
|
||
####### Fundfdnonvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF005809在2019年报第3名基金持有份额
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDNoNVolume(20191231,3);
|
||
|
||
//返回:41203100
|
||
```
|
||
|
||
####### Fundfdmanagervaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000008在2019年报持有关联基金市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000008");
|
||
|
||
return FundFDManagerValueGrowRatio(20191231,20181231);
|
||
|
||
//返回:147.79
|
||
```
|
||
|
||
####### Fundfdsumnpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNPercentGrow2(20191231,20181231,3);
|
||
|
||
//返回:-3.26608039700498
|
||
```
|
||
|
||
####### Fundfdmanagerpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000008在2019年报持有关联基金市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000008");
|
||
|
||
return FundFDManagerPercentGrow(20191231,20181231);
|
||
|
||
//返回:3.86
|
||
```
|
||
|
||
####### Fundfdsumnpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF005809在2019年报前3名基金市值占基金市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF005809");
|
||
|
||
return FundFDSumNPercentGrow3(20191231,20181231,3);
|
||
|
||
//返回:-3.18635425027458
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundFDQk
|
||
|
||
######## FundFDQk
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundFDQk('OF005218',20231231,1,5);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 累计买入和卖出
|
||
|
||
####### 内容
|
||
|
||
- Fundbsstockbuyamount
|
||
- Fundbsstockbuypercent
|
||
- Fundbsstockbuypercent2
|
||
- Fundbsstockbuypercent3
|
||
- Fundbsstockbuyrank
|
||
- Fundbsstocknetamount
|
||
- Fundbsstocksellamount
|
||
- Fundbsstocksellpercent
|
||
- Fundbsstocksellpercent2
|
||
- Fundbsstocksellpercent3
|
||
- Fundbsstocksellrank
|
||
- Fundbssumnbuyamount
|
||
- Fundbssumnbuypercent
|
||
- Fundbssumnbuypercent2
|
||
- Fundbssumnbuypercent3
|
||
- Fundbssumnsellamount
|
||
- Fundbssumnsellpercent
|
||
- Fundbssumnsellpercent2
|
||
- Fundbssumnsellpercent3
|
||
- 中间函数
|
||
|
||
####### Fundbsstockbuyamount
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报关于SZ000002累计买入金额(万)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundBSStockBuyAmount(20191231,"SZ000002");
|
||
|
||
//返回:336.242
|
||
```
|
||
|
||
####### Fundbsstockbuypercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SH601336累计买入金额占期初净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSStockBuyPercent(20191231,"SH601336");
|
||
|
||
//返回:13.29
|
||
```
|
||
|
||
####### Fundbsstockbuypercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SH601336累计买入金额占期初总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSStockBuyPercent2(20191231,"SH601336");
|
||
|
||
//返回:13.0086882898074
|
||
```
|
||
|
||
####### Fundbsstockbuypercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SH601336累计买入金额占期初股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSStockBuyPercent3(20191231,"SH601336");
|
||
|
||
//返回:21.2349113999709
|
||
```
|
||
|
||
####### Fundbsstockbuyrank
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF006872在2019年报关于SZ300760累计买入排名
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundBSStockBuyRank(20191231,"SZ300760");
|
||
|
||
//返回:4
|
||
```
|
||
|
||
####### Fundbsstocknetamount
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报关于SZ300760累计净买入金额(万)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundBSStockNetAmount(20191231,"SZ300760");
|
||
|
||
//返回:6.1258
|
||
```
|
||
|
||
####### Fundbsstocksellamount
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF006872在2019年报关于SZ300760累计卖出金额(万)
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundBSStockSellAmount(20191231,"SZ300760");
|
||
|
||
//返回:300.9683
|
||
```
|
||
|
||
####### Fundbsstocksellpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SH601336累计卖出金额占期初净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSStockSellPercent(20191231,"SH601336");
|
||
|
||
//返回:13.2
|
||
```
|
||
|
||
####### Fundbsstocksellpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SH601336累计卖出金额占期初总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSStockSellPercent2(20191231,"SH601336");
|
||
|
||
//返回:12.9206133999664
|
||
```
|
||
|
||
####### Fundbsstocksellpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报关于SH601336累计卖出金额占期初股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSStockSellPercent3(20191231,"SH601336");
|
||
|
||
//返回:21.0911411411508
|
||
```
|
||
|
||
####### Fundbsstocksellrank
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF006872在2019年报关于SZ300760累计卖出排名
|
||
|
||
SetSysParam(pn_stock(),"OF006872");
|
||
|
||
return FundBSStockSellRank(20191231,"SZ300760");
|
||
|
||
//返回:2
|
||
```
|
||
|
||
####### Fundbssumnbuyamount
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计买入金额(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNBuyAmount(20191231,3);
|
||
|
||
//返回:147105.822361
|
||
```
|
||
|
||
####### Fundbssumnbuypercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计买入金额占期初净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNBuyPercent(20191231,3);
|
||
|
||
//返回:36.24
|
||
```
|
||
|
||
####### Fundbssumnbuypercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计买入金额占期初总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNBuyPercent2(20191231,3);
|
||
|
||
//返回:35.4707514682479
|
||
```
|
||
|
||
####### Fundbssumnbuypercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计买入金额占期初股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNBuyPercent3(20191231,3);
|
||
|
||
//返回:57.9011694291112
|
||
```
|
||
|
||
####### Fundbssumnsellamount
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计卖出金额(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNSellAmount(20191231,3);
|
||
|
||
//返回:149707.131818
|
||
```
|
||
|
||
####### Fundbssumnsellpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计买入金额占期初净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNSellPercent(20191231,3);
|
||
|
||
//返回:36.87
|
||
```
|
||
|
||
####### Fundbssumnsellpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计卖出金额占期初总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNSellPercent2(20191231,3);
|
||
|
||
//返回:36.0979897363215
|
||
```
|
||
|
||
####### Fundbssumnsellpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000001在2019年报前3名股票累计买入金额占期初股票市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundBSSumNSellPercent3(20191231,3);
|
||
|
||
//返回:58.9250504502015
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundBSQK
|
||
|
||
######## FundBSQK
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundBSQK('OF000001',20231231,1,5);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### 平均剩余期限分布情况
|
||
|
||
####### 内容
|
||
|
||
- Fundarmasset
|
||
- Fundarmasset120d
|
||
- Fundarmasset120dpercent
|
||
- Fundarmasset30d
|
||
- Fundarmasset30dpercent
|
||
- Fundarmasset397d
|
||
- Fundarmasset397dpercent
|
||
- Fundarmasset60d
|
||
- Fundarmasset60dpercent
|
||
- Fundarmasset90d
|
||
- Fundarmasset90dpercent
|
||
- Fundarmassetpercent
|
||
- Fundarmdebt
|
||
- Fundarmdebt120d
|
||
- Fundarmdebt120dpercent
|
||
- Fundarmdebt30d
|
||
- Fundarmdebt30dpercent
|
||
- Fundarmdebt397d
|
||
- Fundarmdebt397dpercent
|
||
- Fundarmdebt60d
|
||
- Fundarmdebt60dpercent
|
||
- Fundarmdebt90d
|
||
- Fundarmdebt90dpercent
|
||
- Fundarmdebtpercent
|
||
- 中间函数
|
||
|
||
####### Fundarmasset
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报资产(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset(20191231);
|
||
|
||
//返回:4490211.90392788
|
||
```
|
||
|
||
####### Fundarmasset120d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报90天(含)-120天资产(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset120D(20191231);
|
||
|
||
//返回:159622.346484291
|
||
```
|
||
|
||
####### Fundarmasset120dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报90天(含)-120天资产占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset120DPercent(20191231);
|
||
|
||
//返回:4.07
|
||
```
|
||
|
||
####### Fundarmasset30d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报30天以内资产(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset30D(20191231);
|
||
|
||
//返回:744773.552760856
|
||
```
|
||
|
||
####### Fundarmasset30dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报30天以内资产占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset30DPercent(20191231);
|
||
|
||
//返回:18.99
|
||
```
|
||
|
||
####### Fundarmasset397d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报120天(含)-397天(含)资产(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset397D(20191231);
|
||
|
||
//返回:1160105.40761802
|
||
```
|
||
|
||
####### Fundarmasset397dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报120天(含)-397天(含)资产占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset397DPercent(20191231);
|
||
|
||
//返回:29.58
|
||
```
|
||
|
||
####### Fundarmasset60d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报30天(含)-60天资产(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset60D(20191231);
|
||
|
||
//返回:568286.928883876
|
||
```
|
||
|
||
####### Fundarmasset60dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报30天(含)-60天资产占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset60DPercent(20191231);
|
||
|
||
//返回:14.49
|
||
```
|
||
|
||
####### Fundarmasset90d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报60天(含)-90天资产(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset90D(20191231);
|
||
|
||
//返回:1857815.86067834
|
||
```
|
||
|
||
####### Fundarmasset90dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报60天(含)-90天资产占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAsset90DPercent(20191231);
|
||
|
||
//返回:47.37
|
||
```
|
||
|
||
####### Fundarmassetpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报资产占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMAssetPercent(20191231);
|
||
|
||
//返回:114.49
|
||
```
|
||
|
||
####### Fundarmdebt
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报负债(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt(20191231);
|
||
|
||
//返回:614173.45109189
|
||
```
|
||
|
||
####### Fundarmdebt120d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报90天(含)-120天负债(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt120D(20191231);
|
||
|
||
//返回:0
|
||
```
|
||
|
||
####### Fundarmdebt120dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报90天(含)-120天负债占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt120DPercent(20191231);
|
||
|
||
//返回:0
|
||
```
|
||
|
||
####### Fundarmdebt30d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报30天以内负债(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt30D(20191231);
|
||
|
||
//返回:614173.45109189
|
||
```
|
||
|
||
####### Fundarmdebt30dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报30天以内资产占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt30DPercent(20191231);
|
||
|
||
//返回:15.66
|
||
```
|
||
|
||
####### Fundarmdebt397d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报120天(含)-397天(含)负债(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt397D(20191231);
|
||
|
||
//返回:0
|
||
```
|
||
|
||
####### Fundarmdebt397dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报120天(含)-397天(含)负债占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt397DPercent(20191231);
|
||
|
||
//返回:0
|
||
```
|
||
|
||
####### Fundarmdebt60d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF004185在2018年中报30天(含)-60天负债(万)
|
||
|
||
SetSysParam(pn_stock(),"OF004185");
|
||
|
||
return FundARMDebt60D(20180630);
|
||
|
||
//返回:2003.2
|
||
```
|
||
|
||
####### Fundarmdebt60dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF004185在2018年中报30天(含)-60天负债占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF004185");
|
||
|
||
return FundARMDebt60DPercent(20180630);
|
||
|
||
//返回:2.58
|
||
```
|
||
|
||
####### Fundarmdebt90d
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报60天(含)-90天负债(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt90D(20191231);
|
||
|
||
//返回:0
|
||
```
|
||
|
||
####### Fundarmdebt90dpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报60天(含)-90天负债占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebt90DPercent(20191231);
|
||
|
||
//返回:0
|
||
```
|
||
|
||
####### Fundarmdebtpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报负债占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundARMDebtPercent(20191231);
|
||
|
||
//返回:15.66
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundARMMX
|
||
- FundARMAssetByField
|
||
|
||
######## FundARMMX
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundARMMX('OF000009',20231231,0);
|
||
```
|
||
|
||
结果:
|
||
|
||
######## FundARMAssetByField
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundARMAssetByField('OF000009',20231231,1,'各期限资产占净值比例(%)');
|
||
|
||
//结果:558753.59
|
||
```
|
||
|
||
###### 资产支持证券明细
|
||
|
||
####### 内容
|
||
|
||
- Fundabsnoncode
|
||
- Fundabsnonpercent
|
||
- Fundabsnonpercent2
|
||
- Fundabsnonpercent3
|
||
- Fundabsnonpercent4
|
||
- Fundabsnonvalue
|
||
- Fundabsnonvolume
|
||
- Fundabssecuritypercent
|
||
- Fundabssecuritypercent2
|
||
- Fundabssecuritypercent3
|
||
- Fundabssecuritypercent4
|
||
- Fundabssecuritypercentgrow
|
||
- Fundabssecuritypercentgrow2
|
||
- Fundabssecuritypercentgrow3
|
||
- Fundabssecuritypercentgrow4
|
||
- Fundabssecurityvalue
|
||
- Fundabssecurityvaluegrow
|
||
- Fundabssecurityvaluegrowratio
|
||
- Fundabssecurityvolume
|
||
- Fundabssecurityvolumegrow
|
||
- Fundabssumnpercent
|
||
- Fundabssumnpercent2
|
||
- Fundabssumnpercent3
|
||
- Fundabssumnpercent4
|
||
- Fundabssumnpercentgrow
|
||
- Fundabssumnpercentgrow2
|
||
- Fundabssumnpercentgrow3
|
||
- Fundabssumnpercentgrow4
|
||
- Fundabssumnvalue
|
||
- Fundabssumnvaluegrow
|
||
- Fundabssumnvaluegrowratio
|
||
- 中间函数
|
||
|
||
####### Fundabsnoncode
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000009在2019年报第3名资产支持证券代码
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSNoNCode(20191231,3);
|
||
|
||
//返回:SZ139435
|
||
```
|
||
|
||
####### Fundabsnonpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报第3名资产支持证券市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSNoNPercent(20191231,3);
|
||
|
||
//返回:0.13
|
||
```
|
||
|
||
####### Fundabsnonpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报第3名资产支持证券市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSNoNPercent2(20191231,3);
|
||
|
||
//返回:0.110046329631174
|
||
```
|
||
|
||
####### Fundabsnonpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报第3名资产支持证券市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSNoNPercent3(20191231,3);
|
||
|
||
//返回:0.212776017382555
|
||
```
|
||
|
||
####### Fundabsnonpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报第3名资产支持证券市值占资产支持证券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSNoNPercent4(20191231,3);
|
||
|
||
//返回:4.56202664893526
|
||
```
|
||
|
||
####### Fundabsnonvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报第3名资产支持证券持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSNoNValue(20191231,3);
|
||
|
||
//返回:5000
|
||
```
|
||
|
||
####### Fundabsnonvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000009在2019年报第3名资产支持证券持有份额
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSNoNVolume(20191231,3);
|
||
|
||
//返回:500000
|
||
```
|
||
|
||
####### Fundabssecuritypercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercent(20191231,"SZ139453");
|
||
|
||
//返回:0.18
|
||
```
|
||
|
||
####### Fundabssecuritypercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercent2(20191231,"SZ139453");
|
||
|
||
//返回:0.154064861483644
|
||
```
|
||
|
||
####### Fundabssecuritypercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercent3(20191231,"SZ139453");
|
||
|
||
//返回:0.297886424335576
|
||
```
|
||
|
||
####### Fundabssecuritypercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占资产支持证券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercent4(20191231,"SZ139453");
|
||
|
||
//返回:6.38683730850936
|
||
```
|
||
|
||
####### Fundabssecuritypercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercentGrow(20191231,20181231,"SZ139453");
|
||
|
||
//返回:0.18
|
||
```
|
||
|
||
####### Fundabssecuritypercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercentGrow2(20191231,20181231,"SZ139453");
|
||
|
||
//返回:0.154064861483644
|
||
```
|
||
|
||
####### Fundabssecuritypercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占固定收益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercentGrow3(20191231,20181231,"SZ139453");
|
||
|
||
//返回:0.297886424335576
|
||
```
|
||
|
||
####### Fundabssecuritypercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券市值占资产支持证券市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityPercentGrow4(20191231,20181231,"SZ139453");
|
||
|
||
//返回:6.38683730850936
|
||
```
|
||
|
||
####### Fundabssecurityvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityValue(20191231,"SZ139453");
|
||
|
||
//返回:7000
|
||
```
|
||
|
||
####### Fundabssecurityvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityValueGrow(20191231,20181231,"SZ139453");
|
||
|
||
//返回:7000
|
||
```
|
||
|
||
####### Fundabssecurityvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报关于SZ139453资产支持证券持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityValueGrowRatio(20191231,20181231,"SZ139453");
|
||
|
||
//返回:0
|
||
```
|
||
|
||
####### Fundabssecurityvolume
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000009在2019年报关于SZ139453资产支持证券持有份额
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityVolume(20191231,"SZ139453");
|
||
|
||
//返回:700000
|
||
```
|
||
|
||
####### Fundabssecurityvolumegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
计算基金OF000009在2019年报关于SZ139453资产支持证券持有份额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSecurityVolumeGrow(20191231,20181231,"SZ139453");
|
||
|
||
//返回:700000
|
||
```
|
||
|
||
####### Fundabssumnpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占净值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercent(20191231,3);
|
||
|
||
//返回:0.44
|
||
```
|
||
|
||
####### Fundabssumnpercent2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占总值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercent2(20191231,3);
|
||
|
||
//返回:0.374157520745991
|
||
```
|
||
|
||
####### Fundabssumnpercent3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占固定收益投资市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercent3(20191231,3);
|
||
|
||
//返回:0.723438459100685
|
||
```
|
||
|
||
####### Fundabssumnpercent4
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占资产支持证券市值比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercent4(20191231,3);
|
||
|
||
//返回:15.5108906063799
|
||
```
|
||
|
||
####### Fundabssumnpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占净值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercentGrow(20191231,20181231,3);
|
||
|
||
//返回:0.33
|
||
```
|
||
|
||
####### Fundabssumnpercentgrow2
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占总值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercentGrow2(20191231,20181231,3);
|
||
|
||
//返回:0.267815386984316
|
||
```
|
||
|
||
####### Fundabssumnpercentgrow3
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占固定收益投资市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercentGrow3(20191231,20181231,3);
|
||
|
||
//返回:0.470090300029519
|
||
```
|
||
|
||
####### Fundabssumnpercentgrow4
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券市值占资产支持证券市值比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNPercentGrow4(20191231,20181231,3);
|
||
|
||
//返回:-84.4891093936201
|
||
```
|
||
|
||
####### Fundabssumnvalue
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券持有市值(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNValue(20191231,3);
|
||
|
||
//返回:17000
|
||
```
|
||
|
||
####### Fundabssumnvaluegrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券持有市值变动(万)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNValueGrow(20191231,20181231,3);
|
||
|
||
//返回:8700
|
||
```
|
||
|
||
####### Fundabssumnvaluegrowratio
|
||
|
||
范例
|
||
|
||
```text
|
||
//计算基金OF000009在2019年报前3名资产支持证券持有市值变比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000009");
|
||
|
||
return FundABSSumNValueGrowRatio(20191231,20181231,3);
|
||
|
||
//返回:104.819277108434
|
||
```
|
||
|
||
####### 中间函数
|
||
|
||
######## 内容
|
||
|
||
- FundABSQk
|
||
|
||
######## FundABSQk
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundABSQk('OF000379',20191231,3);
|
||
```
|
||
|
||
结果:
|
||
|
||
###### IsFundDeclareIR
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return IsFundDeclareIR(20221231);
|
||
```
|
||
|
||
##### 资产配置
|
||
|
||
###### 内容
|
||
|
||
- Fund_AAStockMValue
|
||
- Fund_AABondMValue
|
||
- Fund_AADepositMValue
|
||
- Fund_AATotalMValue
|
||
- Fund_AABackSecuMValue
|
||
- Fund_AAOtherMValue
|
||
|
||
###### Fund_AAStockMValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新 2010年中报公布的股票市值
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100630;
|
||
|
||
Return Fund_AAStockMValue(RDate);
|
||
|
||
|
||
//结果:3956767774.54
|
||
```
|
||
|
||
###### Fund_AABondMValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新 2011年中报公布的债券市值
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate:=20110630;
|
||
|
||
|
||
Return Fund_AABondMValue(RDate);
|
||
|
||
|
||
//结果:1656960130.7
|
||
```
|
||
|
||
###### Fund_AADepositMValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新 2011年中报公布的银行存款和清算备付金
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20110630;
|
||
|
||
Return Fund_AADepositMValue(RDate);
|
||
|
||
|
||
//结果:786958361
|
||
```
|
||
|
||
###### Fund_AATotalMValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新2010年一季报的资产合计
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
RDate:=20100331;
|
||
|
||
|
||
Return Fund_AATotalMValue(RDate);
|
||
|
||
|
||
//结果:8069953961.17
|
||
```
|
||
|
||
###### Fund_AABackSecuMValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新 2010年中报公布的买入返售证券
|
||
|
||
|
||
SetSysParam(pn_stock(),'SZ150003');
|
||
|
||
|
||
RDate:=20100630;
|
||
|
||
|
||
Return Fund_AABackSecuMValue(RDate);
|
||
|
||
|
||
//结果:830751395.38
|
||
```
|
||
|
||
###### Fund_AAOtherMValue
|
||
|
||
范例
|
||
|
||
```text
|
||
//返回华安创新 2011年中报公布的其他资产市值
|
||
|
||
|
||
SetSysParam(pn_stock(),'OF040001');
|
||
|
||
|
||
RDate:=20110630;
|
||
|
||
|
||
ReturnFund_AAOtherMValue(RDate);
|
||
|
||
|
||
//结果:28228244.75
|
||
```
|
||
|
||
##### 基金行业
|
||
|
||
###### 内容
|
||
|
||
- Fundinfoindustryname1
|
||
- Fundinfoindustryname2
|
||
- Fundyhindustryid1
|
||
- Fundyhindustryid2
|
||
- 中间函数
|
||
|
||
###### Fundinfoindustryname1
|
||
|
||
范例
|
||
|
||
```text
|
||
//华夏成长在20210302的银河一级行业编码
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
return FundInfoIndustryName1(); //返回:银河混合型
|
||
```
|
||
|
||
###### Fundinfoindustryname2
|
||
|
||
范例
|
||
|
||
```text
|
||
//华夏成长在20210302的银河二级行业名称
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
return FundInfoIndustryName2(); //返回:银河偏股型
|
||
```
|
||
|
||
###### Fundyhindustryid1
|
||
|
||
范例
|
||
|
||
```text
|
||
//华夏成长在20210302的银河一级行业编码
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
return FundYHIndustryID1(); //返回:YHFL020000
|
||
```
|
||
|
||
###### Fundyhindustryid2
|
||
|
||
范例
|
||
|
||
```text
|
||
//华夏成长在20210302的银河二级行业编码
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
return FundYHIndustryID2(); //返回:YHFL020100
|
||
```
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- FundYHIndustryArr
|
||
- FundIndustryInfoLvN
|
||
- FundGetIndustrydata
|
||
|
||
####### FundYHIndustryArr
|
||
|
||
范例
|
||
|
||
```text
|
||
// 在20210302的银河基金分类的1级分类成分
|
||
|
||
return FundYHIndustryArr('YHFL',1,20210302T);
|
||
```
|
||
|
||
####### FundIndustryInfoLvN
|
||
|
||
范例
|
||
|
||
```text
|
||
// 华夏成长在20201207的一级类型名称
|
||
|
||
return FundIndustryInfoLvN('OF000001',20210301T,1,'YHFL',1);
|
||
|
||
//返回:银河混合型
|
||
```
|
||
|
||
####### FundGetIndustrydata
|
||
|
||
范例
|
||
|
||
```text
|
||
// 华夏成长在20201207的有效的基金分类数据
|
||
|
||
return FundGetIndustrydata('OF000001',20210301T,1,'YHFL');
|
||
```
|
||
|
||
结果:
|
||
|
||
##### 交易席位情况
|
||
|
||
###### 内容
|
||
|
||
- Fundtpbrokercommissionpercent
|
||
- Fundtpbrokerbondamount
|
||
- Fundtpbrokerinterbankamountrankgrow
|
||
- Fundtpbrokerinterbankamountpercent
|
||
- Fundtpbrokerrepoamountpercent
|
||
- Fundtpbrokercommission
|
||
- Fundtpbrokerinterbankamountpercentgrow
|
||
- Fundtpbrokercommissionpercentgrow
|
||
- Fundtpbrokerbondamountpercentgrow
|
||
- Fundtpbrokerrepoamount
|
||
- Fundtpbrokerinterbankamount
|
||
- Fundtpbrokerbondamountrank
|
||
- Fundtpbrokercommissiongrow
|
||
- Fundtpbrokerbondamountgrow
|
||
- Fundtpbrokerbondamountpercent
|
||
- Fundtpbrokerrepoamountgrow
|
||
- Fundtpbrokerinterbankamountrank
|
||
- Fundtpbrokerbondamountrankgrow
|
||
- Fundtpbrokerrepoamountrank
|
||
- Fundtpnonrepoamountpercent
|
||
- Fundtpbrokerstockamountrank
|
||
- Fundtpbrokerstockamountgrow
|
||
- Fundtpnonbondamountname
|
||
- Fundtpnonbondamount
|
||
- Fundtpbrokerstockamount
|
||
- Fundtpbrokerrepoamountpercentgrow
|
||
- Fundtpbrokerstockamountpercentgrow
|
||
- Fundtpnoncommission
|
||
- Fundtpnonbondamountpercent
|
||
- Fundtpnoninterbankamountpercent
|
||
- Fundtpnoninterbankamount
|
||
- Fundtpnonstockamountname
|
||
- Fundtpbrokerstockamountrankgrow
|
||
- Fundtpbrokerstockamountpercent
|
||
- Fundtpnonrepoamountname
|
||
- Fundtpnonstockamount
|
||
- Fundtpnonrepoamount
|
||
- Fundtpnoncommissionpercent
|
||
- Fundtpbrokerrepoamountrankgrow
|
||
- Fundtpsumnbondamount
|
||
- Fundtpsumnrepoamountpercent
|
||
- Fundtpsumnstockamountgrow
|
||
- Fundtpsumninterbankamountpercentgrow
|
||
- Fundtpsumnbondamountpercentgrow
|
||
- Fundtpsumncommissionpercent
|
||
- Fundtpsumnrepoamount
|
||
- Fundtpsumnrepoamountpercentgrow
|
||
- Fundtpsumninterbankamountgrow
|
||
- Fundtpsumninterbankamountpercent
|
||
- Fundtpsumncommission
|
||
- Fundtpsumnbondamountgrow
|
||
- Fundtpsumncommissionpercentgrow
|
||
- Fundtpsumnrepoamountgrow
|
||
- Fundtpsumnstockamount
|
||
- Fundtpsumninterbankamount
|
||
- Fundtpsumnbondamountpercent
|
||
- Fundtpnonstockamountpercent
|
||
- Fundtpsumncommissiongrow
|
||
- Fundtpsumnstockamountpercentgrow
|
||
- Fundtpsumnstockamountpercent
|
||
- Fundtpbrokerinterbankamountgrow
|
||
- Fundtpnoninterbankamountname
|
||
- 中间函数
|
||
|
||
###### Fundtpbrokercommissionpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231"光大证券"的佣金占佣金总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerCommissionPercent(20191231,"光大证券"); //结果:4.26
|
||
```
|
||
|
||
###### Fundtpbrokerbondamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231"光大证券"债券成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerBondAmount(20181231,"光大证券"); //结果:12693715.39
|
||
```
|
||
|
||
###### Fundtpbrokerinterbankamountrankgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231至20191231期间券商"申万宏源"的银行间债券成交额排名变动
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPBrokerInterBankAmountRankGrow(20191231,20181231,"申万宏源");
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### Fundtpbrokerinterbankamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231"申万宏源"的商银行间债券成交额占银行间成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPBrokerInterBankAmountPercent(20181231,"申万宏源"); //结果:1
|
||
```
|
||
|
||
###### Fundtpbrokerrepoamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF110006"在20191231"国泰君安"的回购成交额占回购成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF110006");
|
||
|
||
return FundTPBrokerRepoAmountPercent(20191231,"国泰君安"); //结果:99.92
|
||
```
|
||
|
||
###### Fundtpbrokercommission
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231券商"光大证券"的佣金
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerCommission(20181231,"光大证券"); //结果:2679213
|
||
```
|
||
|
||
###### Fundtpbrokerinterbankamountpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231至20191231期间券商"申万宏源"的银行间债券成交额占银行间成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPBrokerInterBankAmountPercentGrow(20191231,20181231,"申万宏源");//结果:-1
|
||
```
|
||
|
||
###### Fundtpbrokercommissionpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231-20191231期间指定券商"光大证券"佣金占佣金总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerCommissionPercentGrow(20191231,20181231,"光大证券");//结果:-10.77
|
||
```
|
||
|
||
###### Fundtpbrokerbondamountpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间券商"光大证券"的债券成交额占债券成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerBondAmountPercentGrow(20191231,20181231,"光大证券");//结果:-8.25
|
||
```
|
||
|
||
###### Fundtpbrokerrepoamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF110006"在20181231指定券商"国泰君安"的回购成交额
|
||
|
||
SetSysParam(pn_stock(),"OF110006");
|
||
|
||
return FundTPBrokerRepoAmount(20181231,"国泰君安"); //结果:5056100300000
|
||
```
|
||
|
||
###### Fundtpbrokerinterbankamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231"申万宏源"的银行间债券成交额
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPBrokerInterBankAmount(20181231,"申万宏源"); //结果:4085764.8
|
||
```
|
||
|
||
###### Fundtpbrokerbondamountrank
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231"光大证券"的债券成交额排名
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerBondAmountRank(20181231,"光大证券"); //结果:2
|
||
```
|
||
|
||
###### Fundtpbrokercommissiongrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间券商"光大证券"的佣金变化
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerCommissionGrow(20191231,20181231,"光大证券");//结果:-1803630.98
|
||
```
|
||
|
||
###### Fundtpbrokerbondamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间券商"光大证券"的债券成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerBondAmountGrow(20191231,20181231,"光大证券");//结果:-12693715.39
|
||
```
|
||
|
||
###### Fundtpbrokerbondamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231"光大证券"的债券成交额占债券成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerBondAmountPercent(20181231,"光大证券"); //结果:8.25
|
||
```
|
||
|
||
###### Fundtpbrokerrepoamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF110006"在20181231至20191231期间券商"国泰君安"的回购成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF110006");
|
||
|
||
return FundTPBrokerRepoAmountGrow(20191231,20181231,"国泰君安");
|
||
|
||
//结果:-947240300000
|
||
```
|
||
|
||
###### Fundtpbrokerinterbankamountrank
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231指定券商"申万宏源"的银行间债券成交额排名
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPBrokerInterBankAmountRank(20181231,"申万宏源"); //结果:1
|
||
```
|
||
|
||
###### Fundtpbrokerbondamountrankgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间券商"光大证券"的债券成交额排名变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerBondAmountRankGrow(20191231,20181231,"光大证券");//结果:6
|
||
```
|
||
|
||
###### Fundtpbrokerrepoamountrank
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231"光大证券"的回购成交额排名
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerRepoAmountRank(20181231,"光大证券"); //结果:4
|
||
```
|
||
|
||
###### Fundtpnonrepoamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231第2名券商回购成交额占回购成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNRepoAmountPercent(20181231,2); //结果:11.18
|
||
```
|
||
|
||
###### Fundtpbrokerstockamountrank
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231"光大证券"的股票成交额排名
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerStockAmountRank(20181231,"光大证券"); //结果:4
|
||
```
|
||
|
||
###### Fundtpbrokerstockamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231时间段"光大证券"的股票成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerStockAmountGrow(20191231,20181231,"光大证券"); //结果:-2466347033.56
|
||
```
|
||
|
||
###### Fundtpnonbondamountname
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231第2名债券成交额券商名称
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNBondAmountName(20181231,2); //结果:光大证券
|
||
```
|
||
|
||
###### Fundtpnonbondamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名券商债券成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNBondAmount(20191231,2); //结果:45067508.6
|
||
```
|
||
|
||
###### Fundtpbrokerstockamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231报告期"光大证券"的股票成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerStockAmount(20181231,"光大证券"); //结果:3663646679.58
|
||
```
|
||
|
||
###### Fundtpbrokerrepoamountpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF110006"在20181231至20191231期间券商"国泰君安"的回购成交额占回购成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF110006");
|
||
|
||
return FundTPBrokerRepoAmountPercentGrow(20191231,20181231,"国泰君安");//结果:-0.0799999999999983
|
||
```
|
||
|
||
###### Fundtpbrokerstockamountpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间券商"光大证券"的股票成交额占股票成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerStockAmountPercentGrow(20191231,20181231,"光大证券");//结果:-10.39
|
||
```
|
||
|
||
###### Fundtpnoncommission
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200630第2名券商佣金
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNCommission(20200630,2); //结果:1644771
|
||
```
|
||
|
||
###### Fundtpnonbondamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231第2名券商债券成交额占债券成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNBondAmountPercent(20181231,2); //结果:8.25
|
||
```
|
||
|
||
###### Fundtpnoninterbankamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231第1名券商银行间债券成交额占银行间成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPNoNInterBankAmountPercent(20181231,1); //结果:1
|
||
```
|
||
|
||
###### Fundtpnoninterbankamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231第1名券商银行间债券成交额
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPNoNInterBankAmount(20181231,1); //结果:4085764.8
|
||
```
|
||
|
||
###### Fundtpnonstockamountname
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231第2名股票成交额券商名称
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNStockAmountName(20181231,2); //结果:中信证券
|
||
```
|
||
|
||
###### Fundtpbrokerstockamountrankgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间券商"光大证券"的股票成交额排名变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerStockAmountRankGrow(20191231,20181231,"光大证券");//结果:3
|
||
```
|
||
|
||
###### Fundtpbrokerstockamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231前"光大证券"的股票成交额占股票成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerStockAmountPercent(20181231,"光大证券"); //结果:14.76
|
||
```
|
||
|
||
###### Fundtpnonrepoamountname
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231第2名回购成交额券商名称
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNRepoAmountName(20181231,2); //结果:华创证券
|
||
```
|
||
|
||
###### Fundtpnonstockamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231第2名券商股票成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNStockAmount(20191231,2); //结果:3008002112.11
|
||
```
|
||
|
||
###### Fundtpnonrepoamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231第2名券商回购成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNRepoAmount(20181231,2); //结果:60400000
|
||
```
|
||
|
||
###### Fundtpnoncommissionpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200630第2名券商佣金占佣金总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNCommissionPercent(20200630,2); //结果:11.3
|
||
```
|
||
|
||
###### Fundtpbrokerrepoamountrankgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间券商"光大证券"的回购成交额排名变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPBrokerRepoAmountRankGrow(20191231,20181231,"光大证券");//结果:-2
|
||
```
|
||
|
||
###### Fundtpsumnbondamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名券商债券成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNBondAmount(20191231,2); //结果:100317070.9
|
||
```
|
||
|
||
###### Fundtpsumnrepoamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231前2名券商回购成交额占回购成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNRepoAmountPercent(20181231,2); //结果: 94.45
|
||
```
|
||
|
||
###### Fundtpsumnstockamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间前2名券商股票成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNStockAmountGrow(20191231,20181231,2);//结果:1609282529.37
|
||
```
|
||
|
||
###### Fundtpsumninterbankamountpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231至20191231期间前2名券商银行间债券成交额占银行间成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPSumNInterBankAmountPercentGrow(20191231,20181231,2);//结果:-1
|
||
```
|
||
|
||
###### Fundtpsumnbondamountpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间前2名券商债券成交额占债券成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNBondAmountPercentGrow(20191231,20181231,2);//结果:-26.26
|
||
```
|
||
|
||
###### Fundtpsumncommissionpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200630前2名券商佣金占佣金总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNCommissionPercent(20200630,2); //结果:58.01
|
||
```
|
||
|
||
###### Fundtpsumnrepoamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名券商回购成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNRepoAmount(20191231,2); //结果:12000000
|
||
```
|
||
|
||
###### Fundtpsumnrepoamountpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间前2名券商回购成交额占回购成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNRepoAmountPercentGrow(20191231,20181231,2);//结果:5.55
|
||
```
|
||
|
||
###### Fundtpsumninterbankamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231至20191231期间前1名券商银行间债券成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPSumNInterBankAmountGrow(20191231,20181231,1);//结果:-4085764.8
|
||
```
|
||
|
||
###### Fundtpsumninterbankamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231前1名券商银行间债券成交额占银行间成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPSumNInterBankAmountPercent(20181231,1); //结果:1
|
||
```
|
||
|
||
###### Fundtpsumncommission
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200630前2名券商佣金
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNCommission(20200630,2); //结果:8442489.51
|
||
```
|
||
|
||
###### Fundtpsumnbondamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间前2名券商债券成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNBondAmountGrow(20191231,20181231,2);//结果:-53605243.66
|
||
```
|
||
|
||
###### Fundtpsumncommissionpercentgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231-20191231期间前2名券商佣金占佣金总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNCommissionPercentGrow(20191231,20181231,2);
|
||
|
||
//结果:0.490000000000002
|
||
```
|
||
|
||
###### Fundtpsumnrepoamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间前2名券商回购成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNRepoAmountGrow(20191231,20181231,2);//结果:-498400000
|
||
```
|
||
|
||
###### Fundtpsumnstockamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200630前2名券商股票成交额
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNStockAmount(20200630,2); //结果:11408565519.97
|
||
```
|
||
|
||
###### Fundtpsumninterbankamount
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231前1名券商银行间债券成交额
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPSumNInterBankAmount(20181231,1); //结果:4085764.8
|
||
```
|
||
|
||
###### Fundtpsumnbondamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20191231前2名券商债券成交额占债券成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNBondAmountPercent(20191231,2); //结果:73.74
|
||
```
|
||
|
||
###### Fundtpnonstockamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231第2名券商股票成交额占股票成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPNoNStockAmountPercent(20181231,2); //结果:17.92
|
||
```
|
||
|
||
###### Fundtpsumncommissiongrow
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20181231-20191231期间前2名券商佣金变化
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNCommissionGrow(20191231,20181231,2);//结果:1442409.18
|
||
```
|
||
|
||
###### Fundtpsumnstockamountpercentgrow
|
||
|
||
算法期末占比-期初占比范例
|
||
|
||
```text
|
||
// "OF000001"在20181231至20191231期间前2名券商股票成交额占股票成交总额比变动(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNStockAmountPercentGrow(20191231,20181231,2);//结果:1.41
|
||
```
|
||
|
||
###### Fundtpsumnstockamountpercent
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF000001"在20200630前2名券商股票成交额占股票成交总额比(%)
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
return FundTPSumNStockAmountPercent(20200630,2); //结果:57.18
|
||
```
|
||
|
||
###### Fundtpbrokerinterbankamountgrow
|
||
|
||
范例
|
||
|
||
```text
|
||
//"OF006042"在20181231至20191231期间券商"光大证券"的银行间债券成交额变动
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPBrokerInterBankAmountGrow(20191231,20181231,"申万宏源");
|
||
|
||
//结果:-4085764.8
|
||
```
|
||
|
||
###### Fundtpnoninterbankamountname
|
||
|
||
范例
|
||
|
||
```text
|
||
// "OF006042"在20181231第1名银行间债券成交额券商名称
|
||
|
||
SetSysParam(pn_stock(),"OF006042");
|
||
|
||
return FundTPNoNInterBankAmountName(20181231,1);
|
||
|
||
//结果:申万宏源
|
||
```
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- FundTPGetDateDONField
|
||
- FundTPNoNBKRatioValueONField
|
||
- FundTPSumNValueONField
|
||
- FundTPSumNBKRatioValueONField
|
||
- FundTPNoNValueONField
|
||
- FundTPNValueONField
|
||
|
||
####### FundTPGetDateDONField
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundTPGetDateDONField(20211231,'安信证券',1,'股票成交量');
|
||
|
||
//结果:501748716.57
|
||
```
|
||
|
||
####### FundTPNoNBKRatioValueONField
|
||
|
||
范例
|
||
|
||
```text
|
||
t:=FundsTPQk(array('OF000001'),20221231,'股票成交量');
|
||
|
||
return FundTPNoNBKRatioValueONField(t,1,'股票成交量');
|
||
|
||
//结果:18.07
|
||
```
|
||
|
||
####### FundTPSumNValueONField
|
||
|
||
范例
|
||
|
||
```text
|
||
t:=FundsTPQk(array('OF000001'),20221231,'股票成交量');
|
||
|
||
return FundTPSumNValueONField(t,1,'股票成交量');
|
||
|
||
//结果:1595342584.35
|
||
```
|
||
|
||
####### FundTPSumNBKRatioValueONField
|
||
|
||
范例
|
||
|
||
```text
|
||
t:=FundsTPQk(array('OF000001'),20221231,'股票成交量');
|
||
|
||
return FundTPSumNBKRatioValueONField(t,1,'股票成交量');
|
||
|
||
//结果:18.07
|
||
```
|
||
|
||
####### FundTPNoNValueONField
|
||
|
||
范例
|
||
|
||
```text
|
||
t:=FundsTPQk(array('OF000001'),20221231,'股票成交量');
|
||
|
||
return FundTPNoNValueONField(t,1,'股票成交量');
|
||
|
||
//结果:1595342584.35
|
||
```
|
||
|
||
####### FundTPNValueONField
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundTPNValueONField(array('OF000001'),20221231,1,'股票成交量',1);
|
||
|
||
//结果:18.07
|
||
```
|
||
|
||
##### 中间函数
|
||
|
||
###### 内容
|
||
|
||
- FundExRatioOfLido
|
||
- FundExRatio
|
||
- FundWeeklyYTM
|
||
- GetFundExRatio
|
||
- IntersectionAlphaBetaValue
|
||
- FundExNetAssetWeeklyList
|
||
- FundExRatioOfWind
|
||
|
||
###### FundExRatioOfLido
|
||
|
||
###### FundExRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162714的基金复权比。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundExRatio();
|
||
|
||
//结果:0
|
||
```
|
||
|
||
//问题一上个函数类似
|
||
|
||
###### FundWeeklyYTM
|
||
|
||
算法
|
||
|
||
基金收益率=ln(截止日净值+分红)-ln(截止日前一日净值)范例
|
||
|
||
```text
|
||
//OF162714基金收益率(复权)。
|
||
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return FundWeeklyYTM(Array());
|
||
```
|
||
|
||
结果:
|
||
|
||
###### GetFundExRatio
|
||
|
||
算法
|
||
|
||
根据EndT截止日判断返回指定日的还权比,还权比在t数值表中设置,数组t为二维数组,'除权日'字段要求数据类型是整数类型日期,如20180928;字段'比例'指定还权比。返回截止日小于指定除权日的相应换权比。范例
|
||
|
||
```text
|
||
setsysparam(pn_stock(),"OF162714");
|
||
|
||
Return GetFundExRatio(Array(('除权日':20180928,'比例':0.7)),20180927T);
|
||
|
||
//结果:0.7
|
||
```
|
||
|
||
###### IntersectionAlphaBetaValue
|
||
|
||
算法
|
||
|
||
对序列t1和t2进行一元回归,返回α,β,相关系数,残差范例
|
||
|
||
```text
|
||
//t1和t2序列的相关指标
|
||
|
||
t1 := spec(nday(30,'涨幅',StockZf3()),'SZ000002');
|
||
|
||
t2 := spec(nday(30,'涨幅',StockZf3()),'SH600001');
|
||
|
||
IntersectionAlphaBetaValue(t1,t2,a,b,c,d);
|
||
|
||
return array(a,b,c,c);
|
||
```
|
||
|
||
###### FundExNetAssetWeeklyList
|
||
|
||
范例
|
||
|
||
```text
|
||
SetSysParam(PN_Stock(),'OF000001');
|
||
|
||
return FundExNetAssetWeeklyList();
|
||
```
|
||
|
||
###### FundExRatioOfWind
|
||
|
||
- FundExRatioOfLido
|
||
- FundExRatio
|
||
- FundWeeklyYTM
|
||
- GetFundExRatio
|
||
- IntersectionAlphaBetaValue
|
||
- FundExNetAssetWeeklyList
|
||
- FundExRatioOfWind
|
||
|
||
##### ETF申购赎回-基本信息
|
||
|
||
###### 内容
|
||
|
||
- FundETFInfoLeastUnit
|
||
- FundETFInfoMarginRate
|
||
- FundETFInfoNetVlue
|
||
- FundETFInfoUpperRatio
|
||
- FundETFInfoIsOpenPurcharse
|
||
- FundETFInfoIsOpenMarginPurchase
|
||
- FundETFInfoIsOpenRedem
|
||
- FundETFInfoInvestorSubscribeLimit
|
||
- FundETFInfoLeastUnitCash
|
||
- FundETFInfoSecuritySubscribeLimit
|
||
- FundETFInfoLeastUnitCashDivid
|
||
- FundETFInfoCashForecasted
|
||
- 中间函数
|
||
|
||
###### FundETFInfoLeastUnit
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09最小申购、赎回单位。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoLeastUnit(20230509T);
|
||
|
||
//结果:1
|
||
```
|
||
|
||
###### FundETFInfoMarginRate
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09保证金申购保证金率(%)。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoMarginRate(20230509T);
|
||
```
|
||
|
||
###### FundETFInfoNetVlue
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09最小申购、赎回单位净值。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoNetVlue(20230509T);
|
||
|
||
//结果:100
|
||
```
|
||
|
||
###### FundETFInfoUpperRatio
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09现金替代比例上限(%)。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoUpperRatio(20230509T);
|
||
|
||
//结果:100
|
||
```
|
||
|
||
###### FundETFInfoIsOpenPurcharse
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09是否开放申购。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoIsOpenPurcharse(20230509T);
|
||
|
||
//结果:是
|
||
```
|
||
|
||
###### FundETFInfoIsOpenMarginPurchase
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09是否开放保证金申购。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoIsOpenMarginPurchase(20230509T);
|
||
|
||
//结果:未知
|
||
```
|
||
|
||
###### FundETFInfoIsOpenRedem
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09是否开放赎回。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoIsOpenRedem(20230509T);
|
||
|
||
//结果:是
|
||
```
|
||
|
||
###### FundETFInfoInvestorSubscribeLimit
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09保证金申购单一投资者当日申购总量限制份数。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoInvestorSubscribeLimit(20230509T);
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### FundETFInfoLeastUnitCash
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09最小申购、赎回单位的现金余额。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoLeastUnitCash(20230509T);
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### FundETFInfoSecuritySubscribeLimit
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09保证金申购单个代办证券公司当日申购总量限制。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoSecuritySubscribeLimit(20230509T);
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### FundETFInfoLeastUnitCashDivid
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09最小申购、赎回单位现金红利。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoLeastUnitCashDivid(20230509T);
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### FundETFInfoCashForecasted
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09最小申购、赎回单位的预估现金部分。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoCashForecasted(20230509T);
|
||
|
||
//结果:0
|
||
```
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- FundETFInfoGetDataByEndT
|
||
|
||
####### FundETFInfoGetDataByEndT
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF159001在2023-05-09ETF申购赎回-基本信息。
|
||
|
||
SetSysParam(PN_Stock(),'OF159001');
|
||
|
||
return FundETFInfoGetDataByEndT(20230509T);
|
||
```
|
||
|
||
结果:
|
||
|
||
##### 基本信息
|
||
|
||
###### 内容
|
||
|
||
- FundMasterCode
|
||
- FundName
|
||
- FundNetValueMethod
|
||
- FundOperationFunds
|
||
- FundOperationFundsByTZFG
|
||
- FundPrimaryMarketCode
|
||
- FundSecondaryMarketCode
|
||
- FundStyleName1
|
||
- FundStyleName2
|
||
- 中间函数
|
||
|
||
###### FundMasterCode
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF012414的基金主代码
|
||
|
||
|
||
SetSysParam(pn_stock(),"OF012414");
|
||
|
||
|
||
return FundMasterCode();
|
||
|
||
|
||
//返回:OF161725
|
||
```
|
||
|
||
###### FundName
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF162206在20210302的基金名称
|
||
|
||
|
||
SetSysParam(pn_stock(),"OF162206");
|
||
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
|
||
return FundName();
|
||
|
||
//返回:泰达宏利货币市场基金
|
||
```
|
||
|
||
###### FundNetValueMethod
|
||
|
||
范例
|
||
|
||
```text
|
||
//华夏成长在20210302的基金净值增长率计算方法
|
||
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
|
||
return FundNetValueMethod();
|
||
|
||
//返回:单位净值法
|
||
```
|
||
|
||
###### FundOperationFunds
|
||
|
||
范例
|
||
|
||
```text
|
||
// 20200924日所有运作中的基金列表
|
||
|
||
|
||
return FundOperationFunds(20200924T);
|
||
```
|
||
|
||
###### FundOperationFundsByTZFG
|
||
|
||
范例
|
||
|
||
```text
|
||
// 20200924日“普通股票型”运作中的基金
|
||
|
||
|
||
return FundOperationFundsByTZFG("普通股票型",20200924T,0,2);
|
||
```
|
||
|
||
###### FundPrimaryMarketCode
|
||
|
||
范例
|
||
|
||
```text
|
||
//通过基金交易代码(二级市场)得到该基金的一级市场代码
|
||
|
||
setsysparam(pn_stock(),"SH510050");
|
||
|
||
return FundPrimaryMarketCode();
|
||
|
||
//返回:OF510050
|
||
```
|
||
|
||
###### FundSecondaryMarketCode
|
||
|
||
范例
|
||
|
||
```text
|
||
//OF510050的基金二级市场代码
|
||
|
||
|
||
SetSysParam(pn_stock(),"OF510050");
|
||
|
||
|
||
return FundSecondaryMarketCode();
|
||
|
||
|
||
//返回:SH510050
|
||
```
|
||
|
||
###### FundStyleName1
|
||
|
||
范例
|
||
|
||
```text
|
||
//华夏成长在20210302的基金一级风格名称
|
||
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
|
||
return FundStyleName1();
|
||
|
||
//返回:混合型
|
||
```
|
||
|
||
###### FundStyleName2
|
||
|
||
范例
|
||
|
||
```text
|
||
//华夏成长在20210302的基金二级风格名称
|
||
|
||
|
||
SetSysParam(pn_stock(),"OF000001");
|
||
|
||
|
||
SetSysParam(pn_date(),20210302T);
|
||
|
||
|
||
return FundStyleName2();
|
||
|
||
//返回:偏股混合
|
||
```
|
||
|
||
###### 中间函数
|
||
|
||
####### 内容
|
||
|
||
- FundGetAttributeValues
|
||
- FundOperateFundsbyBkname
|
||
- FundsOperateFunds
|
||
|
||
####### FundGetAttributeValues
|
||
|
||
范例
|
||
|
||
```text
|
||
return FundGetAttributeValues('OF000001',20210302T);
|
||
```
|
||
|
||
结果:
|
||
|
||
####### FundOperateFundsbyBkname
|
||
|
||
范例
|
||
|
||
```text
|
||
// 20200924日指定日指定板块中还在运作的基金列表
|
||
|
||
return FundOperateFundsbyBkname("封闭;退市封闭",20200924T);
|
||
```
|
||
|
||
####### FundsOperateFunds
|
||
|
||
范例
|
||
|
||
```text
|
||
// 20200924日指定日指定板块中还在运作的基金列表
|
||
|
||
return FundsOperateFunds(getbk("封闭;退市封闭"),20200924T);
|
||
```
|