时间序列
datetime Time[]
Series array that contains open time of each bar of the current chart. Data like datetime represent time, in seconds, that has passed since 00:00 a.m. of 1 January, 1970.
Series array elements are indexed in the reverse order, i.e., from the last one to the first one. The current bar which is the last in the array is indexed as 0. the oldest bar, the first in the chart, is indexed as Bars-1.
Access to Timeseries and Indicator Data
dynamic arrays
An indicator buffer is a dynamic array of type double, whose size is managed by the client terminals
statically distributed arrays
operations of memory allocations
indexing direction in Arrays, Buffers and Timeseries
The default indexing of all arrays and indicator buffers is left to right. The index of the first element is always equal to zero.
changing the indexing direction: ArraySetAsSeries()
Receiving Price Data in indicators
asynchronous access
Organizing Data Access
Receiving data from a trade server
packed blocks of minute bars
Storing intermediate data
unpack
Synchronization of the terminal data and server data
Obtaining data on a necessary timeframe out of intermediate data
Symbol Properties
MarketInfo(_Symbol, MODE_DIGITS);
SymbolInfoInteger(_Symbol, );
SymbolInfoDouble();
SymbolInfoString();
这篇博客探讨了MT4平台中时间序列的概念,详细介绍了Time[]系列数组的使用,包括其元素如何以反向索引存储,从当前条目(索引0)到最旧条目(索引 Bars-1)。内容还涵盖了动态数组、静态分布数组、内存分配操作,以及如何通过ArraySetAsSeries()改变数组索引方向。同时,讨论了在指标中接收价格数据、异步访问、数据存储以及确保终端和服务器数据同步的方法。
3209

被折叠的 条评论
为什么被折叠?



