On Trade Event Data not working when Posting HTTP
-
Hi,
I want to be able to send HTTP Post request to my server when a trade closes, I have two sets of messages; Message set 1 to send statistics link consecutive losses, equity, consecutive wins, Login Number etc, and Message 2 to send details like, spread, lotsize, close time, close price, order date, take profit etc.
For message 1, I am able to get this data without a problem using POST at my server/database.
But for Message 2, I am am using the same method of connectivity, using the On Trade screen and using the ontrade event data, but everything is sent as Null or blank. How can i send the on trade events when a trade closes?Please review the code here
-
@kekhumbo This is for real programmers. Anyone here?

-
@l-andorrà Infact I have noticed that Its failing to POST because I am sending alot of data or Key values, It seems they is a limit on how much can be sent at a time, as for me, I am sending about 34 key values using 4 various HTTP request blocks on the On Trade Data Events, but when I send 10-20, It works, however I need all 34 key values sent at the same time. Can anyone help on how this can be done?
-
@kekhumbo not sure if this will help:
as you know , when the Ea sends an http request the EA execution is halted for the time being till it receives the response back from the server, may be this is whats causing the issue (however i doubt that)secondly you said you want to send all 34 requests at the same time , i am afraid it wont be possible using FXdreema , because the http request block only allow 10 keys per block so there will always be a slight delay (few milliseconds) between the execution of each http request block (dependent on the time it takes to receive the response from the server)
i would recommend that you use the custom mql block to send all 34 requests from the EA at the same time.what server are you using ? the issue could be at the server end maybe its not sending the response back to a particular request (just a thought)