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
Latest version 1.53
Nicholas, just downloaded the lib, will try it, very interesting and thanks! And in the ZIP in kodobase is still the old version 1.09!!!! Good thing I read the comments and downloaded directly. If I were you, I would definitely post about this outstanding bug in the MT5, mql5, mql5.com thread suggestions for improvement!
Nicholas, just downloaded the lib, will try it, very interesting and thanks! And in the ZIP in kodobase there is still an old version 1.09!!!! Good thing I read the comments and downloaded directly. If I were you, I would definitely post about this outstanding bug in the MT5, mql5, mql5.com thread suggestions for improvement!
Thanks Alexey!
I wrote already more than 4 years ago.
Perhaps there is an example of such use?
Perhaps there is an example of such use?
Of course you can, but it depends on what case.
If there are not many rectangles (~<1000) and they don't need to be resized often, you can do with standard CCanvas. In this case, each rectangle is a separate canvas tied to price-time coordinates. It will be necessary to take care of "cleaning up after yourself", so that objects do not multiply uncontrollably.
If there are a lot of objects and they often change their properties, it will be easier to use this library.
In this case you create an array of structures - virtual rectangles with the necessary properties and display them on the visible chart at the occurrence of the event of change of the chart or at your event of change of any properties.
This is the most productive variant, and the object of kanvas (bitmap) here will be one, stretched on the whole screen. But in this variant there will be a slight lag of graphical objects from the chart during vertical and horizontal scrolling.
A suitable example, perhaps, can be taken from the same library Test_iCanvas.mq5. In this example, there is a semi-transparent rectangle with text bound to bars. If you want the semi-transparent rectangles to mix colours when overlapping, you will need a function for such a rectangle. If you need, I can help you to do it quickly, or you can do it yourself, using the function from iCanvas LineDA class, LineHorizontalA is better.
ZY no the example Test_iCanvas.mq5 is not very suitable, because I implemented everything there in a crooked way through a timer. I need to rewrite this example. It was a dumb solution that confused me.Well, look at more examples here and here. But in these examples there is no binding to price-per-time. For that you need to use X and Y functions to translate price-time coordinates into XY coordinates.
are you planning to implement in your library an object - rectangle allowing to draw a rectangle (create/move/modify) with specified properties like a usual graphical object?
It is not quite clear what you mean.
There are different functions for drawing rectangles. It's enough to create, move and modify.
Yes, you can create any object as a structure or a class in your third-party code, in which you can write a method of output to the screen using this class iCanvas or CCanvas, but there is no sense to make all possible variations of implementations inside the graphics library. Only primitives are important. I, of course, have my own extended function of this library. It is many times larger than this one, but nobody will understand it but me. I wrote it for myself.
I'm not quite sure what you mean.
There are different functions for drawing rectangles. It is enough to create, move and modify.
Yes, you can create any object as a structure or a class in your third-party code, in which you can write a method of output to the screen using this class iCanvas or CCanvas, but there is no sense to make all possible variations of implementations inside the graphics library. Only primitives are important. I, of course, have my own extended function of this library. It is many times larger than this one, but nobody will understand it but me. I wrote it for myself.
Thanks, I understand. After I get acquainted with the library in more detail and if there is a specific question then I will ask.
Thank you, I understand. after I will get acquainted with the library in more detail and if there is a specific question then I will ask.
here is a suitable EA example for you:
iCanvas version 1.54 is required to work.
iCanvas version 1.54 is required for operation
Latest version 1.53
I am also interested.
I was wondering the same thing.