
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
Question: How do I set up what and where so that the signals don't come in? I have not subscribed to any of the signals.
+ and disable the signals tab in the terminal.
+ and disable the signals tab in the terminal.
Good afternoon!!!
I'm trying to figure out mql5 and rewrite EA from version 4, and I've run into a few issues:
1. The compiler writes 'cH' - undeclared identifier in the lineif(fcorH==1) countH=cH; although the variable is assigned. What is the catch?
2. the same story with another variable TimeRes:
But apart from that in the second example there is a warning"possible loss of data due to type conversion" in thedatetime line TimeRes=SupRes[y2][1];
An array on the global level is combined in this form - double SupRes[][2];
Please tell me what I should do to fix these errors and warnings.
Good afternoon!!!
I'm trying to figure out mql5 and rewrite EA from version 4, and I've run into a few issues:
1. The compiler writes 'cH' - undeclared identifier in theif(fcorH==1) countH=cH; though the variable is assigned. What is the catch?
2. the same story with the other variable TimeRes:
In both cases you are declaring a variable inside a condition/cycle, i.e. if the condition is not met, the variable is not defined.
Put the definition of variables at the beginning of the function or make them global.
But besides that, the second example causes the"possible loss of data due to type conversion" warning in thedatetime line TimeRes=SupRes[y2][1];
An array on a global level is combined in this form - double SupRes[][2];
Please advise what to do to fix these errors and warnings?
Or convert it to one type
Or initially define array and variable as the same type.In both cases you are declaring a variable inside a condition/cycle, i.e. if the condition is not met, the variable is not defined.
Put the variable definition at the beginning of the function or make it global.
Put the definition of variables, and the "possible use of uninitialized variable" warnings for cH and TimeRes variables came up.
What to do with it and what to do with"possible loss of data due to type conversion" warning in datetime line TimeRes=SupRes[y2][1]; ???
You have defined the variables and got a warning "possible use of uninitialised variable 'cH'".
This is good, but have you given it an initialisation value?
After all, it is reading the value by the code and if there is nothing there, what can it be read. Here it is a warning.Well, either reduce it to the same type of
or initially define array and variable as the same type.datetime TimeRes=(datetime)SupRes[y2][1];
And how can you define an array and a variable of the same type, if the array should contain levels as double and time of these levels as datetime?
In this case you will need 2 arrays: double and datetime.
And once the level is found and written to the first array, we need to get the time and write it to the second array.
Thank you, your tips have been helpful. Where can I read about (datetime)SupRes[y2][1]; type definitions?
Bringing in the types