[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 385
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
Of course it can, if your variable is of the appropriate type
Good afternoon, I have a question about the initialization of arrays. It is written in the tutorial that: An array can only be initialised with constants of the appropriate type. One-dimensional and multidimensional arrays are initialized with a one-dimensional sequence of constants listed separated by commas. The sequence is surrounded by curly braces. In this case I am confused by the word "constant". Can't a certain array index be assigned a value via a variable.
assignment is possible, but not during initialisation.
That is, the situation:
allowed
And the situation
will cause an error
of course it can, if this variable of yours has the appropriate type
Then here's a question. a function has to pass two arrays of data by reference, for example:
When I release this function to work, the "experts" tab in the termenal messages such as:
It turns out that no value of the variable is passed to the array, although the latter has a value. What have I done wrong?The name of the plug-in file is: GetExstremumZZZPrice.mqh ???
It lies in the terminal folder Terminal_folder/experts/include ???
The name is the same, it was in the libraries folder, now it is in the includ folder, but the result is the same
Then here's a question. a function has to pass two arrays of data by reference, for example:
When I release this function to work, the "experts" tab in the thermal shows messages of this kind, e.g:
It turns out that no variable value is passed to the array, even though the latter has a value. What have I done wrong?Again, please explain the file operations. After writing some information to a file, is it possible to remove it from the file partially? Let's say you wrote some lines in a text document and then you can delete unnecessary lines or correct them using file operations functions?
You can.
Good afternoon, I have a question about the initialisation of arrays. In the tutorial it is written that: An array can be initialized only by constants of the appropriate type. One-dimensional and multidimensional arrays are initialized with a one-dimensional sequence of constants listed separated by commas. The sequence is surrounded by curly braces. In this case I am confused by the word "constant". Can't a certain array index be assigned a value via a variable.
So you have to distinguish between: initialize and assign.
What if you set the line for yesterday or tomorrow?
Thank you for your attention, but I do not understand your question. The line can be set for any date, and when the chart reaches it, the EA will trigger? Or maybe I do not understand something, if you don't mind explaining it to me.