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
'"[R]eleased into the public domain" means total freedom─anytime, anywhere, and for everyone.
High-performance time-handling functions applicable to the entire MQL5 date and time range (from 1 January 1970 to 31 December 3000):
(Based on the Neri–Schneider calendar conversion algorithm: see here)
The attached script file contains the source code and comprehensive tests.
Implemented in build 6002, available on MetaQuotes-Demo
We even managed to beat it in the first instance.
Thanks for the example!
Implemented in build 6002, available on MetaQuotes-Demo
We even overtook them in the first instance.
Thanks for the example!
Impressive!
Thank you.
Implemented in build 6002
Implemented in build 6002, available on MetaQuotes-Demo
They even overtook us in the first instance.
Thanks for the example!
My TimeToStruct is faster!
I use unsigned types to optimise division and modulo operations as much as possible (here).
Also, I calculate the modulo time using subtraction:
The on-point language is:
There is a principle of legal interpretation, expressio unius est exclusio alterius, meaning that the expression of one thing is the exclusion of another. Therefore, the complete waiver that you have already received directly from the creator of the work authorizes you to do all things personal and commercial. This is the case even though the method of authorization is not discussed in that document. Again, "public domain" thermonuclearly destroyed all IP protection─including that of the Algo Forge.
My TimeToStruct is faster!
I use unsigned types to optimise division and modulo operations as much as possible (here).
Also, I calculate the modulo time using subtraction:
Furthermore, the test produces random time values.
I think it is more likely that the values will be sequential.
If we add a parameter check to TimeToStructFast and modify the test code,
the result on the 6002 would be as follows
I believe it would be more appropriate to amend the TimeToStruct contract and add a separate function to validate the time. Since only the developer (the user) knows the quality of the source data and the need to validate the values.
Yes, but your version does not check the value and always returns true.
A forum on trading, automated trading systems and the testing of trading strategies
Features of the MQL5 language, nuances and techniques
Ilyas, 14 July 2026 08:54
Why isn’t that right?