ManyBksKLine
简述
计算BKNames中各个板块(即股票组合)的复合指数,其中这里不调整样本
ManyBksKLine(BKNames:String;IndexName:String;FirstValue:Intger;BegT:TDateTime;EndT:TDateTime;RateType:Integer;bonusInfection:Boolean;NewStockToIndex:Intger;ShowCycleName:String;ShowType:Integer):TableArray
名称 | 类型 | 说明 |
---|
BKNames | String | 字符串,板块名称,以分号分割 |
IndexName | String | 字符串,指数代码 |
FirstValue | Intger | 用户自定义,开始日指数取值,含义如下表:
显示名 |
值 |
指数首日收盘 |
-1 |
取1000点 |
1000 |
|
BegT | TDateTime | 日期型时间,开始时间 |
EndT | TDateTime | 日期型时间,截止时间 |
RateType | Integer | 用户自定义,计算方法,含义如下表:
显示名 |
值 |
总市值加权 |
0 |
流通市值权 |
1 |
总股本加权 |
2 |
流通股本加权 |
3 |
等权重 |
4 |
等股数 |
5 |
流通市值平方根加权 |
6 |
总市值平方根加权 |
7 |
|
bonusInfection | Boolean | 布尔类型,是否考虑分红 |
NewStockToIndex | Intger | 整数,新股计入指数日 |
ShowCycleName | String | 字符串,显示周期 |
ShowType | Integer | 用户自定义,返回类型,含义如下表:
|
返回 | TableArray | 返回BKNames中各个板块的复合指数 |
return ManyBksKLine("上证A股;沪深300",
"SH000001",
-1,
inttodate(20120818),
inttodate(20120926),
0,true,2,cy_Day(),1);
//结果:
