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> [--sl <STOP_LOSS_PIPS> | --tp <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 --sl 50 --tp 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.1.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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file doubo-1.1.tar.gz.

File metadata

  • Download URL: doubo-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 be82051bdbff071421606a44d019f821e44266a6faab46a7e9cca525aa686b13
MD5 a40436e2940e60348520f31d0666c1fc
BLAKE2b-256 284d9bbb84232cbbd606ffd4bd4c8602b0a97c79cf2d0034fcfd23673076d472

See more details on using hashes here.

File details

Details for the file doubo-1.1-py3-none-any.whl.

File metadata

  • Download URL: doubo-1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d068032e13adf4dc870dc812863b987ba61a0eafcf00198cfed4304e44a1a571
MD5 71e042565bd4d2c584bf61612aacfb2d
BLAKE2b-256 600e6475e1b0d8807a90a786b5246e3003716ae80e84b0be0c4879d3331d07ec

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