darwinex / dwx-zeromq-connector

Wrapper library for algorithmic trading in Python 3, providing DMA/STP access to Darwinex liquidity via a ZeroMQ-enabled MetaTrader Bridge EA.
https://blog.darwinex.com/zeromq-interface-python-r-metatrader4/
BSD 3-Clause "New" or "Revised" License
341 stars 227 forks source link

Set SL and TP to fixed Price #101

Closed ciremoussadia closed 3 years ago

ciremoussadia commented 3 years ago

I'm trying to figure out a way to send orders with a fixed stop/profit level.

elvinex commented 3 years ago

Hi, I don't think there is a way with the current implementation. So you would have to use the current bid/ask and calculate the difference to your desired stop loss in pips.