Look at the source of resizing the kanvas, there is extra there, a couple of CPU cycles can be freed up.
Indicators\\DoEasy\EventControl.ex5, I had it open on 10 charts 4-5 times per chart after using the code from the article.
Only today I noticed extra indicators, and yesterday my computer froze, I had to reboot, most likely a bug in the code.
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
New article DoEasy. Controls (Part 21): SplitContainer control. Panel separator has been published:
In this article, I will create the class of an auxiliary panel separator object for the SplitContainer control.
Compile the EA and launch it on the chart:
All works fine except for redrawing delays. Unfortunately, I was not able to find the reason for these freezes on my low-power old laptop. Possibly, the laptop was so overloaded with processes that it was not able to smoothly display changes in the coordinates and sizes of the panels, or perhaps the code needs further optimization. I noticed that such freezes are occasional. But in any case, the library code will be subject to optimization after its development is completed. Besides, displaying/hiding the separator object does not always work reliably. I will also solve this when developing the control.
Author: Artyom Trishkin