Crowdsourced GUI. Open beta testing. - page 17

 
Maxim Kuznetsov:

see how the state-less gui works (google it) .

if (Button("hello world!")) {

printf("fck u self");

}

it draws and reacts to the button at the same time

It works for you.
 
I need to display the graph nicely. Can you help me :) ? Graphs can be of different structure.
There are several types of nodes, nodes can link to several other nodes. The graph has a direction, let it be bottom-up. For a node at the bottom the link has a certain position, for a node at the top it does not.
The graph may not be fully constructed. For example, if there are supposed to be two child nodes (which is below), but there is only one. There is also a list of which nodes are at the top, or rather which nodes are the result. It could also be that several parts of the graph are in the same structure.
If you want to help, I'll send you the necessary code to build/edit/read and write to a file such a structure, and one test file.
Keep in mind that the nodes may not fit in the window.

And you can use the source code for your own purposes.
 

Some time ago, when I saw what Peter was doing, I came to the conclusion that he was a little nervous; I remember even writing on his blog an appeal to wake up, quit programming and return to trading on CME.

But having watched this thread today and got the results of GUI creation visualization, I understood that everything has its place under the sun, and nothing is new under the moon - Peter's activity just needs to be understood. I.e. not everyone can go the way of the warrior/samurai/gladiator of trading and actively fight in the financial arenas - the modern battlegrounds for resources. Someone has to be a craftsman, making weapons, armour, shields for warriors; someone has to be a poet, composing military marches. It's always been that way, it's still that way now.

"Create a great GUI for mql applications without the hard work"- that's cool, Peter is a great fit into the subject of creating graphical shell toolkits. That said, professionalism is an acquired quality; we are all born with zero and gain experience, so here too - there will be an investment of effort and time, it will all yield mastery.

 

So Peter, keep working, I support you!

Everything seems to be quite logical in your constructor, but I haven't seen one thing yet - how to output the periodically changing information from your class to the panel (e.g. output the data about current values of trailing stops on the set of positions, which are recalculated every hour).

One of the most important features of VisualStudio's Xaml-editor, which you're comparing your constructor with, is the possibility to set binding of graphical elements values to program class fields, and in KIB you also need to implement something like that.

 
Aliaksandr Hryshyn:
It is necessary to display a nice graph. Can you help :) ? Graphs can be different structures.
There are several types of nodes, nodes can link to several other nodes. The graph has a direction, let it be bottom-up. For a node at the bottom the link has a certain position, for a node at the top it does not.
The graph may not be fully constructed. For example, if there are supposed to be two child nodes (which is below), but there is only one. There is also a list of which nodes are at the top, or rather which nodes are the result. It could also be that several parts of the graph are in the same structure.
If you want to help, I'll send you the necessary code to build/edit/read and write to a file such a structure, and one test file.
Keep in mind that the nodes may not fit in the window.

And you can use source code for your own purposes.
Honestly, I don't understand what we're talking about. It would be nice to have a clear example.

Perhaps I can help with my tools. Additional code may be not useful. But, show me an example of such a graph.
 
Sergey Lebedev:

So Peter, keep working, I support you!

Everything seems to be quite logical in your constructor, but I haven't seen one thing yet - how to output the periodically changing information from your class to the panel (e.g. output the data about current values of trailing stops on the set of positions, which are recalculated every hour). One of the important features of VisualStudio Xaml-editor, which you're comparing your designer with, is a possibility to set binding of graphical elements values to program class fields, and in KIB you also need to implement something like that.

There is. The link between the interface and the code has been worked out. On the 3rd of the day I will post the new version of the editor. I hope to have the minimum ready in time for you to try to create a simple panel and plug it in.


 
OK, I'll keep an eye out for a new version and try it out then.
 
Реter Konow:
Honestly, I don't understand what we're talking about. It would be nice to have a clear example.

I may be able to help with my own tools. The extra code may not be useful. But, show me an example of such a graph.

This example is not how I want it to look, it shows the structure and some features. The nodes have some information as well, which should also be shown. Bottom-up direction.

There is no way without additional code, it allows to read this kind of structure from a text file and get all information about it.

I would like a nice presentation of this structure.

It needs dynamic creation of graphical elements.

Here's an example of a file with this kind of structure, you can see what the structure is for :)

STRATEGY
-4:nt_params{order_type=0,my_param=0.44,my_param_X=0.99}//Произвольные параметры с целыми или вещественными типами
-3:indicator_buffers{"indicator_info\Indicator_buffers.csv";"indicator_info\Indicator_buffers1.csv"}//Список индикаторных буферов
-2:caching_start_stop{0.000;0.000}//Точное время кэширования
-1:top{"Test_strategy";"EURUSD";1}=>(6;5)//Узлы на вершине
0:nt_indicator{5968578018034117959}
1:nt_indicator{-410628611689884171}
2:nt_indicator{-1246810214216173993}
3:nt_indicator{947789783589059285}
4:nt_function{signal_ind_down()}=>(3;1;8)
5:nt_function{signal_ind_up()}=>(2;0;8)
6:nt_function{and()}=>(4;7)
7:nt_function{not()}=>(5)
8:nt_const{1}
9:nt_function{and()}=>(10;)//Узел с пустым дочерним узлом и он не связан с основным графом
10:nt_const{10}
STRATEGY_END

This file can be read by the code and there is convenient access to all the parameters of the structure. Not all types of nodes are represented here.

I don't insist on help, I know it requires some effort. Some optimal node placement problem is required, it is not good to place by list due to bad readability of the structure.

The structure has no loops. To traverse the graph you can use recursion starting from a vertex, mark nodes where you have already been. Then you choose any unmarked node and define all nodes from it, which form another graph not connected to the main one, etc.

I could have done it all myself, but there are a lot of other tasks now.

 
Aliaksandr Hryshyn:

Such an example, it doesn't reflect how I want it to look, it shows the structure and some features. The nodes also have some information to show. Bottom-up direction.

There is no way without additional code, it allows to read this kind of structure from a text file and get all information about it.

I would like a nice presentation of this structure.

It needs dynamic creation of graphical elements.

Here's an example of a file with this kind of structure, you can see what the structure is for :)

This file can be read by the code and there is easy access to all the parameters of the structure. Not all types of nodes are represented here.

I don't insist on help, I know it requires some effort. Some optimal node placement problem is required, it is not good to place by list due to bad readability of the structure.

The structure has no loops. To traverse the graph you can use recursion starting from a vertex, mark nodes where you have already been. Then you choose any unmarked node and define all nodes from it, which form another graph not connected to the main one, etc.

I could do it all myself, there are just a lot of other tasks now.

Clarify, are these "nodes" dynamic and interactive objects, as well as the links between them? It's not just a scheme, is it? If so, I saw something similar in Andrey Barinov's Strategy Graphics Builder. Is that what you mean?

Is the logic of links between nodes unchangeable and following predefined rules, or is it a frivolous scheme created as you please?

In principle, I don't see anything difficult to create it. It's a couple or three days' work. I don't need any extra code. I'll do it myself, after the main things that are a priority right now.

 
Sergey Lebedev:

Some time ago, when I saw what Peter was doing, I came to the conclusion that he was a little nervous; I remember even blogging about him urging him to wake up, quit programming and go back to trading on CME.

...

"Create a great GUI for mql applications without any hard work" - that's cool, Peter is well into the subject of creating graphical shell tools. At the same time, professionalism is an acquired quality; we are all born with zero and gain experience, as well as here - there will be an investment of effort and time, it will all give a mastery.

It's all right !

The only question is whether you need to use all that beauty.

That's the downside of all the graphic libraries that have been offered on this forum - they have not increased revenue, not the efficiency of its acquisition.

Yes, it is beautiful. Yes, it's easy to use.

But what's the point of it all?

Those who use robots do not need graphical add-ons.

Those who trade manually may be satisfied with a few buttons and report lines.

Cocked-up graphical interface - who may need it?

Apart from increasing the loftiness of Peter, I can't see any other uses for this graphic library. It's a very useful thing, though.