Library that uses the "MetaTrader module for integration with Python."

 
Hi every one, 

I have developed a library that uses the "MetaTrader module for integration with Python."

I did it in an attempt to make life simple when developing an expert advisor with python.

I recently have added a connection to the MQL5 indicator to Python.

If you have interested, you can find the library here:


https://github.com/Joaopeuko/Mql5-Python-Integration


 

Hi joao

Thanks to build this library, i am searching to find how to use python in mql5, and really how its be possible to improve efficiency by using python libraries in mql5.

I ll follow your library and try to learn more .

If you share items about communication between python libraries and mql, it will be help full for who like me.

Thanks

 

Same here.

I'm still looking for the true interest of using python+mt, for real perspectives, for things we weren't able to do before its integration and without and also how to use it in a practical and lightweight manner.

And I can't found ... the occasion for me to notice that MQL is really powerful, and it's likely I won't make no use of python in mt at all ... 

 

Thanks for sharing, I'll check it out right away #joaopeuko

 
Hi everyone.

Since last year I am improving the library the most I can.

I have improved the indicator connector to 38 indicators, and today I am deploying a simple version of the Fimathe strategy. It can be used as a base for a creation of a more complex strategy.


You can found the library here, and the fimathe strategy here.


There is a lot to improve and, I have many ideas to add to this library.

I hope to have more to share very soon.


Thank you.

 

Hi everyone.


Now there is support to book:

from include.trade import Trade
from include.book import Book

trade = Trade('Example',  # Expert name
              0.1,  # Expert Version
              'EURUSD',  # symbol
              567,  # Magic number
              0.01,  # lot, it is a floating point.
              25,  # stop loss
              300,  # emergency stop loss
              25,  # take profit
              300,  # emergency take profit
              '00:10',  # It is allowed to trade after that hour. Do not use zeros, like: 09
              '23:50',  # It is not allowed to trade after that hour but let open all the position already opened.
              '23:50',  # It closes all the position opened. Do not use zeros, like: 09
              0.0,  # average fee
              )

book = Book(trade.symbol)

while True:

    print(book.get())

    if trade.days_end():
        trade.close_position('End of the trading day reached.')
        book.release()
        break

print('Finishing the program.')
print('Program finished.')
Reason: