From help: "To ensure that you get a non-repeating sequence, use MathSrand(GetTickCount()), since GetTickCount() has been increasing since the operating system started and will not be repeated for 49 days".
use a calculator to see how many attempts it takes to get the first repeated value (any of those previously generated) for rand()
Please, advise me where you can find basic information about dynamic two-dimensional array in MQL4. First of all, I am interested in how to create it. How to use it? What functions are applicable to it? Thank you.
Please, advise where you can find the basic information about dynamic two-dimensional array in MQL4. First of all, I am interested in how to create it. How to use it? What functions are applicable to it? Thank you.
CArray, and the like - you can make dynamic arrays of any dimension, changeable in any dimension.
Thank you for your help. But you give me a link to the information about dynamic arrays in MQL5. I am still mastering MQL4, or the code from MQL5 is also suitable forMQL4 with respect to dynamic arrays ? Thank you.
Thank you, Makar. I'm going to attach it to the EA and have a look at it.
Makar thanks Everything works just the way I wanted it to. Thank you!!!
I would like unwanted lines to be removed by themselves, let's say after 24 hours.
Thanks in advance!!!
I would like unnecessary lines to be deleted by themselves, let's say after 24 hours.
Thanks in advance!!!
From help:
"To ensure that you get a non-repeating sequence, use MathSrand(GetTickCount()), since GetTickCount() has been increasing since the operating system started and will not be repeated for 49 days".
use a calculator to see how many attempts it takes to get the first repeated value (any of those previously generated) for rand()
From my experience - don't write Cyrillic
Opening ECN MT4
Good day to you all!
Please, advise me where you can find basic information about dynamic two-dimensional array in MQL4. First of all, I am interested in how to create it. How to use it? What functions are applicable to it?
Thank you.
Good day to you all!
Please, advise where you can find the basic information about dynamic two-dimensional array in MQL4. First of all, I am interested in how to create it. How to use it? What functions are applicable to it?
Thank you.
Documentation Arrays
And the dynamics are only in the first dimension. The other dimensions are static.Documentation arrays
And dynamically only on the first dimension. The other dimensions are static.CArray, and the like - you can make dynamic arrays of any dimension, changeable in any dimension.
CArray, and the like - you can make dynamic arrays of any dimension, changeable in any dimension.
Thank you for your help. But you give me a link to the information about dynamic arrays in MQL5. I am still mastering MQL4, or the code from MQL5 is also suitable forMQL4 with respect to dynamic arrays ?
Thank you.