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

Broker Error 129: Invalid Price on FXCM #44

Closed Pejhan closed 4 years ago

Pejhan commented 4 years ago

hello, This error has been mentioned before but it seems there has been no cure for it but I keep getting the error when I attempt to execute a New Trade using the Default Order Dict. simply:

import DWX_ZeroMQ_Connector_v2_0_1_RC8 as dwx

_zmq = dwx.DWX_ZeroMQ_Connector() _zmq._generate_default_order_dict() _zmq._DWX_MTX_NEWTRADE()

gregnwosu commented 4 years ago

as mentioned previously it is usually due to having incorrect libraries installed, check in particular that you have MS Visual Studio C++ Runtime 2015 installed on the machine. Also check that libsodium is properly installed.

Pejhan commented 4 years ago

Ive checked all the steps required to get the thing running but no progress so far.

Pejhan commented 4 years ago

I havent had such a problem with other functions that Ive used so far but the seems to be a lagging problem with committing a new trade to the market. also Im using the FXCM MetaTrader4 if its of any significance.

integracore2 commented 4 years ago

Hi @Pejhan ,

The behaviour you're describing is not an issue with the code; delayed execution / lag appears to be a broker-level issue.

We have not been able to reproduce this issue at Darwinex - see this YouTube playlist for reference: https://www.youtube.com/playlist?list=PLv-cA-4O3y94ygY4qDlfCcDqkMmqMteah

The dwx-zeromq-connector project has been developed for and tested solely on Darwinex MT4 terminals, and as such, we cannot assist you with debugging activity on other broker terminals.

Pejhan commented 4 years ago

Thanks for the help @integracore2 & @gregnwosu. Ill try other options and investigate further on your solutions.

gregnwosu commented 4 years ago

im actually having the same issue with IG , I'm using this guide to debug the EA to figure out what is happening

Pejhan commented 4 years ago

@integracore2 thank you. I switched to the DxMT4 platform and everythings in order. @gregnwosu Thank you for introducing this guide as its gonna help me later on in coding via MT.

gregnwosu commented 4 years ago

which platform is DxMT4 is that darwinex?

Pejhan commented 4 years ago

yes you can download it at : https://download.mql5.com/cdn/web/tradeslide.trading.tech/mt4/darwinex4setup.exe