SeriesIntegerInfo and exchange rate bar information utility, showing how many bars there are for any user-selected symbol in all timeframes and showing "replication rate" information availability for any bar - Met


This utility is not a transaction information utility. It is only valuable to those who obtain information about the number of existing bars. terminal data. This utility uses the following function series integer information and replication rate to obtain and display information terminal about bar information availability.
This utility allows the user to use the current chart symbol (default) or enter any symbol in their market watch and create a column containing three items of information returned by the SeriesIntegerInfo function for each time frame of the symbol.
The utility also creates a second column that displays the CopyRates information for any valid bar in each time range (valid bars are based on the information returned from SeriesIntegerInfo). By default, the utility displays CopyRates information for the oldest of each bar. time range (as shown in SERIES_BARS_COUNT), but the user can enter any valid number of bars they want.
This is a dual indicator https://www.mql5.com/en/code/26316 , get information about valid bars using the "Bars" function. The SeriesInfoInteger function appears to be getting column information, but both report columns are available and CopyRates cannot get their information, at least from the current version of Terminal.
While the terminal initializes data for a few seconds, the indicator display will stabilize, forming a typical graph like the one below, with multiple 4401 "Terminal Data Not Available" errors as shown below. Scroll down to see a description of the numbering control function:

1) "Rates and Columns" - Select and drag to move the display to a different location on the chart.
2) This is the Bar Number input box. Enter a column number to see if replication rate information is available for that column.
3) "Symbol" - Click to switch the measure number to the "oldest" default, or the last entered measure number.
4) This is the symbol input box. Enter any symbol into the market quote to display that symbol.
5) Click the MN1 CopyRates message to turn writing logs on and off. When enabled, errors returned from Bars and CopyRates will be written to the log.
During my testing, SeriesIntegerInfo will report bar values greater than 100,000, but CopyRates never seems to get data for bar numbers greater than 99,999. The image below shows the CopyRates 4401 error at bar 100,0000, and the success at bar 99,9999:

Version: M1 to MN1 row identifiers were retained in V1.00 and fixed in V1.02.
Attachment download
📎 seriesintegerinfo_and_mqlrates_tf_status.mq5 (58.03 KB)
Source: MQL5 #26330
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •