Skip to content

lucas-campagna/mt5linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaTrader 5 for Linux

A package that uses Wine, RPyC, and a Python Windows version to run MetaTrader5 on Linux.

For an explanation of who should use mt5linux and why, see Motivation and Use Cases.

Installation

  1. Install Wine.

  2. Install Python for Windows on Linux using Wine.

  3. Install the MetaTrader5 library on your Windows Python:

    pip install MetaTrader5
  4. Install this package on both Windows and Linux Python:

    pip install mt5linux

Docker

Alternatively, you can run this library using Docker, see the docs.

Usage

  1. Open MetaTrader5.

  2. Start the server:

    • Windows (native):

      python -m mt5linux
    • Linux (with Wine):

      wine python -m mt5linux

    The server accepts various options. View them with:

    python -m mt5linux --help
  3. On the Linux side, use the library as usual:

    from mt5linux import MetaTrader5
    
    mt5 = MetaTrader5()
    mt5.initialize()
    mt5.terminal_info()
    mt5.shutdown()

    For full API documentation, see the official MetaTrader5 Python integration.

Thanks

About

MetaTrader5 for linux users

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages