Hi guys,
Im trying to use the winsock library to receive orders through a socket from my order processing server, but using the example wsockclnt.mql4 as a base, I havent found a way to sucessfully put open and close orders on different timeframes.
Example:
(Several of those orders where supossed to be registered on the later timeframes)
This is because of the while loop that I use to listen to the socket inputs therefore, never stopping the start method execution and being stuck on the first tick that is received when the script starts ( or at least is what I think is happening).
Has anyone done something similar or managed to keep listening to a socket and at the same time keep the ticks going?
Hi
I am using messaging (an opensource solution and not a low-latency one like IBMs) rather than straight sockets as my connection/transport protocol. My EA polls for new order messages (via a C/C++ DLL) on each tick accepting that I may miss ticks while processing any newly arrived message or even looking for messages. Its not an ideal solution but its cleaner and simpler than raw sockets IMHO.
hope this helps
c
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys,
Im trying to use the winsock library to receive orders through a socket from my order processing server, but using the example wsockclnt.mql4 as a base, I havent found a way to sucessfully put open and close orders on different timeframes.
Example:
(Several of those orders where supossed to be registered on the later timeframes)
This is because of the while loop that I use to listen to the socket inputs therefore, never stopping the start method execution and being stuck on the first tick that is received when the script starts ( or at least is what I think is happening).
Has anyone done something similar or managed to keep listening to a socket and at the same time keep the ticks going?