Why did you post in the MetaTrader 4 section? The Python API is only available on MetaTrader 5.
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
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
I'm trying to run this code I got from the documentation page:
Everything run correctly but If I print the length of euraud_ticks, I got:
And mt5.last_error() returns (-4, 'Terminal: Not found')
And if I try printing mt5.version() after the error, It runs correctly.