Ctrl+B --> "All" button - there's one object, which is what I'm talking about. The problem is that if I create a RECTANGLE the normal way without Canvas. It creates the right number ofRECTANGLE objects.
With Canvas, I can only create one. Why is it like that? I make a unique name for eachRECTANGLE.
Thank you for the programmer, of course.
Why do you think your name is unique? Have you checked it before creating a new object? And do you check the result of object creation? What is the error code for this?
I have a calculation of order openings using global variables. For example, if it is 5, it means that five orders have already been opened and I am waiting for the sixth order to go up. If the counter is set to 5, it means that 5 extra orders are opened, although they are already open. The same happens when I close the terminal and open it again. How to fix it?
I have a calculation of order openings using global variables. For example, if it is 5, it means that five orders have already been opened and I am waiting for the sixth order to go up. If the counter is set to 5, it means that 5 extra orders are opened, although they are already open. The same happens when I close the terminal and open it again. How to fix it?
In the int OnInit() function, we have to check the existence of a global variable. If it exists and is higher than zero, we set it to zero.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Ctrl+B --> "All" button - there's one object, which is what I'm talking about. The problem is that if I create a RECTANGLE the normal way without Canvas. It creates the right number ofRECTANGLE objects.
With Canvas, I can only create one. Why is it like that? I make a unique name for eachRECTANGLE.
Thank you for the programmer, of course.
Why do you think your name is unique? Have you checked it before creating a new object? And do you check the result of object creation? What is the error code for this?
No fully reproducible code - no concrete discussion. I don't know what you've done there. You've made some kind of problem out of the simplest thing.
What do you mean by restarts?
I have a calculation of order openings using global variables. For example, if it is 5, it means that five orders have already been opened and I am waiting for the sixth order to go up. If the counter is set to 5, it means that 5 extra orders are opened, although they are already open. The same happens when I close the terminal and open it again. How to fix it?
I have a calculation of order openings using global variables. For example, if it is 5, it means that five orders have already been opened and I am waiting for the sixth order to go up. If the counter is set to 5, it means that 5 extra orders are opened, although they are already open. The same happens when I close the terminal and open it again. How to fix it?
In the int OnInit() function, we have to check the existence of a global variable. If it exists and is higher than zero, we set it to zero.
Is it a quadruple?
Yes. I noticed that MQL4 when I asked about Canvas
Is this a four?
It should work on a four, too, I suppose.
Thank you, it all works.
When scaling the graph can the rectangle be made smaller too?
The scale is tracked. But the indicator only understands it with a new tick,
Sometimes there is a huge delay. What can I do about it?
Thank you, it all works.
When scaling the graph can the rectangle be made smaller too?
The scale is tracked. But the indicator only understands it with a new tick,
Sometimes there is a huge delay. What can you do about it?