You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Great article, very, very handy. But...
I have a slight bug with Visual Studio. If I create a new project using the template and build it, VS has no problem. I can then save the new project (including built dll) to disk, in a solution folder. The dll runs fine. However, if I go back into the saved project in VS, it complains about project "RGiescke.DllExport.targets" not being found or being on disk, although the file is there.
I guess its a problem with the project file.....
Very good tutorial, I like this.
big Thanks.
2011.10.29 20:13:37 2000.01.03 00:00 Expert_NN_1_1 USDJPY,H1: cannot call function 'sum' from dll 'NN 1 DLL.dll' (error 127)
Hi,
Am getting similar errors. How did you sort it out?...
2014.03.28 22:16:41.199 2014.03.25 23:59 unresolved import function call
2014.03.28 22:16:41.199 2014.03.25 23:59 Cannot find 'Set2DArray' in 'Testme.dll'
Hello,
Was anybody able to send a structure with string variables inside, to the dll?
I was able to send int, double, float, but for string variables i get this error:
Access violation read to 0x0000007B
Here is my C# structure:
And here its the mql4 structure:
I have tryed to marshal the string variable inside the structure but MT4 crashes totaly, no error just hangs and crushes in windows.
Thank you.
Thank you very much for this article. I've used the ideas here to build this opensource MQL library for C#.
https://github.com/jseparovic/MQL4CSharp
It's still under development and is untested at present, but initial tests show the idea works.
It's very basic in how it sends commands from C#, using a Thread for the C# code to run in, and getters/setters for communication. MQL polls for waiting commands every millisecond, while the C# code can block until the result is written.
Take a look at https://github.com/jseparovic/MQL4CSharp/blob/master/MQL4CSharp/UserDefined/Strategy/MaCrossStrategy.cs for an example of how to implement a strategy in c#.
Cheers,
Jason