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

IndexLineMerge    

简述
两个指数迭加
定义
IndexLineMerge(BKName:String;BkValue:TableArray;IndexName:String;IndexValue:TableArray;ShowType:Integer):TableArray
参数
名称类型说明
BkNameString字符串,板块名称
BkValueTableArray数据表,计算出来的板块指数,必须含有’time’,’close’字段
IndexNameString字符串,指数代码
IndexValueTableArray数据表,指数数值,必须含有’time’,’close’字段
ShowTypeInteger用户自定义,返回类型,含义如下表:
显示名
图形 0
数据 1
返回TableArray两个指数迭加
  • 范例

    SetSysParam(PN_Stock(),'SZ000002');
      SetSysParam(PN_DATE(),IntToDate(20121026));
      BkValue:=nday(20,'time',sp_time(),'close',close());
      SetSysParam(pn_stock(),'SH000001');
      IndexValue:=nday(20,'time',sp_time(),'close',close());
      RETURN IndexLineMerge('SZ000002',BkValue,'SH000001',IndexValue,1);

    //结果:
相关