![]() If data outside TERMINAL_MAXBARS (maximal number of bars on the chart) is requested, the function will also return -1. If the whole interval of requested data is out of the available data on the server, the function returns -1. Returns the copied data count or -1 in case of an error. Bar time corresponding to the last element to copy. The start time for the first element to copy. The start position for the first element to copy. There are 3 variants of function calls.Ĭall by the first position and the number of required elementsĭatetime start_time, // start date and timeĭatetime stop_time, // stop date and timeĭatetime time_array // target array to copy open times Data will be copied so that the oldest element will be located at the start of the physical memory allocated for the array. No matter what is the property of the target array - as_series=true or as_series=false. If you know the amount of data you need to copy, it should better be done to a statically allocated buffer, in order to prevent the allocation of excessive memory. When copying the yet unknown amount of data, it is recommended to use dynamic array as a target array, because if the requested data count is less (or more) than the length of the target array, function tries to reallocate the memory so that the requested data fit entirely. ![]() It should be noted that elements ordering is from present to past, i.e., starting position of 0 means the current bar. If you need to return value corresponding to the current uncompleted bar, you can use the first form of call specifying start_pos =0 and count =1.The function gets to time_array history data of bar opening time for the specified symbol-period pair in the specified quantity. Thus, if the current day is Saturday, at the attempt to copy data on a week timeframe specifying start_time=Last_Tuesday and stop_time=Last_Friday the function will return 0, because the open time on a week timeframe is always Sunday, but one week bar does not fall into the specified interval. It means, the open time of any bar, for which value is returned (volume, spread, value on the indicator buffer, prices Open, High, Low, Close or open time Time) is always within the requested interval. The interval is set and counted up to seconds. When requesting data in a specified range of dates, only data from this interval will be returned. It means, the open time of any bar, for which value is returned (volume, spread, value on the indicator buffer, prices Open, High, Low, Close or open time Time) is always less or equal to the specified one. When requesting data by the start date and the number of required elements, only data whose date is less than (earlier) or equal to the date specified will be returned. ![]() If requested timeseries are not yet built or they need to be downloaded from the server, the function will immediately return -1. Bar time, corresponding to the last element to copy. Bar time, corresponding to the first element to copy. There are 3 variants of function calls.Ĭall by the first position and the number of required elementsĭatetime start_time, // start date and timeĭatetime stop_time, // stop date and timeĭouble low_array // target array to copy ![]() The function gets into low_array the history data of minimal bar prices for the selected symbol-period pair in the specified quantity.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |