Limitation of historical data fetched using Python

 
Hello everyone,

I hope this message finds you well.
I am currently using the "MetaTrader5" Python library to obtain historical price data in a 1-minute timeframe. However, I'm facing an issue where I can only access data from the past three months. When I use the "copy_rates_range" function and specify date ranges in either monthly or weekly periods, I receive no data prior to March 24, 2025. (This message was written on July 4, 2025.)
I attempted to modify the "Max bars in chart" parameter in my MetaTrader terminal to an unlimited setting; however, the issue persists.

I would greatly appreciate any assistance you can provide. Thank you!
 
aria355as:

To rule out a lack of historical data, go to View > Symbols (or Crtl+U) > [your symbol] > Bars, and try downloading it manually.

That will show you exactly how far back your broker offers data. If nothing appears before March, then that’s the limit of what they provide.

 

I would like to express my gratitude for your efforts in resolving my issue


The process of finding a solution required considerable time on my part; however, subsequent to its resolution, I noted that it is documented. I realized that the problem was relatively straightforward, and I did not expect the solution to be so uncomplicated.
The issue pertained to the "Max bars in chart" setting within the MetaTrader terminal, where changes do not take effect immediately. It is necessary to close and then reopen the MetaTrader terminal application in order to apply the new settings effectively.


https://www.metatrader5.com/en/terminal/help/startworking/settings#max_bars


Platform Settings - Getting Started - MetaTrader 5 Help
Platform Settings - Getting Started - MetaTrader 5 Help
  • www.metatrader5.com
The trading platform provides multiple settings to help you conveniently customize it. Click " Options" in the Tools menu or press...