Discussion of article "Graphical Interfaces X: The Standard Chart Control (build 4)" - page 5

 
Реter Konow:

2. the fact that my implementation does not slow down can be seen in the video.

4. That's right. That is why I am discussing with you. From my point of view, your solution of redrawing the whole graph on the event of each object is not efficient and causes additional load on the processor. Optimisation depends on solving this problem correctly. I don't have ChartRedrow() function call (take your word for it please) and the interface doesn't slow down (you can see it on the video).

Hence my suggestion: Don't use constant redrawing of the chart, as you can do without it.

5. Proof that my claims are valid is my word that I don't use ChartRedrow() and a video that has the result of getting around without this function.

2. The fact that nothing slows down in my much more functional version of the library than yours is evident in the chart directly in the terminal, not in the video.

4. How many times do you need to ask the same question? Or are you trying to dodge it so casually?

Duplicate questions:

Where do you conduct your tests? In MetaTrader 4/5? In Windows 7/8/10?

I have already answered your suggestion. It is not suitable, because ChartRedraw() should be used in relation to the built-in functionality of my version of the library. However, everyone has an opportunity to disable redrawing in the library engine, CWndEvents class, OnTimerEvent() method, and test it yourself to see why it is necessary. All the files for the tests are provided at the end of the article.

5. Your word, as well as mine and anyone else's, is worth nothing without material for everyone to test. On my end, all the necessary material is provided.

 
Anatoli Kazharski:

2. the fact that in my much more functional version of the library than yours, nothing slows down, you can see on the graph directly in the terminal, not on the video.

4. How many times do you need to ask the same question? Or are you trying to dodge it so casually?

Duplicate questions:

Where do you conduct your tests? In MetaTrader 4/5? In Windows 7/8/10?

I have already answered your suggestion. It is not suitable, because ChartRedraw() should be used in relation to the built-in functionality of my version of the library. However, everyone has an opportunity to disable redrawing in the library engine, CWndEvents class, OnTimerEvent() method, and test it yourself to see why it is necessary. All the files for the tests are provided at the end of the article.

5. Your word, as well as mine and anyone else's, is worthless without material for everyone to test.

2. Following your logic, it is possible to conclude that your library is much more functional, not by looking "from above", but only by testing both variants. You haven't had such an opportunity yet. And I had less time to implement it (you have been programming longer than me, after all), so take your time....

4. I am testing in Windows 8, MetaTrader 4, just to slow down more. So I can better see the shortcomings in speed, braking, etc... MT5 is more advanced and I do not test there yet. I want everything to work perfectly on MT4.

I have already realised that you cannot change the situation with ChartRedraw(), as it would entail a global redesign of the entire library functionality. These are the limits of possible optimisation of your library.

5. The tested variant of my windows will be provided here on this thread after some time, as the very material for testing by everyone. You ask for it yourself and do not say that I am advertising something.

 
Реter Konow:

2. Following your logic, it is possible to conclude that your library is much more functional, not by looking at it from above, but only by testing both variants. You have not had such an opportunity yet. And I had less time to implement it (you have been programming longer than me, after all), so take your time....

4. I am testing in Windows 8, MetaTrader 4, just to slow down more. So I can better see the shortcomings in speed, braking, etc... MT5 is more advanced and I do not test there yet. I want everything to work perfectly on MT4.

2. So you want to say that you have not yet shown everything you have? Good. It is even more interesting.

3. So you test only in Windows 8 and MetaTrader 4, but you have made conclusions for everything and everyone? When you start testing in other environments, then a lot of things will become clearer for you.

Retag Konow:

I have already realised that you can't change the situation with ChartRedraw(), because it would entail a global redesign of the entire library functionality.

I'm not even going to change anything in it. For example, how many discussions have you had with terminal developers in Service Desk on this or that issue?

I see that exactly zero:

//---

And I clarified many questions for myself there, as the MetaTrader 5 platform was developing:


//---

Retag Konow:

This defines the limits of possible optimisation of your library.

And this is not what defines the library's capabilities at all. You write some nonsense.

Retag Konow:

5. The tested variant of my windows will be provided here on this thread after some time, as the very material for testing by everyone. You ask for it and don't say that I am advertising something.

You'll be banned quicker.

P.S. Well, already banned, and you haven't even posted anything yet.

 

Tol, hint: if we have a window with a standard chart on it (CStandardChart), then if we select the crosshair (Ctrl+F) and try to measure something on the subchart, then, of course, nothing will happen - the "ruler" measures data from the main chart, and the subchart chart is moving back and forth behind the crosshair.

Question:

  1. is it possible to get rid of the subchart running behind the crosshair? (not a very interesting option), or
  2. is it possible to make it so that measurements are made on the subchart? (which would be quite tasty)
 
Artyom Trishkin:

Tol, hint: if we have a window with a standard chart on it (CStandardChart), then if we select the crosshair (Ctrl+F) and try to measure something on the subchart, then, of course, nothing will happen - the "ruler" measures data from the main chart, and the subchart chart is moving back and forth behind the crosshair.

It is only unclear why you should measure on the main chart when the cursor is above the subchart? Remove the interference by collapsing the form and work normally.

Artyom Trishkin:

...

1. is it possible to get rid of the fact that the subchart runs behind the crosshair? (not a very interesting option)

Yes. Just don't do it over the subchart.

Artyom Trishkin:

...

2. is it possible to make it so that measurements are made on the subchart? (which would be quite tasty)

I haven't tried it yet. But it seems possible, judging by this indicator: ZoomPrice tick indicator

 
Anatoli Kazharski:

I just don't understand, why do measurements on the main chart when the cursor is above the subchart? Remove the interference by collapsing the form and work normally.

Yes. Just don't do it above the subchart.

Haven't tried that yet. But it looks like you can, judging by this indicator: ZoomPrice tick indicator.

Shocked myself ;)

Let's hope you can do it. Or we will figure it out ourselves in our spare time.

 
Is it planned to introduce functionality for changing the layout of charts in the next update? The current version has a horizontal arrangement, but there is a need to arrange them vertically, we have talked about it with you.
 
Konstantin:
Is it planned to introduce functionality for changing the layout of charts in the next update? The current version has a horizontal arrangement, but there is a need to arrange them vertically, we talked about it.

And I answered you that I will do it.

Not in the next update, because now there is a lot of work on other parts within the second stage of development. In general, I can't say exactly when. In one of the next ones.

 
Anatoli Kazharski:

And I answered you that I will.

Not in the next update, no, as there is a lot of work going on right now on other parts as part of the second phase of development. Anyway, I can't tell you exactly when. In one of the next.


yes answered, but in which update I did not specify, that's why I asked ))
 
Konstantin:

yes they answered, but in which update I didn't specify, that's why I asked ))

First, I will add the ability to work with these charts: Visualise it! Graphics library in MQL5 as an analogue of plot from R

And then I will expand the capabilities of the CStandartChart class.