AioTrade Investigation (Section C: Basic Data Type in AioTrade)
guibin.beijing@gmail.com
AioTrade source code:
https://github.com/dcaoyuan/aiotrade
1. TVal
org.aiotrade.lib.math.timeseries.TVal represents a cross section view at some specific time.
Please keep this idea in mind, it is the basic concept in this AioTrade system. Each TVal has three common attributes:
data, uniSymbol and sec. For example, the org.aiotrade.lib.securities.model.
LightTicker is a kind of TVal. At the specific time(LightTicker.time),
LighterTicker has the 8 data for one uniSymbol, they are prevClose, lastPrice, dayOpen, dayHigh, dayLow, dayVolume, dayAmount, dayChange.
In AioTrade, the org.aiotrade.lib.securities.model.
MoneyFlow, org.aiotrade.lib.securities.model.
Quote are all TVal. And
Ticker is subclass of LightTicker, also a TVal. org.aiotrade.lib.securities.
TickerSnapshot is subclass of Ticker, of course a TVal.
At the specific time,
MoneyFlow has 24 data, they are totalVolumeIn, totalAmountIn, totalVolumeOut, totalAmountOut, totalVolumeEven, totalAmountEven, superVolumeIn, superAmountIn, superVolumeOut, superAmountOut, superVolumeEven, superAmountEven, largeVolumeIn, largeAmountIn, largeVolumeOut, largeAmountOut, largeVolumeEven, largeAmountEven, smallVolumeIn, smallAmountIn, smallVolumeOut, smallAmountOut, smallVolumeEven, smallAmountEven;
Quote has 7 data, they are open, high, low, close, volume, amount and vwap.
2. TSer
org.aiotrade.lib.math.timeseries.TSer represents Time Series, namely a series of Time related values.
Please keep this idea in mind, it is another basic concept in this AioTrade system. Actually, org.aiotrade.lib.securities.
QuoteSer and org.aiotrade.lib.securities.
MoneyFlowSer are all TSer. These Tser are all consisted of three common attributes:
freq, vars and timestamps. Because we use TSer as a basic data structure to describe a series of time related values, such as a K line(candle sticks), the K line must have a frequence: minutely, hourly, daily, monthly, yearly and so on. With a specific frequence, the TSer must have some values base on the frequence, and must have a time axis to let all the values align.
The chart above describes the relationship between TSer and the TVar, TimeStamp.
All the values(namely TVar) in one TSer share a common TimeStamp. TSer defines the method timestamps to get the TimeStamp. In AioTrade system, the member TimeStamp is actually defined in DefaultTSer.
org.aiotrade.lib.securities.
QuoteSer and org.aiotrade.lib.securities.
MoneyFlowSer are two kinds of actual TSer.
QuoteSer has 9 TVars, they are open, high, low, close, volume, amount, close_adj, close_ori, isClosed. isClose means: if it is minutely QuoteSer and currently it is 9:31:01, the isClose(9:31:00) keeps false until 9:31:59. When it is 9:32:00, the isClose(9:31:00) become true.
That means the TVar(9:31:00) has been close, it moves to the next minute.
MoneyFlowSer has 32 TVars, they are totalVolume, totalAmount, totalVolumeIn, totalAmountIn, totalVolumeOut, totalAmountOut, totalVolumeEven, totalAmountEven, superVolume, superAmount, superVolumeIn, superAmountIn, superVolumeOut, superAmountOut, superVolumeEven, superAmountEven, largeVolume, largeAmount, largeVolumeIn, largeAmountIn, largeVolumeOut, largeAmountOut, largeVolumeEven, largeAmountEven, smallVolume, smallAmount, smallVolumeIn, smallAmountIn, smallVolumeOut, smallAmountOut, smallVolumeEven, smallAmountEven
3. TVar
org.aiotrade.lib.math.timeseries.
TVar represents the horizontal view of TSer.
A TSer consists of several TVars. Each TVar is a series, and each TVar has a timestamps. Each TVar gets it's own timestamp via the method "
def timestamps: TStamps", but in TSer, these TVars share a common timestamp in order to save memory space. TSer use the method "
def attach(timestamps: TStamps)" which is implemented in org.aiotrade.lib.math.timeseries.
DefaultTSer to share the timestamp. For instance, in AioTrade system, Indicator invokes
attach(baseSer.timestamps) to share the timestamp with baseSer, Function also invokes
attach(baseSer.timestamps) to share the timestamp with baseSer.
Basicly, the share timestamp logic can be found in the
def timestamps = DefaultTSer.this.timestamps of DefaultTSer.AbstractInnerTVar.
- 大小: 41.5 KB
分享到:
相关推荐
《电泳沉积法制备SnO2:Ti复合纳米线阵列及其气敏性质研究》 本文由李建军、朱金波等学者共同发表,详细探讨了利用电泳沉积法制备SnO2:Ti复合纳米线阵列的过程及其在气体传感方面的优异性能。该研究首次报道了这种...
Conscious Compilation: Offering a collection of best-selling titles in Adobe PDF format covering key topics like Cisco Engineering, Microsoft Windows System Administration, Cybercrime Investigation, ...
Descriptive: studies involving the collection of data in order to test hypotheses or to answer questions concerning the current status of the subjects of the study. Exploratory: studies conducted ...
《Vision:A Computational Investigation into the Human Representation and Processing of Visual Information》,计算机视觉奠基之作
《TEMS Investigation 7.1中文说明书》是一个关键的资源,它详细介绍了Telecommunications Engineer's Mobile System (TEMS) Investigation工具的7.1版本。TEMS Investigation是移动网络测试和分析的重要工具,广泛...
在本文档TEMS Investigation 14.2 Release Note中,我们主要关注TEMS Investigation 14.2版本的新功能和特性,同时也会详细介绍一些具体的操作步骤和应用场景。 首先,TEMS Investigation 14.2版本新增了对Sharp ...
《TEMS Investigation 16 使用说明》文档详细介绍了如何安装和使用华为的TEMS Investigation 16软件,这是一款用于移动通信网络测试和分析的专业工具。文档特别强调了相较于旧版本15.3,16版修复了一系列重要的问题...
硼氧复合体在p型补偿直拉硅中引起的光致衰退效应研究,是目前太阳能电池领域中关于硅材料性质研究的重要课题。光致衰退效应(Light-induced degradation, LID)是指在光照条件下,少数载流子寿命显著下降的现象,这...
"Opti-scan Investigation 7.4.3.0" 是一款由欧佩泰斯(可能是指一家专注于光学扫描或检测技术的公司)开发的专业软件工具。这款软件主要用于光学扫描和调查,它提供了高级的图像处理和分析功能,旨在帮助用户在多个...
Investigation of Layered Bismuthates: (Ba, K)3Bi2O7 and (Ba, K)2BiO4 Schichtförmige Manganate Poster Investigation of Layered Bismuthates: (Ba,K)3Bi2O7 and (Ba,K)2BiO4 N. R. Khasanovaa, M. L. ...
He is a regular writer for developer journals such as Inside Visual Basic, ASPToday, and Hardcore Visual Studio .NET, and he’s the author of several books about programming with .NET, including User ...
《藏经阁-NLP Structured Data Investigation on Non-Text.pdf》这份资料主要探讨了自然语言处理(NLP)在非文本结构化数据调查中的应用,由阿里云参与,并由Casey Stella进行了阐述。资料中提到的数据科学领域的...
在给定的文件信息中,我们可以提取出以下与“非对称孤岛工作面覆岩运动特征的微震监测研究”相关的知识点: 1. 微震监测技术:微震监测技术是一种用于监测地下矿山在开采过程中由于岩体内部应力重新分布导致的破裂...
This textbook teaches advanced undergraduate and first-year graduate students in Engineering and Applied Sciences to gather and analyze empirical observations (data) in order to aid in making design ...
**TEMS Investigation测试软件说明书** **1. 前言** 在我们的项目部门新引入了TEMS Investigation测试软件,为了确保团队能够有效地使用这一高级工具,本说明书将详细介绍软件的安装、配置和基本操作。TEMS ...
当在高温下进行编程时,Vth分布的高尾部分在不同温度下的偏移量比低尾部分更大(例如,在85°C和-25°C之间)。相反,如果在低温下编程,则Vth分布的低尾部分在跨温读取时显示出更大的偏移。此外,单元的温度系数...
### Data Set Information: > The two datasets are related to red and white variants of the Portuguese "Vinho Verde" wine. For more details, consult: [Web Link] or the reference [Cortez et al., 2009]....
An investigation of the Iowa tests of basic skills for sex bias: A developmental look AN INVESTIGATION OF THE IOWA TESTS OF BASIC SKILLS FOR SEX BIAS: A DEVELOPMENTAL LOOK BARBARA S . PLAKE ...