Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1799

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
Yes
Thank you
The second option will not work. To do the overrun from the end of the list you have to do the following:
Thank you. I've been thinking for two days.)
I usually do without it, because it doesn't work in the tester, but here the case allows for real data - I'll have to try it. What I've realized, the version of this code with renaming the object is not different from the past, when objects were recreated when changing colours, because renaming does the same thing: it creates an object with a new name and deletes the old one.
UPD
Buttons I use to create lines in mql4 in debug mode are absent in the chart
Crutch on crutch.
UPD
Buttons in tester in mt4 are very well drawn in tester, and even work at that.
If
it doesn't work if the start time is 22 or 23 hours and the end time is 2-3am.
Can you please tell me how to write the opening time condition for the night scalper? I can't figure it out.
If
this doesn't work if the start time is 22 or 23 hours and the end time is 2-3am.
Try this code
Try this code.
Vitaly, thank you!
Crutch on crutch.
UPD
Buttons in the tester in mt4 even draw very well in the tester, and even work while doing so.
And what's the tester got to do with it, if I'm writing about a debugger? And in the tester the buttons work incompletely, e.g. click events are ignored.
And you don't need to watch the events. They don't work at all in the tester. You have to watch the status.
UPD. Not modest of course, but if you had listened to my hints for once, you would have done everything a long time ago. Properly and without the crutches of a multi-storey.
But everyone chooses the abyss they want to plunge into.
I usually do without it, because it doesn't work in the tester, but here the case allows for real data - I'll have to try it. What I've realized, the version of this code with object renaming isn't different from the past, when objects were recreated with colour change, because renaming does the same thing: it creates an object with new name and deletes old one.
UPD
To use debug in tester, learn to write in MQL5. Everything works there.
There is no object renaming. Think of it as replacing an existing object with a new object.
This cannot be. Your code looks like a mess of things. That's probably why you are experiencing lags with the buttons. Like I told you before, start with something simple. Don't overcomplicate things. And gradually complicate it when the simple starts to work and you're confident in it.
Thank you. I've been thinking for two days.)
You should not only think, but also act. For example, you can google "loops for C++".