Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1169
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
it doesn't get to the calculations
here's the initialization
And here's the test condition.
THANK YOU!!!!!))))) I Tf=false on purpose and......Forget . Oops
Everything works.First, we need to decide on the number of values in the second dimension of the future array. Already now we can see that the number of elements is not equal. Probably, we should take maximal one and fill with zeros or -1, for example, where extra ones remain. And it wouldn't hurt to define the first dimension beforehand if it is known. And then in the nested loop take L1 and write everything you need into the array, then the second iteration of the outer loop writes into the next index everything in L2 and so on.
And quite properly, it's better to stick it in a structure.
Then the array will be able to change dimension in the first and in the second dimension. That is, it will be a one-dimensional array in a one-dimensional array.Thanks for the vector.
I suddenly got an order in which it was also more profitable to write the parameters into a string and use it to create an array of parameters. I had to turn theory into practice. Well, I extended my task to your task. Here is an example using structures. Only in your examples at the end of the list of values you need to remove the delimiter character ";"
I suddenly got an order in which it was also more profitable to write the parameters into a string and use it to create an array of parameters. I had to turn theory into practice. Well, I extended my task to your task. Here is an example using structures. Only in your examples at the end of the list of values you need to remove the delimiter character ";"
without checks, you can even go like this
Also an option. It turns out I haven't read all the documentation either.
Also an option. It turns out that I haven't read all the documentation either.
StringSplit is a cool thing, very convenient to parse delimited strings
Hi all. Help me insert a String type variable into the code. Thanks
Could you answer your own question?
or did you cut out a piece of code somewhere and can't use it? and you need to guess what's going on at least)))
write above
string s;
and replace <String> with s
but i don't think that's the way to go with this approach.
Could you answer your own question?
or did you cut out a piece of code somewhere and can't use it? and you need to guess what's going on at least)))
write above
and replace <String> with s
but i think this is not the solution with this approach
My indicator works, just extending.string s; has been added.
Ok, I'll get to it myself.