
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
Alternatively: create a new thread in the Trading Systems section with a link to the existing one and continue there.
Thanks. Thinking about... the same thing... like part 1, part 2.
Maybe someone more worthy would like to do it... :-)
Unfortunately, there is no such option.
Question for macro substitution experts...
In the script:
I need to substitute plot1, plot2 and plot3 instead of macr(i) in the for loop... According to my version, the substitution is as ploti, which is not needed at all :-(
Thanks in advance!...
I need plot1, plot2 and plot3 to be substituted for macr(i) in the for loop... According to my version, the substitution goes as ploti, which is not needed at all :-(
Thanks in advance!Question. In the article Migration from MQL4 to MQL5, the "18. Access to Timeseries" in the "MQL5" column, the author uses a dimensionless array Arr[] inside the functions. I see that the function always returns only one value of the zero element of the array. Does anyone know if there is some hidden meaning in using a dimensionless array instead of Arr[1]? They write in the Help that the number of elements should be specified knowing the array size.
There are.
In MQL5, this array is passed as an argument to functions that manage its size according to their own logic,
namely, they redistribute the size automatically depending on the passed parameters start point and amount of data to be copied.
If you pass a static array as an argument to the CopyXXX function, you will get an error.
ZZZ The code checks the size of the array and then makes a decision depending on the size, so the size is most likely not static.
In external EA parameters I use parameter R only = 1 or 2 or 12 or 13 (general simple example). You can check this parameter in OnInit() and report an error if a citizen enters a different number by mistake. However, there are ENUM_... types for input. (eg. ENUM_MA_METHOD), when we can simply select a value from the expanded window.
Question. Is there such an option, where it is possible to make such a construction, so that in external parameters by analogy with the ENUM_... appear only what the programmer intended, without the need to check OnInit(). I haven't found it in the documentation. If not, the wish is to do such a thing.
Question. Is there an option where you can make such a construction, so that in external parameters by analogy with ENUM_... appear only what the programmer intended, without the need to check OnInit(). I haven't found it in the documentation. If you don't find it, please make such a thing.