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.0.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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: doubo-1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 508ce8c05ac1ac4e1a49195696fd3f8769f05ff9f8da4cdedb072d99dbc19999
MD5 70ef65b66aedb50d87a6e2720a01339c
BLAKE2b-256 c51a8f6e28897d369f4dd5ed57a5732909e7dca1f2765d0ee9a377453cabcf1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doubo-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eaaf8e0a68c155c5630bb5ff020cadde49a398ade44a2669d9877bf8f2f37213
MD5 ceb033dfb40ca3236fd8ad64392fd3e3
BLAKE2b-256 eb85921cfd766a85ae84e84c7d9dbbe3053d7c49f9e85b42dd4159a4d892113c

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