Your code and your screenshot don't match! Your code has the message "Bars received:" but your screenshot has the message "Ticks received:".
now should be ok, i did not change print from the example
Jakub Bednarek #: now should be ok, i did not change print from the example
- How much data is available in MetaTrader for EUR/USD M1 and for what date range?
- You printed the date as a number "1669330500", but what is the date-time representation for it?
Please note that I am not a Python program and I am helping based on knowledge of MQL5.
I really can't tell why, but today I tried to run the code and it returns price bars and OHLCV data like it should. Thanks for trying to help @Fernando Carreiro :)
Jakub Bednarek #: Thanks for trying to help @Fernando Carreiro :)
You are welcome!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello! Recently I stumbled upon MetaTrader5 python package, so I tried to use it to read price data from MT5. I'm using XM MT5 platform as my MT5.
To the point. I run this chunk of code:
And the result of this code is this attached photo.
I will be glad for any help or suggestions. Thanks a lot