QueryWithPeriod
简述
取证券一段时间的时间序列数据(行情、净值等)
QueryWithPeriod(MarketList; StockIDList:string; Condition:bool; FieldName1:string; Expression1: Expression; FieldName2:string; Expression2: Expression;FieldNameN:string; ExpressionN: Expression):Real
名称 | 类型 | 说明 |
---|
MarketList | string | 字符串,板块名称列表; |
StockIDList | string | 字符串,股票代码列表 |
Condition | bool | 布尔型,选股条件; |
FieldName1 | string | 字符串,字段名称1; |
Expression1 | Expression | 函数,函数表达式1; |
FieldName2 | string | 字符串,字段名称2; |
Expression2 | Expression | 函数,函数表达式2;
… |
FieldNameN | string | 字符串,字段名称N; |
ExpressionN | Expression | 函数,函数表达式N。 |
返回 | Real | 实数,数值。 |
//返回一组股票一段时间的行情数据
oV:=BackUpSystemParameters2();
setsysparam(pn_begt(),inttodate(20120801));
setsysparam(pn_endt(),inttodate(20121001));
setsysparam("TimeIndex",1);
return
QueryWithPeriod("","SZ000002;SZ000001;SH600000;SH600004",@True,"","收盘价",@close(),
"成交量",@vol(),
"成交金额",@amount());
