Py into ex5

 

Hello! 

I've just wrote a strategy in a python script. Is it possible to transform it form .py into .ex5 and use it as a EA? 

Thank you!

 
voale:

Hello! 

I've just wrote a strategy in a python script. Is it possible to transform it form .py into .ex5 and use it as a EA? 

Thank you!

https://www.tomshardware.com/how-to/create-python-executable-applications
 

Soewono Effendi #:
https://www.tomshardware.com/how-to/create-python-executable-applications

Thank you! Do you know if mql offers a solution for this?  I have been looking for a solution for two days but I haven't found it anywhere.
 
voale:Hello! I've just wrote a strategy in a python script. Is it possible to transform it form .py into .ex5 and use it as a EA? Thank you!

No, it is totally impossible! An ".ex5" executable is a compiled MQL5 program.

You can't compile a Python script into a MQL5 program.

You will have to write a proper MQL5 program instead of Python.

 
voale:

Hello! 

I've just wrote a strategy in a python script. Is it possible to transform it form .py into .ex5 and use it as a EA? 

Thank you!

What are you trying to achieve ?

You can compile and run your python script directly on MetaEditor/MT5, no need for ex5.

 
Alain Verleyen #:

What are you trying to achieve ?

You can compile and run your python script directly on MetaEditor/MT5, no need for ex5.


Wow .. is it right? Thank you for the information.

I am an MQL4, MQL5 programmer and also make programs using Python and C++, but have never tried using Python to build an EA for trading.


Maybe I should take the time to try it. Interesting :-)

I got a lot of knowledge from the masters here.

Reason: