Skip to content

Commit 86b5aaa

Browse files
author
Lucas Prett Campagna
committed
fix: REAMED.md improved
1 parent 4645ae6 commit 86b5aaa

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

README.md

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,45 @@
11
# MetaTrader 5 for linux system
22

3-
A simple package that use [wine](https://www.winehq.org), [rpyc](https://github.com/tomerfiliba-org/rpyc) and a Python Windows version to allow the use of [MetaTrader5](https://pypi.org/project/MetaTrader5) on linux.
3+
A simple package that use [wine](https://www.winehq.org), [rpyc](https://github.com/tomerfiliba-org/rpyc) and a Python Windows version to allow using [MetaTrader5](https://pypi.org/project/MetaTrader5) on Linux.
44

55
## Install
66

7-
As usual:
7+
8+
1. Install [Wine](https://wiki.winehq.org/Download).
9+
10+
2. Install [Python for Windows](https://www.python.org/downloads/windows/) on Linux with the help of Wine.
11+
12+
3. Find the path to `python.exe`.
13+
14+
- I installed on `/home/user/.wine/drive_c/users/user/Local Settings/Application Data/Programs/Python/Python39`.
15+
16+
4. Install [mt5](https://www.mql5.com/en/docs/integration/python_metatrader5) library on your **Windows** Python version.
17+
18+
```bash
19+
pip install MetaTrader5
20+
pip install --upgrade MetaTrader5
21+
```
22+
23+
5. Install this package on your **Linux** Python version:
824

925
```
1026
pip install mt5linux
1127
```
1228

13-
## How to use
29+
## How To Use
1430

1531
Follow the steps:
1632

17-
1. open [MetaTrader5](https://www.metatrader5.com)
18-
2. open the server: `python -m mt5linux <path/to/python.exe>`
19-
3. on your script/notebook:
33+
1. Open MetaTrader5.
34+
35+
2. On a terminal start the server:
36+
37+
```
38+
python -m mt5linux <path/to/python.exe>
39+
```
40+
41+
3. On your script/notebook:
42+
2043
```python
2144
# import the package
2245
from mt5linux import MetaTrader5
@@ -34,4 +57,7 @@ mt5.copy_rates_from_pos('VALE3',mt5.TIMEFRAME_M1,0,1000)
3457
mt5.shutdown()
3558
```
3659

60+
4. Be happy!
61+
62+
3763
On step 2 you can provide the port, host, executable, etc... just type `python -m mt5linux --help`.

0 commit comments

Comments
 (0)