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

KLineMerge    

简述
板块指数与大盘指数迭加
定义
KLineMerge(BKName:String;BkValue:TableArray;IndexName:String;Begt:TDateTime;Endt:TdateTime;ShowType:Integer):TableArray
参数
名称类型说明
BkNameString字符串,板块名称
BkValueTableArray数据表,计算出来的板块指数,必须含有’time’,’close’字段
IndexNameString字符串,指数代码
BegtTDateTime日期型时间,开始日期
EndtTdateTime日期型时间,截止日期
ShowTypeInteger用户自定义,返回类型,0表示图形,1表示数据
返回TableArray板块指数与大盘指数迭加
  • 范例

    SetSysParam(PN_Stock(),'SH000001');
      SetSysParam(PN_DATE(),IntToDate(20121026));
      BkValue:=nday(20,'time',sp_time(),'close',close());
      return KLineMerge("SH000001",BkValue,"SH600718",inttodate(20120618),
    inttodate(20121026),1);

    //结果:
相关