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

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
And if so
Now the code is executed only when the button is pressed. But what happens if the terminal runs for several days? The help for another method returning time, it says that there will be an overflow.
The same code but with Seconds() instead of GetMicrosecondCount does not work. "Seconds() > 20" if higher - button freezes in "pressed" state. If lower - it works, but so fast that it's almost invisible (blinks).
Couldn't understand for a long time why your solution doesn't cause an infinite loop. Nevertheless, it also executes on its own 1 time. But the above solution prompted me to create a boolean switch.
Now the code is only executed when the button is pressed. But what happens if the terminal runs for several days? Help for another method returning time says an overflow will occur.
The same code but with Seconds() instead of GetMicrosecondCount does not work. "Seconds() > 20" if higher - button freezes in "pressed" state. If lower, it works, but so fast that it's almost unnoticeable (blinks).
Then it's like this
Then it's like this
No, it doesn't work that way, if seconds didn't work, then TimeCurrent() all the more so. So far, mile-seconds is the only workable variant, though it may cause an overflow.
It works!
mmm doesn't work for me: the button doesn't release on its own.
The market is now closed, TimeCurrent() does not change. Check on crypto, it's working on weekends
Crypto at my broker at the weekend is not trading. Tried it in the tester - it doesn't work.
Greetings, I'm getting an array.
How do I change it so that all the numbers are present but without repeats?
Greetings, there is an array
How do I change it so that all the numbers are present, but without repetition?
You can do this without using libraries