Forum

Is it possible to close MT4 from code?

I have an EA that talks to a server, but sometimes a communication error might happen, and the EA can have a hard time recovering after, so it would be better to restart the MT4 instance. Is there some way I can close the chart AND MT4 itself to enable that? TIA! Dennis Gundersen

Programming MT4 EAs using C# DLL, a tutorial for dummies

Hi! With help from some clever people, I've written a simple, but efficient tutorial for any newbie-ish programmer who wants to include C# projects in their MT4 EA. https://github.com/DennisGundersen/MT4_To_CSharp_Bridge Enjoy! Re Dennis

MT4 FTP setup problem (FTP: PORT command failed)

Hi! Id like to set up the FTP functionality in MT4, but all I get from the test funtion is "FTP: PORT command failed" and " Publisher: failed ". The address and login works fine in a browser or FileZilla, so it seems to be something in MT4. Anyone have a solution for this (the FTP server is on MS

MT4 for Android doesn't trigger for SendNotification unless I'm logged in to phone

I'm trying out SendNotification() , but have a problem. Initial test always works fine, but if I wait a few minutes until the mobile has powered down to sleep mode, a second notification won't trigger a warning until I log in on the phone again, which rather defeats the purpose of notifications

Using multiple dll's causes crash

I'm got a C# DLL that calculates my trades for MT4. It is compiled as x86 and uses RGiesecke.DllExport for unmanaged code. So far so good, but I'm not able to call any other class libraries from it. As soon as I instantiate a class in an external dll file (which I manually copy into the Libraries

How to do "IsNumber"?

Hi! I'd like test whether the OrderComment is a convertible from string to a number or not, but I can't find anything like an IsNumber() function . Is it possible to get around this? Basically I need the code to test wehter OrderComment() is of type "1.3650" or "BALANCER" in order for the code to