Click To See
302 |
303 | ```bash
304 | # python.exe .\con2mtapi.py -h
305 | ```
306 |
307 |
308 | ```bash
309 |
310 | Usage: ./con2mtapi.py
311 |
312 | This connects to an MT4 EA via a TCP port (or pipe) to receive OHLCV data.
313 |
314 | --------------------------------------------------------------------------------
315 | Command Line Options:
316 | -d : Enable extra debug info
317 | -n : Show number of candles back
318 | -p : Use a "Named Pipe" connection (instead of a TCP IP host:port)
319 | -l : Show candle data as a list (one line per OHLC item)
320 | -s : Set symbol name to ["EURUSD"]
321 | -t : Set timeframe to [M1,M5,M15*,M30,H1,H4,D1,W1,MN1]**
322 | -h, --help : Show THIS help list
323 | -v, --version : Show THIS program version
324 | --------------------------------------------------------------------------------
325 | * = a default setting
326 | ** = The standard MT4 TF's are:
327 | [M1,M5,M15,M30,H1,H4,D1,W1,MN1]
328 | [1,5,15,30,60,240,1440,10080,43200]
329 |
330 | The non-standard TF's are: (not yet available)
331 | [M2,M3,M4,M6,M10,M12,M20,H2,H3,H6,H8,H12]
332 | [2,3,4,6,10,12,20,120,180,360,480,720]
333 | --------------------------------------------------------------------------------
334 |
335 | Example for Windows:
336 | python.exe .\con2mtapi.py -n4 -s "CADCHF.x" -t H4 -p -d
337 |
338 | Please file any bug reports at:
339 | https://github.com/eabase/mt4pycon/
340 |
341 | For support of the MT4/5 API, see:
342 | https://github.com/vdemydiuk/mtapi/
343 |
344 | Version: 1.0.2
345 | License: MIT (2020)
346 |
347 | ```
348 | |