Discussion of article "Horizontal diagrams on MеtaTrader 5 charts" - page 4

 
Andrei Novichkov:

Yes, I can see that)

A lot of work and debugging probably took more than one day )))) And it looks impressive. No doubt it would be interesting to see the implementation. I may well have to do something similar on canvas too.

You already have it

 
Not on canvas, I haven't. So much has been written about canvas already, I thought I'd put it off for later.
 
Andrei Novichkov:
Not on canvas, I haven't. There's so much written about canvas, I thought I'd save it for later.

There's nothing complicated there, the main thing is to work out the model well right away.

 
Yes, I agree with you.
 

As I promised, here is a "combat" indicator completely based on the technology from the article. In it I tried to eliminate the problem with diagrams displaying when the chart is shifted as much as possible.


 
you constantly recalculate data, create a list and after a certain time dump data into a file, and when initialising the indicator, check the file and if there is one, read from it, believe me, on M1 when you start building clusters by 18 o'clock, the first start without a file, it takes up to 1.5 minutes on Si, but with a file instantly.
 
You mean the data is recalculated in OnCalculate? That's not where they are recalculated, though okay, not that important. I'll think about why not.
 
Andrei Novichkov:
You mean the data is recalculated in OnCalculate? That's not where they are recalculated, though okay, not that important. I'll think about it, why not.

what is the difference in which callback the recalculation is done, the thread is the same, and you have this process is not optimised, besides the graphics update seems to be implemented in the same way, because when you change the size, the display is not immediately updated.

 
Konstantin, did you not read my last comment carefully? Once again: There is NO recalculation there. NO. And the display is not updated immediately, because there is a delay. Both of these delays are deliberate, because I think it is correct to make the logic of the indicator work in this way. You don't see the code, so why do you claim that it is not optimised and even crooked?
 

I apologise )) but I don't understand your logic then, who needs this delay?