struct input_rule
{
int candle_number; // candle one order numberint number; // rule number bool enable; // rule enable status
ENUM_DIR_TYPE mode; // trade direction
ENUM_CANDLE_TYPE candle1_type; // candle 1 type
ENUM_CANDLE_TYPE candle2_type; // candle 2 type
...
}
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.
An array of structures, I wrote...
Show the whole function you are trying to return something from
Show the whole function you are trying to return something from
I wrote the function in a class above. Doesn't compile with errors invalid array access.
I wrote the function in a class above. Doesn't compile with errors invalid array access.
What is the data type?
What is the data type?
This is my structure.
This is my structure.
And you want to copy an array of such structures into another array of such structures?
And you want to copy an array of such structures to another array of such structures?
Copy it, return it, or get it in any other way by calling the appropriate class method.
Copy, return or otherwise retrieve it by calling the appropriate class method.
So, you have an array inside the class and you want to access it externally, right?
So you have an array inside a class, and you want to access it externally, right?
Yes.
Yes.
Have you tried that?
input_rule GetRulesArray() { return &rules; }Have you tried that?
Tried it - it doesn't compile