KLineMerge
简述
板块指数与大盘指数迭加
KLineMerge(BKName:String,BkValue:TableArray,IndexName:String,Begt:TDateTime,Endt:TdateTime,ShowType:Integer):TableArray
BkName:字符串,板块名称
BkValue:数据表,计算出来的板块指数,必须含有’time’,’close’字段
IndexName:字符串,指数代码
Begt:日期型时间,开始日期
Endt:日期型时间,截止日期
ShowType:用户自定义,返回类型,0表示图形,1表示数据
返回:板块指数与大盘指数迭加
范例:
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);
//结果: