It took me a long time to figure out why your solution doesn't cause an infinite loop. Nevertheless, it also executes itself 1 time. But the above solution prompted me to create a boolean switch.
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).
Nerd Trader #: 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).
No, it does not work that way, and if seconds do not work, TimeCurrent() all the more so. Mileseconds is the only workable variant so far, though it may cause an overflow.
Nerd Trader #: 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.
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.
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