Hi, I have DLL that calls an API, the API is used to place trades on a broker.
The DLL is executed by a trading platform(MT4), which doesn't have asynchronous capability.
What I need is being able to call multiple instances of the API asynchronously, so the trades gets placed simultaneously on multiple brokers (each with a different token)
I need a simple external application that can receive the signal from MT4, and then execute multiple treads of the DLL.
I don't need anything too fancy, just an app that can store multiple API tokens (or ideally grab them from a text file), and execute the DLL.
I have attached the source code of the DLL, as well as the MT4 components.
Below is a sample code used to call the API from MT4. You can see that the 3 API calls are executed sequentially, creating a delay in the second and third instance. So I need to be able to call it only once, and then have the external app handling the multi treads.
I'm thinking of something in C# or C++, but I'm open to suggestions on how to achieve this in the easiest way.
----------------------------
#property strict
#include <[login to view URL]>
void OnStart()
{
string response = CallBinary(1);
//Call 1
InitBinary("testapi1", USD, "frxEURCHF", 5, m);
response = CallBinary(1);
//Call 2
InitBinary("testapi2", USD, "frxEURCHF", 5, m);
response = CallBinary(1);
//Call 3
InitBinary("testapi3", USD, "frxEURCHF", 5, m);
response = CallBinary(1);
Sleep(5000);
}
Hi,
I’ve had a good look at your project description and I’m very interested in providing a solution.
I have 8+ hands on experience on developing quality web solutions as well as desktop standalone solutions.
I used to develop systems using latest adaptive technology such as :
1. .NET/ASP.NET - MVC4,MVC5 - Entity Framework - SQL - C# (for .NET solutions)
2. JQuery/Javascript/HTML5 /Bootstrap etc (for designing and front end implementations)
I want to start work immediately and awaiting for your positive response .
Thank you.