Open thmmcoelho opened 3 weeks ago
@thmmcoelho: I had the exact same problem. By chance, I saw that the author has implemented a fix for this in the mt5linux -> init.py. Copy the file again into your IDE from the host, and then the retrieval with date_to will work. I added 2 lines, and it worked. Hope this helps
When I try to use the mt5 copy_rates_range function, I get the following error log:
This is my code:
I tried to add mt5.execute('import pytz') and mt5.execute('import datetime'), as mentioned in https://github.com/lucas-campagna/mt5linux/issues/3, but this does not work.