主要内容

timeseries

六个财务信息盘中蜱虫数据

语法

D = timeseries (c、s、t)
D = timeseries (c s {startdate可以,enddate})
D = timeseries (c、s、t, 5)

描述

D = timeseries (c、s、t)的原始标记数据六个财务信息连接对象c,安全年代,日期t。每一个交易,最好的,和询问tick返回给定的日期或日期范围。

D = timeseries (c s {startdate可以,enddate})返回安全性的原始标记数据年代的日期范围startdate可以enddate

D = timeseries (c、s、t, 5)返回安全性的刻度数据年代,表示日期t每隔5分钟,进行场地训练f。请求的日内tick数据每5分钟返回一次,列表示:

  • 第一个

  • 去年

  • 体积加权平均

  • 移动平均线

例子

检索六个财务信息过去2日的盘中点差数据:

d = timeseries(c,{'1758999,149,134'},…{(现在)15年,楼(现在)})

显示返回数据:

I: [1x1 struct] TSL: [1x1 struct] TS: [1x1 struct] P: [1x1 struct]

的组长包含仪器id,d.TS包含日期和时间数据,以及一般都包含价格数据。

显示滴答时间:

d.t.s t(1:10) ans = '013500' '013505' '013510' '013520' '013530' '013540' '013550' '013600' '013610' '013620'

显示字段id:

d.P.k (1:10) ans =“3、4”的3 2 3 3”的3、4的3 2 3 3的“3、4”的3 2 3 3的3、4的

将这些id转换为字段名(中期,报价,),tkidtofield:

d.P.k = tkidtofield (c d.P.k '历史')

加载文件@tlkrs / tkfields.mat获取字段名和相应id的列表。

显示对应的tick值:

d.P.v (1:10) ans =“45.325”“45.32”“45.33”“45.325”“45.32”“45.33”“45.325”“45.32”“45.33”“45.325”

另请参阅

||

介绍了R2011b