Discussion of article "Developing graphical interfaces for Expert Advisors and indicators based on .Net Framework and C#" - page 3

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
...design WPF forms, read XAML in MQL.
Masterpiece!
Yeah, it's a good article, but I'm not sure if the editors read it ;-). "Besides" is spelt together, but everywhere else in the text it is separated. It caught my eye because I was reading more or less carefully, compared to other articles.
In fact, it seems to be good on the one hand. But on the other hand - it's kind of cumbersome to pull all the Studio-related stuff just for the visual form editor. If Studio is already installed - no problem.
I would do everything in MQL, together with the designer (I have ideas, but I can't get my hands on it). And I think there is an intermediate option - with Studio, but without DLL - design WPF forms, read XAML in MQL.
The author of the article showed an example of how to make a "panel with buttons" that will work both online and in the tester, it is not difficult to make graphics with MQL, but it does not work in the tester.... I personally sometimes want my project to work in the same way both online and in the tester, with the help of Vasily's article you can make a working example within 2-3 hours with only basic programming knowledge.
...
I would do everything in MQL, together with the designer (I have ideas, but I can't get my hands on it). And I think there is an intermediate option - with Studio, but without DLL - design WPF forms, read XAML in MQL.
And I would launch spaceships into space. I have a lot of ideas, but I can't get my hands on them either.
And in general it is congenial: it is difficult to download the studio, but to write XAML interpreter by yourself - it's nothing, but you just can't find the time.
Very impressed by the level of dll connection.
Is it right that it is much easier to connect C#_dll than EX5-library, because in the second case you need to write functions?
Are classes, enumerations, structures available in EX5-libraries? Judging by the article, ME sees all this in the dll, as if you connected mqh, but only there is access to signatures, not to sources.
All, we are waiting for Peter. Let's see his "expert evaluation" of my proposed solution:)
Vasily, I have to say that technically I think you are on the right track. Of course, this is just the beginning and you still have a lot of work to do to establish a full and convenient connection, but the result is worthy. Congratulations! ))
Very impressed with the level of dll connectivity.
...
Me too...
I would like to visualise my data on third-party interactive graphs, following the example of the article.
Can I send a double array to C# and it builds a graph based on some visually advanced bible that would zoom, scroll and show values under the mouse? All sorts of feedback charts, etc.
ZЫ I'm sure there are bar visualisation bibles. Who knows, show me how to get your full price chart in the form?
I would like to visualise my data on third-party interactive charts, following the example of the article.
Could I send a double array to C# and it would build a graph based on some visually advanced bible that would zoom, scroll and show values under the mouse? All sorts of feedback charts, etc.
This is something you have to create yourself. Here we offer only an adapter for connecting to simple GUI elements of a Sharp form.
Very impressed with the level of dll connectivity.
Is it correct that it is much easier to connect C#_dll
yes, now it is not a problem to connect C# library in MT5 at all, if you are just getting familiar with this feature, then download SharpDevelop (14 MB) (not to download VS2017 > 200 MB ~ 1GB)
here is a brief instruction I wrote https://www.mql5.com/ru/forum/293630/page57#comment_9851502
and not to go into graphics, run the example recommended by MT developers: https: //www.mql5.com/ru/forum/285631.
I was impressed by the level of integration of C# libraries in MT5, once you write the #import directive with the dll name, the signatures of functions from the dll will be immediately available in the tooltip, you can use them as native includers from MT delivery.
You have to create it yourself. It offers only an adapter for connecting to simple GUI elements of the Sharp form.
You want to connect to complex ones, but why? Sharp programme works by itself, MT5 works by itself, the author of the article has shown an example of data exchange..... I can even show you more: when passing arrays by reference from MT5 to C#, not only data, but even array sizes will be available by calling standard Sharp functions .Length(), i.e. it is enough to pass by reference only the buffer name, i.e. you can find out the size of arrays in Sharp.
and in Sharp itself you can find out the size of buf.Length() ..... such wonders with integration ;)
...
and in Sharp itself you can find out the size of buf.Length() .... such integration wonders ;)
Yes, I understand everything. I was scared, scared of C-sharp... :)))))