Discussion of article "Developing graphical interfaces for Expert Advisors and indicators based on .Net Framework and C#" - page 9
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
Your questions make me stand or fall. What do crutches have to do with it, if the goal was to show the relationship between the form and the trade expert? If you need calculations inside c# library - pass data for calculation through your function. The article will not contain 100500 functions for each separate task. If you don't have enough knowledge to write your own function - pass it via string with further conversion to double - it's almost elementary.
I have everything.
We can do it both ways.
It's just that this gui controller is very raw.
And if I have my own function for transferring information in any form back and forth, why do I need a gui?
It turns out that it's enough to have a function of exchange with MT and nothing else is needed.
And if you are going to write such an article, it is necessary to provide communication with sharp - it should be present in the first place.
I've got everything.
We can do it both ways.
It's just that this gui controller is very crude.
and if I have my own function to transfer information in any form back and forth, why do I need a gui?
It turns out that it is enough to have a function of exchange with MT and nothing else is needed.
And if you write such an article, it is necessary to provide communication with Sharp - it should be present in the first place.
You've twisted your wishes from the back of your head.)
the article is about how to literally "attach buttons, checkboxes, input fields..." in 2 clicks, i.e. a graphical interface to your code in MQL5, the article coped with it 100%.
You need to create a calculation part outside of MQL5, then this article is not about that, but the author of the article kindly provided the sources and description of the functionality in C#, add the missing functionality to the C# source code.
that you have twisted your desires from the back of your head.)
the article is about how to literally in 2 clicks "attach buttons, checkboxes, input fields...", i.e. a graphical interface to your code in MQL5, the article coped with it 100%.
You need to create a calculation part outside of MQL5, then this article is not about that, but the author of the article kindly provided the sources and description of the functionality in C#, add the missing functionality to the source code in C#.
Thank you for sharing your information
Can we use these codes in MT4 or only we can use it in MT5
The approach is interesting throughout.
But why on earth are the buy and sell sides reversed?
Tower of Babel.
He's just swapped red and black, if you look fast enough ;) you'll see that the higher of the two prices is under Buy - everything's fine, technically!
Buy and Sell are swapped right/left. Why is that? So that you make a mistake?
In the original, SELL is on the left.
By the way, the original is the best pnel ever, it accepts both . and ,
It would be great if that were the case everywhere. But I have written off such wishes.
Excellent idea !
some suggestion.
0) first basic need : EA/indicator and C# App can call a function to send some data and/or trigger some action. & nbsp ; Subscribe so much events is not needed . nbsp; Subscribe so much events is not needed.
1) now GuiController use Subscribe event to reveive event paranneters oe GUI user's action, then process them at OnTimer().
GuiController::SendEvent to an event to Form's control.
Is it posible work in reverse mode ? for example, C# Form or its control send user enent to MTChar, and processe the event like eventChartCustom at OnChartEvent() .
2) Or use callball function in mutual mode between Mt terminal and C# Form App ?
3) use GuiController as a Global Variable, then all Chart/EA/indicator can link to one C# App.