Discussion of article "Developing graphical interfaces for Expert Advisors and indicators based on .Net Framework and C#" - page 13
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
Hello Vasily and hello to all of you. I am using the GuiController which uses a Form created with Visual Studio C #.
The idea was to fill the fields of the ComboBox with data from a SQLite3 DB.
I have installed the whole System.Data.SQLite package but with the GuiController I can't get it to work.
Can anyone explain to me why?
Thanks
I was very interested in this article. Finally a possibility to open a real window and everything you want to have. The whole example runs with the restriction that only the given files are functional. Furthermore there are problems with "enum GuiEventType", if you do not add this "enum" yourself MetaTrader5 does not compile the example at all. The events are only known to the editor from the DLL until you want to compile.
It would have been very nice to finally have real interface options. But unfortunately this is just a demo - very envious for me.
The very first option for me would have been a display, as System-Out is very old-fashioned and illegible. But unfortunately the demo only works with the compiled versions. As soon as I compile the DLL with Visual myself, the programme starts with a .NET error. Regardless of whether compilation on 3.x or 5.NET was selected. My guess is that our author has a special MetaTrader where this kind of thing works - what a pity.
Hi
I'm wondering if there is an event so that the EA be removed from the chart when the form is closing.
Do I need to change the library?
Any one can help me?
I've created a C# WinForm class based on the above TradingForm. I've added some features and they are working very well.
Actually I'm trying to add additional form-elements via Nuget, but the Form doesn't show up when the libs are referenced and used in the code.
So is it possible to do this or is there an other way to work with referenced libs ?
Thanks in advance for some hints :-)
Can we attach this .Net app into chart?
Greetings. Can you tell me, please? What am I doing wrong? When I switch on the Expert Advisor, the form does not appear. No errors in the log.
Greetings. Can you tell me, please? What am I doing wrong? When I switch on the Expert Advisor, the form does not appear. No errors in the log.
Hi! What version of .NET is the library and application with the form built for? MT4 and MT5 don't support .NET Core 3 (I haven't checked the younger versions), .NET 5 and .NET 6, neither for the library nor for the form application.
Of course I may be wrong, but I didn't run the form on these versions either. I was able to launch it myself when building under .NET Framework 4.8.
Also, if you are trying to import to MT4, you need to modify the library code a bit there, because there are problems with passing parameters by reference.
It doesn't work:
GuiController downloaded from the repository. Installed Visual Studio 2022, created a form with a button, run it in MetaTrader 5, I get an error:
Result of the clrver command:
PS C:{Development\Visual Studio Community 2022\C Sharp\GuiMt> clrver
Microsoft (R) .NET CLR Version Tool Version 4.8.3928.0
Copyright (c) Microsoft Corporation. All rights reserved.
Versions installed on the machine:
v2.0.50727
v4.0.30319
What can the error be related to?
The result of the command clrver:
PS C:\Development\Visual Studio Community 2022\C Sharp\GuiMt> clrver
Microsoft (R) .NET CLR Version Tool Version 4.8.3928.0
Copyright (c) Microsoft Corporation. All rights reserved.
Versions installed on the machine:
v2.0.50727
v4.0.30319
What can the error be related to?
GuiController is outdated and requires recompilation.
Since October 2018, MQL5 has natively supported integration with Net Framwork libraries
Good afternoon. Could you please tell me where I can read official information about C# support? I didn't find it in the documentation, there is information on connecting VS, using MT as a compiler, working with Python, but I didn't see any information on Sharp. I would be grateful for a link to the official documentation to familiarise myself with all the features.