Technically, that is not an EA. An EA (Expert Advisor) can only be written in MQL4/5. A Python script runs externally to MetaTrader, even if it is using the MT5 API.
What is your query? You have not explained your issue. Please explain in detail.

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
Can i have help with the code