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
346 stars 229 forks source link

Custom indicator data #15

Closed 2knarf closed 5 years ago

2knarf commented 5 years ago

Hi, How can I send custom indicator data to zmq?

integracore2 commented 5 years ago

Hi @2knarf ,

It depends on what you're trying to achieve by doing that.

For example,

1) You could retrieve data for say the RSI indicator applied to an asset e.g. EURUSD, via ZeroMQ from MetaTrader.

2) If you were calculating an indicator outside of MetaTrader and using it to perform trading actions, you wouldn't need to send that data to MetaTrader, you could simply send orders to execute based on such an external indicator.

Hope the above helps!

2knarf commented 5 years ago

Hi. Thanks for the reply. I want to achieve point 1. Can you give me some guidelines for This?

integracore2 commented 5 years ago

Hi @2knarf ,

To achieve point 1, you'd need to copy one of the DWX_() methods in the MQL EA and edit it to include your desired functionality.

We don't unfortunately have the resources at the present time to provide specific programming support in MQL and Python, but the code is fairly self-explanatory so hopefully should be fairly straightforward for you to implement.

All the best!