BkAndIndexKLine
简述
板块K线和指数K线迭加,板块指数与大盘指数迭加
BkAndIndexKLine(StockArr:Array;BkName:String;IndexName:String;BaseValue:Real;BegT:TDateTime;EndT:TDateTime;RateType:Integer;bonusInfection:Boolean;NewStockToIndex:Integer;ShowCyleName:String;ShowType:Integer):TableArray
| 名称 | 类型 | 说明 |
|---|
| StockArr | Array | 一维字符串数组,股票列表 |
| BkName | String | 字符串,板块名称 |
| IndexName | String | 字符串,指数代码 |
| BaseValue | Real | 实数,基准值 |
| BegT | TDateTime | 日期型时间,开始日期 |
| EndT | TDateTime | 日期型时间,截止日期 |
| RateType | Integer | 用户自定义,组合比例确定方法,含义如下表:
|
显示名 |
值 | |
总股本加权 |
0 | |
流通股本加权 |
1 | |
等权重 |
4 | |
等股数 |
5 | |
流通市值平方根加权 |
6 | |
总市值平方根加权 |
7 |
|
| bonusInfection | Boolean | 布尔类型,是否红利影响指数运算 |
| NewStockToIndex | Integer | 整数,新股上市计入指数日 |
| ShowCyleName | String | 字符串,周期 |
| ShowType | Integer | 用户自定义,返回类型,含义如下表:
|
| 返回 | TableArray | 板块指数与大盘指数迭加 |
Return BkAndIndexKLine(
array("SH600718","SZ000002"),
"上证A股",
"SH600718",
1000,
inttodate(20020618),
inttodate(20020926),
0,true,2,CY_day(),1);
//结果:
