Features of the mql5 language, subtleties and tricks - page 261
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Then that's enough
you still need the month and year to calculate the day
Put the unit in the array.
Put the unit into the array.
Forum on trading, automated trading systems and testing trading strategies
Peculiarities of mql5 language, subtleties and techniques of work
fxsaber, 2024.04.16 12:46 pm
Day of the month.
Finally, let's try to apply the obtained results. Not forgetting about leap features.
It seems to be faster.
Forum on trading, automated trading systems and testing trading strategies
Peculiarities of mql5 language, subtleties and techniques of work
Nikolai Semko, 2024.05.02 05:43
Collected in a pile different methods that have already appeared here.
Highlighted the change. It is faster on the old CPU.
Highlighted the change. It's faster on the old CPU.
Caching has nothing to do with the algorithm itself. In reality, TimeToStruct is rarely used, because NextTime approach is practiced in Expert Advisors.
Usually caching is used for interactive products - definition of time data under the mouse cursor. I.e. the niche is not for a standard MQ-Tester, but for GUI, where the speed of TimeToStruct is a matter of twenty.
Caching has nothing to do with the algorithm itself. In reality, TimeToStruct is rarely used, because The NextTime approach is practiced in advisors.
Typically cached for interactive products - determining time data under the mouse cursor. Those. The niche is not for a regular MQ Tester, but for a GUI, where the speed of TimeToStruct is second nature.
In reality, TimeToStruct is rarely used
I agree in general, but just the other day there was a task when TimeToStruct was used about 1000 times per second. A small thing, of course, but a nice little thing.