13
13
14
14
15
15
The ** ` mt4pycon ` ** repo is a collection of Python3 code used to interface with MT4 and MT5
16
- terminals via 3rd party API's. As of today there is only one script available, but will
16
+ terminals via 3rd party API's. As of today there is only 2 scripts available, but will
17
17
soon contain several other examples for simple indicators, data scrapers/analyzers to
18
18
AI/ML automated trading bots.
19
19
20
20
21
21
---
22
22
23
- ** ` con2mtapi ` **
23
+ ** ` con2mtapi.py ` **
24
24
25
25
This is a simple * Python3* CLI client that is using the MT4 bridge API
26
26
([ mtapi] ( https://github.com/vdemydiuk/mtapi/ ) ) to connect to a MT4 Terminal which
@@ -30,6 +30,12 @@ for a specified symbol and timeframe. This particular script is using the MQL bu
30
30
` CopyRates ` and ` iBars() ` functions for receiving the candle data.
31
31
32
32
33
+ ** ` liveTicks.py ` **
34
+
35
+ A very rudimentary data feed that is continusly * polling* the MQL ` SymbolInfoTick(sym) `
36
+ funtion, to display * Time, Bid, Ask* and * Spread* (in points), for a given symbol.
37
+ This should probably be rewritten using a threaded listener...
38
+
33
39
Example Output:
34
40
35
41
<sub >Using symbolic TF and normal tabulated output.</sub >
@@ -38,6 +44,9 @@ Example Output:
38
44
<sub >Using numerical TF and CSV output.</sub >
39
45
![ Full] ( ./docs/image2.png )
40
46
47
+ <sub >Live Tick stream with Spread...</sub >
48
+ ![ Full] ( ./docs/image3.png )
49
+
41
50
---
42
51
43
52
** Q:** * What is ** ` mtapi ` ** and what does it do?*
@@ -107,6 +116,7 @@ As always, any small crypto donation is an inspitring incentive to make things h
107
116
Python packages:
108
117
109
118
* [ pythonnet] ( https://github.com/pythonnet/pythonnet ) - ` Python.NET ` for the .NET * Common Language Runtime* (CLR)
119
+ * [ pyreadline] ( https://github.com/pyreadline/pyreadline ) - [ Not Required] * "You don't wanna develop without it!"*
110
120
111
121
and what you already have:
112
122
* [ MT4] ( https://github.com/rosasurfer/mt4-mql ) - Latest (unbranded) MT4 and MetaEditor4 downloads
@@ -239,16 +249,16 @@ If you want to compile your own MtApi libraries, please check the original
239
249
* mtapi* github repo for detailed compilation instructions.
240
250
241
251
In summary, for modifying the EA, you would need to:
242
- (a) Copy the ` MtApi.mq4 ` file into the ` ../MQL4/Experts/ ` folder
243
- (b) copy the following MQL Library files into the ` ../MQL4/Include/ ` folder:
252
+ ** (a)** Copy the ` MtApi.mq4 ` file into the ` ../MQL4/Experts/ ` folder.
253
+ ** (b)** Copy the following MQL Library files into the ` ../MQL4/Include/ ` folder:
244
254
245
255
``` bash
246
256
hash.mqh
247
257
json.mqh
248
258
mql4-auth.mqh
249
259
```
250
260
251
- (c) Recompile ` MtAPi .mq4` in * MetaEditor4* .
261
+ ** (c)** Recompile ` MtApi .mq4` in * MetaEditor4* .
252
262
253
263
254
264
---
@@ -351,15 +361,17 @@ C:\Users\<username>\AppData\Roaming\MetaQuotes\Terminal\<unique-hash>\MQL4\Exper
351
361
352
362
#### Recommeded Similar Tools:
353
363
354
- ` TBA `
364
+ * [ dwx-zeromq-connector] ( https://github.com/darwinex/dwx-zeromq-connector ) (* ZeroMQ-enabled MetaTrader Bridge EA* )
365
+ * [ mql4-lib] ( https://github.com/dingmaotu/mql4-lib ) (* MQL4/5 Foundation Library* )
366
+ * [ mql-zmq] ( https://github.com/dingmaotu/mql-zmq ) (* ZMQ binding for the MQL* )
355
367
356
368
357
369
#### Known Bugs and Warnings
358
370
359
- * When running the script for the * first* time on a certain symbol and timeframe, the
371
+ : negative_squared_cross_mark : When running the script for the * first* time on a certain symbol and timeframe, the
360
372
candle data will not be available in the MT4 terminal buffer, so the script will fail.
361
- Just run it again and MT4 will most likely have already downloaded the new data. I have
362
- not been able to resolve this issue.
373
+ Just run it again and MT4 will most likely have already downloaded the new data. A bug report
374
+ has been filed in this [ issue] ( #4 ) .
363
375
364
376
365
377
#### ToDo / Help Needed
@@ -372,24 +384,14 @@ Feel free to post issues and PR's related to this tool.
372
384
Feel free to fork, break, fix and contribute. Enjoy!
373
385
374
386
375
- #### Donation
387
+ #### Donations
376
388
377
389
Almost everything I do is Free and Open Source Software (FOSS).
378
390
This means that I do not receive any income on any of my projects.
379
391
So if you find any of my projects or code, cool & useful, please
380
392
consider making a small donation to any of my crypto accounts.
381
393
382
- <details ><summary >Adresses</summary >
383
-
384
- | Symbol | Name | Address |
385
- | :--------:| :--------:| :--------|
386
- | BTC | Bitcoin | ` bc1qkcyxnerc2sa8xn8d30wkgfqy64jhcxxzf0xv05 ` |
387
- | ZEC | Zcash | ` t1aDszWfkHcSR5yjYrpjYLxj44Lfw7g9GDn ` |
388
- | XMR | Monero | ` 43ACVrQMQ23bh99S7ohJ4cbDA7mVXwUcYRNjyVkr4t3bgqikfpvQu9i4aBeu7vmzCKJek3pkidEFMYEZ6fJpb6Y6HgPAC5m ` |
389
- | ETH | Ethereum | ` 0x53266f143193e08B91bF943a694f8F9D9435163B ` |
390
- | LTC | Litecoin | ` LW7Eu5omvBPRA1sXrKDtemVBrMYzFdwRAF ` |
391
-
392
- </details >
394
+ See my [ profile] ( https://github.com/eabase ) page for Crypto Adresses.
393
395
394
396
395
397
#### Additional Badges
0 commit comments