IndexLineMerge
简述
两个指数迭加
IndexLineMerge(BKName:String;BkValue:TableArray;IndexName:String;IndexValue:TableArray;ShowType:Integer):TableArray
名称 | 类型 | 说明 |
---|
BkName | String | 字符串,板块名称 |
BkValue | TableArray | 数据表,计算出来的板块指数,必须含有’time’,’close’字段 |
IndexName | String | 字符串,指数代码 |
IndexValue | TableArray | 数据表,指数数值,必须含有’time’,’close’字段 |
ShowType | Integer | 用户自定义,返回类型,含义如下表:
|
返回 | 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);
//结果:
