♻️ refactor(tsl): rebuild codegen taxonomy
Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
This commit is contained in:
@@ -0,0 +1,565 @@
|
||||
# 板块 / 主要利润指标
|
||||
|
||||
### `stocksAccountsReceivable(stock_arr, report_date, stype, sample_select, eps_criterion)`
|
||||
|
||||
计算板块平均应收账款
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksAccountsReceivable(Stks,20170930,0,1,0);
|
||||
```
|
||||
|
||||
### `stocksAdministrativeExpenses(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块的板块平均管理费用
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择: |
|
||||
| `eps_criterion` | int | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksAdministrativeExpenses(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksCashEquivalentIncrease(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均现金及现金等价物净增加额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | -------- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | datetime | 报告期 |
|
||||
| `stype` | any | 用户自定义,股票类型 |
|
||||
| `sample_select` | any | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | any | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `stocksCostsofMainOperation(stock_arr, report_date, stype, sample_select, eps_criterion)`
|
||||
|
||||
计算板块平均主营业务成本
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksCostsofMainOperation(Stks,20170930,0,1,0);
|
||||
```
|
||||
|
||||
### `stocksCurrentAssetSum(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均流动资产
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksCurrentAssetSum(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksCurrentDebtSum(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均流动负债
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksCurrentDebtSum(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksIncomeTax(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均所得税
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksIncomeTax(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksInvestIncome(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均投资收益
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksInvestIncome(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksMainIncome(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均主营业务收入
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksMainIncome(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksMainProfit(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均主营利润
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksMainProfit(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksMinorityInterests(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均少数股东损益
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksMinorityInterests(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksNetNonoperate(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均营业外收支净额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksNetNonoperate(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksNetProfit(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均净利润
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksNetProfit(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksNetProfitCut(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均扣除非经常性损益的净利润
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksNetProfitCut(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksNonOperatingExpense(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均营业外支出
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksNonOperatingExpense(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksNonOperatingIncome(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均营业外收入
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksNonOperatingIncome(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksOperateActivityCash(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均经营活动产生的现金流量净额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户数据,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksOperateActivityCash(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksOperateProfit(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均营业利润
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksOperateProfit(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksOperatingExpenses(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均营业费用
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksOperatingExpenses(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksProfitBeforeTax(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均利润总额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户自定义,股票列表 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数,返回类型。 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksProfitBeforeTax(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksSubsidyIncome(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均补贴收入
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 用户数据,股票类型 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksSubsidyIncome(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksTaxandExpenses(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均主营业务税金及附加
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksTaxandExpenses(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksTotalEquity(stock_arr, report_date, stype, sample_select, eps_criterion, return_type)`
|
||||
|
||||
计算板块平均总资产
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
| `return_type` | int | 整数 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksTotalEquity(Stks,20170930,0,1,0,0);
|
||||
```
|
||||
|
||||
### `stocksTotalFixedAssets(stock_arr, report_date, stype, sample_select, eps_criterion)`
|
||||
|
||||
计算板块平均固定资产合计
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------------------- |
|
||||
| `stock_arr` | array | 一维字符串数组,股票列表 |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `stype` | int | 整数 |
|
||||
| `sample_select` | int | 用户自定义,样本股选择 |
|
||||
| `eps_criterion` | float | 实数,绩差股标准。每股收益(摊薄)< EPSCriterion即表示绩差股 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
EndT := inttodate(20170903);
|
||||
setsysparam(pn_date(),EndT);
|
||||
Stks := getbkbydate('SH000300',EndT);
|
||||
return StocksTotalFixedAssets(Stks,20170930,0,1,0);
|
||||
```
|
||||
Reference in New Issue
Block a user