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
342 stars 227 forks source link

[RESOLVED] Getting OHLC Data from DWX_MTX_SEND_MARKETDATA_REQUEST #47

Closed Pucal closed 4 years ago

Pucal commented 4 years ago

Is there any way to get OHLC data from DWX_MTX_SEND_MARKETDATA_REQUEST instead of only the close

foxriver011 commented 4 years ago

please answer this

foxriver011 commented 4 years ago

Is there any way to get OHLC data from DWX_MTX_SEND_MARKETDATA_REQUEST instead of only the close

hey Pucal you can see DWX_ZeroMQ_Server_v2.0.1_RC8.mq4 file then check DWX_GetData function and modify it

for example if you want openPrice you can change CopyClose to CopyOpen

I with it will be useful for you

integracore2 commented 4 years ago

Hi @Pucal ,

@foxriver011 's solution is indeed correct 🙂

We are working to make market data I/O more robust between Python and MetaTrader at the present time. We'll keep you posted!