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
Can you advise where to read about using .Net libraries in MQL5 programs? I haven't found the appropriate section in the documentation.
Look in the articles.
For example, there are suggestions in the articles to do this through export of unmanageable code https://www.mql5.com/ru/articles/249.
But as far as I understand, integration via decompilation is a hacking technique... I read somewhere on a forum that MQ sued hackers.
So, this method would be just right, as an argument, in such a lawsuit ...)
Write a non-dotnet dll and use it normally in the terminal like other dlls. To support dotnet libraries, we use a transparent wrapper that supports native calls.
Probably some additional notation is required to explicitly point to .Net attributes, if I could see a simple example...
I tried it, but it didn't work right away. If I specified a function name with name space and class name, like in C#, the MQL5 compiler doesn't pass it, and if I specified just a function name, it is not in the runtime of EX5 in the terminal.
Probably some additional notation is needed to explicitly point to .Net attributes, if I could see a simple example...
https://www.mql5.com/ru/articles/27
This article is about an additional layer for MQL5 programs, in the form of win32 dll QExpertWrapper.dll, which in turn works with .Net, and my question is about using .Net dll directly in MQL5 programs.
https://c.mql5.com/mql4/forum/2009/03/NETSampleR.zip
Thanks, what you suggested is another interpretation with dll intermediary (wrapper), but for MQL4.
I was doing it approximately the same way, but why should I need all those tricks, decrease reliability and put a different wrapper on each library, if it's already in the terminal...
Show me just a little example of how to use it, this transparent staff vrapper...
...To support dotnet libraries we use a transparent wrapper which supports native calls.
From time to time some "crap" happens: the optimizer doesn't start, I thought the processor might be too busy or something. Today I rebooted WIN XP, deframented the disk, started the optimizer:
IQ 0 04:19:14 Tester Experts\Smart Neurons Test.ex5 on EURJPY,H1 from 2003.06.01 00:00 to 2013.06.01 00:00
IP 0 04:19:14 PM Tester Optimization started
PG 0 04:19:14 Tester size of initial task pack is 512
PM 0 04:19:14 Core 1 agent process started
CN 0 04:19:15 Core 1 connecting to 127.0.0.1:3000
II 0 04:19:15 Core 1 connected
QP 0 04:19:16 Core 1connection closed
It works the second time, i.e. I pressed "stop" then "start", and it's not the first time.