pythonapialgorithmic-tradingforexmetatrader5

Forex send orders using Python without Metatrader5


Need solutions to Forex order_send in Python. using Metatrader5 its so easy:

import MetaTrader5 as mt5

            request = {
                "action": mt5.TRADE_ACTION_DEAL,
                "symbol": symbol,
                "volume": lot,
                "type": trade_type,
                "price": price,
                "tp": tp,
                "sl": sl,
            }

            result = mt5.order_send(request)

But for some reason I only have one Linux server now. My attempts to install MetaTrader 5 were completely unsuccessful (even after trying the Windows emulator).

enter image description here

Is there a way to Send my forex orders without using Metatrader5?

Thank you all


Solution

  • Metatrader5 Python package is only for Windows and cannot be installed on Linux. See https://www.mql5.com/en/forum/354796

    So the only way to run MT on Linux is a Windows emulator. I run MT4 and MT5 in Ubuntu and macOS using Wine.

    Probably the good way is to ask about your problems with installing MT5 using Wine at https://superuser.com/.

    Installing Python under Windows emulator is a separate problem.