It doesn't suit me, I've managed to cram dozens of gigabytes of test variants.
Maybe there is another way to make the ...MQL5\Include folder shared?
Then you should think about creating a single library for all your projects and place it in the repository.
And all the rest could be stored internally, if necessary.
Renat:
In my opinion, this is an excellent solution with MQL5 Storage.
Personally, I've managed to synchronize the entire MQL5 folder on several computers, and I've stopped losing sources. There are no particular restrictions on storing data in the repository.
Can you tell me how to transfer a quote, for example, low and high to an OpenCL buffer with the float type? The only way to do this is to manually transfer it to a float array.
There is a need to access an element of an object, by a sequential number. For example:
struct Struct
{
int j;
int k;
int l;
};
Is it possible to access the second element? After some time, the element may swap places, but we would still be accessing the second element. I'm talking about calling at compile time (not at runtime), i.e. by constant . I'm writing in C++.
There is a need to access an element of an object, by a sequential number. For example:
Is it possible to get the second element to be accessed? After some time, the elements may swap, but we would still be accessing the second element. I'm talking about referencing at compile time (not at runtime), i.e. by constant . I'm writing in C++.
If I understood the question correctly, I would do this:
struct Struct
{
int array[3];
};
Struct struct_var;
According to the documentation, arrays cannot be used as input parameters. That is, as I understand it, this is not allowed:
input int MAPer[0] = 12; // Период МА для пары 0
input int MAPer[1] = 14; // Период МА для пары 1
Such input parameters are very much needed for multicurrency, where the same strategy is used on several pairs but with different input parameters. What should I do in such a case? Maybe there is something nicer than this:
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
It doesn't suit me, I've managed to cram dozens of gigabytes of test variants.
Maybe there is another way to make the ...MQL5\Include folder shared?
Then you should think about creating a single library for all your projects and place it in the repository.
And all the rest could be stored internally, if necessary.
In my opinion, this is an excellent solution with MQL5 Storage.
Personally, I've managed to synchronize the entire MQL5 folder on several computers, and I've stopped losing sources. There are no particular restrictions on storing data in the repository.
I think it's the only true variant.
Have a look at the topics:
Will you do name-sharing for projects?
Good afternoon!
There is a need to access an element of an object, by a sequential number. For example:
Is it possible to access the second element? After some time, the element may swap places, but we would still be accessing the second element. I'm talking about calling at compile time (not at runtime), i.e. by constant . I'm writing in C++.Good afternoon!
There is a need to access an element of an object, by a sequential number. For example:
Is it possible to get the second element to be accessed? After some time, the elements may swap, but we would still be accessing the second element. I'm talking about referencing at compile time (not at runtime), i.e. by constant . I'm writing in C++.If I understood the question correctly, I would do this:
And then knock: struct_var.array[1]
According to the documentation, arrays cannot be used as input parameters. That is, as I understand it, this is not allowed:
input int MAPer[0] = 12; // Период МА для пары 0
input int MAPer[1] = 14; // Период МА для пары 1
Such input parameters are very much needed for multicurrency, where the same strategy is used on several pairs but with different input parameters. What should I do in such a case? Maybe there is something nicer than this:
input int MAPer_0 = 12; // Период МА для пары 0
input int MAPer_1 = 14; // Период МА для пары 1
int MAPer[NumSymb];
MAPer[0]=MAPer_0;
MAPer[1]=MAPer_1;
According to the documentation, arrays cannot be used as input parameters. That is, as I understand it, this is not allowed:
Use the lines.
If I understood the question correctly, I would do it like this:
And then knock: struct_var.array[1]
It's a bit more confusing, the structure is of this form:
struct Struct
{
int var;
double var2;
...
};
everything is already implemented and I don't want to have to redo it. But I've already found the way out, thanks for the answer.