Forum

EA that makes an internet request

Hello, UPDATE: Please also see second response below for further details on what I'm looking for. Thanks. I'm making a modification to my original request. I need an EA written that makes an internet request. The page will return a response, in xml or through a response code, whatever is easier for

order not always going through, having to retry

I would like to know if anyone else has experienced the following with code in the demo account. Part of my code executes a buy order such as: OrderSend (Symbol(),OP_BUY,1,Ask,3,0,0,"Comment",1,0,Blue); Sometimes the order will go through and sometimes it does not and I have to retry and perhaps

new to MT4 - want my EA to be called only once

Hello, I'm very new to MT4 and just wrote and compiled my first EA shown below. When I ran the program in demo mode, it worked and placed my order. However, it kept buying me orders, one after another. My expectation was that the EA would only be called once (I'm running it inside FXDD if that

how to prevent timeout from InternetOpenUrlA

I'm calling InternetOpenUrlA successfully but when the page takes a long time to return (because it is doing some calculations), I'm getting a timeout consistently at 30 seconds. In FXDD under Tools > Options > Events, I've disabled timeouts but I don't think this is what is effecting my timeouts at

keep being asked to grant permissions manully for functions calls on wininet.dll

I wrote an EA to request an internet page an the EA works. However, I'm being asking to permit functions calls manaully and I want to know how to suppress that or grant permissions before the EA starts. Here is what I'm being asked while my EA is running and getting the internet page: Do you permit

where does the output from an EA or script go?

I've tried looking for the answer to this but could not find it. When I use a Print statement in an EA or script, where can I see that output once the code has been run? I'm inside I'm using FXDD and have looked in the Journals and Experts tab but can't see it. In the Metaquotes editor panel, there