Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 957
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
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?