Checking Bar Counts and CopyRates Availability Across Timeframes
Summary
This document describes a chart utility for inspecting how many bars the Bars function reports for a selected symbol across timeframes, and whether CopyRates can retrieve data for a chosen bar number. It defaults to checking the oldest bar and lets the user change the symbol and bar number. An optional logging control records errors from both functions.
The author reports that Bars may return counts above 100,000 while CopyRates did not appear to retrieve bars beyond 99,999 in their tests. They also note that both Bars and SeriesInfoInteger can indicate bars that CopyRates cannot access, and that terminal initialization can temporarily produce data-unavailable errors. These are observations from a particular terminal version and testing setup, not guarantees about current behavior. The utility is intended for investigating platform data access rather than providing trading signals or market analysis.
Key ideas
- The utility compares reported bar counts with CopyRates retrieval for a selected symbol and timeframe.
- Users can test a specific bar index or inspect the oldest bar by default.
- The author observed a discrepancy between Bars counts and CopyRates access near the 100,000-bar range.
- Data-unavailable errors may decline as the terminal initializes historical data.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.