Features of the mql5 language, subtleties and tricks - page 272

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
https://www.mql5.com/en/forum/363210#comment_20862779
Doesn't this work anymore? I can't get an empty field in place of the variable name after Left Alt and typing 0160. Maybe there is an alternative?
I have a question about ArraySort.
Функции ArraySort и ArrayBSearch принимают в качестве параметра массив любой размерности, при этом сортировка и поиск происходят только по первому (нулевому) измерению.
Is the zero dimension the first (zero) column? What is a dimension of an array in general?
Is the zero dimension the first (zero) column? What is a dimension of an array in general?
One-dimensional array: array[ ];
Two-dimensional array: array[ ][ ];
Three-dimensional array array[ ][ ][ ][];
Thefirst, second, third dimensions are marked in colour.
I haven't heard about the zero dimension :)
S.F. Why did you have to delete it?
Haven't heard of zero-dimensionalisation :)
Itis written about zero measurement on the ArraySortpage.
Thefirst, second, third dimensions are marked with colour.
So the first dimension is the first line? What is a dimension?
. And why did you delete it?
I thought it was the wrong topic.
Wrong topic indeed. I wasn't paying attention.
In a piggy bank.
Highlighted the change. It is faster on the old CPU.
I made few changes to your code. Now, it looks cleaner and also executes faster.
I have made a few changes to your code. Now it looks cleaner and runs faster.
That's very good. I can't measure it yet.
Also, for real life usage (not in synthetic benchmarks) the once-a-day caching can be beneficial to skip re-calculations of the same year, month and day.
The cache is done once per day. Each new call to the function within the same day will just update "hh:mm:ss" fields.
Other fields "yyyy/mm/dd" will be returned as is, from the saved cache.
Of course, all fields have to be re-calculated when passing a 'time' value from a different date.
For the fastest replacement to the built-in TimeToStruct() function,
I suggest using this function :
The speed-up factor is approx. 4-5x (for the version without cache).