Skip to main content

Place a buy and a sell order in one go on MetaTrader5

Project description

doubo

Place a buy and a sell order in one go on MetaTrader5.

Pre-requisite

doubo interacts with MetaTrader5 to place orders. It is required to have MetaTrader5 installed before using doubo.

Installation

doubo can be installed using pip:

pip install doubo

Note that doubo depends on MetaTrader's official Python library, which is only available on Windows x86 platform.

Usage

As of v1.0, only real time market orders are supported:

doubo place <SYMBOL> <VOLUME> <STOP_LOSS_PIPS> <TAKE_PROFIT_PIPS>

An example command to place 0.01 double-end orders on EUR/USD forex with 50 pips stop loss and doubled take profit:

doubo place EURUSD 0.01 50 100

License

MIT license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doubo-1.0a1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doubo-1.0a1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file doubo-1.0a1.tar.gz.

File metadata

  • Download URL: doubo-1.0a1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for doubo-1.0a1.tar.gz
Algorithm Hash digest
SHA256 ea29af3f76ab2409798fdb3646c5051d18e5e7d8470bf2caaa9b2474245ee457
MD5 022456863ee5b1fbedac92d9478ed878
BLAKE2b-256 1410f78aed0abf53dda85ee016f5b6bf3f67b08945b5ae17d3ac55978c5cdc96

See more details on using hashes here.

File details

Details for the file doubo-1.0a1-py3-none-any.whl.

File metadata

  • Download URL: doubo-1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for doubo-1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 41edc456a83d3403f56efd47b18e7c03f7df10b747c8a6de3beab1ba3e7602d3
MD5 3e2350439f8577ea267bb5aa418e25dd
BLAKE2b-256 e0252ae8a50b07a8046ef50a3675e3a699a813c54e04ac74c2ff4fa85e3f83be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page