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
344 stars 228 forks source link

New Trade SL and TP price values #17

Closed pwerspire closed 5 years ago

pwerspire commented 5 years ago

Hi,

I need to open new trades passing SL and TP that are price values instead of points. There is any way of doing this?

I tried to pass it in DWX_MTX_NEW_TRADE but the values are not accepted, it's supposed to be only points from what I understood.

Thanks

integracore2 commented 5 years ago

Hi @pwerspire ,

Yes that is correct. We've kept SL and TP defined in points to enable any available assets in MetaTrader to be used from the Python client, with no dependency on the digit profile of the asset in question.

You can of course modify this behaviour to prices by modifying the EA to suit your purposes, no worries!