天软金融分析.NET函数大全 > 金融函数 > 金融工程 > 指数研究 > 股票指数

CalculateStockIndex    

简述
股票指数计算
定义
CalculateStockIndex(StockArr:Array;basevalue:Real;BegT:TDateTime;EndT: TDateTime;RateType:Integer;bonusInfection:Boolean;NewStockToIndex:Integer;ReturnMethod:Integer):TableArray
参数
名称类型说明
StockArrArray一维字符串数组,股票列表
BaseValueReal实数,基准值
BegTTDateTime日期型时间,开始日期
EndT TDateTime日期型时间,截止日期
RateTypeInteger用户自定义,组合比例确定方法,含义如下表:
显示名
总股本加权 0
流通股本加权 1
等权重 4
等股数 5
流通市值平方根加权 6
总市值平方根加权 7
bonusInfectionBoolean布尔类型,是否红利影响指数运算
NewStockToIndexInteger整数,新股上市计入指数日
ReturnMethodInteger用户自定义,返回类型,含义如下表:
显示名
测试 0
指数 1
图形 2
返回TableArray股票指数计算
  • 范例

    Return CalculateStockIndex(

    array("SZ000920","SH600718"),

    1000,inttodate(20120618),

    inttodate(20120926),0,false,2,0);

    //结果:
相关