[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 789

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
Dear programmers,
Please advise why operators are not executed when the condition is true, or rather they are executed, but in a random mode (e.g., repeatedly). There are no errors in the logs.
Please correct your code:
And never compare variables of type double for equality.
Correct your code:
And never compare variables of type double for equality.
Why can't you compare variables of type double for equality?
Why can't variables like double be compared for equality?
Why can't variables of type double be compared for equality?
In deinit, write to a global variable and in init, read the value of that variable, what's the problem?
My understanding is that a Global Variable is a variable declared outside of all functions. Global variables are initialised once before special functions are started.
That is, global variables are declared at the beginning of the program before the start function, including the one I want to pass to the program at the next start. Then, according to your suggestion, I fix the value of this variable in deinit. I understand, that at start of program before init function is executed, all global variables, which are described at the beginning of program, including variable I am interested in, will be re-initialized. And when it comes to function init, my variable, registered earlier, will be lost! Or am I wrong?
My understanding is that a Global Variable is a variable declared outside of all functions. Global variables are initialised once before special functions are started.
That is, global variables are declared at the beginning of the program before the start function, including the one I want to pass to the program at the next start. Then, according to your suggestion, I fix the value of this variable in deinit. I understand, that at start of program before init function is executed, all global variables, which are described at the beginning of program, including variable I am interested in, will be re-initialized. And when it comes to function init, my variable, registered earlier, will be lost! Or am I wrong?
which are stored separately from your program for a fortnight if not accessed, if memory serves me correctly...
they are used, for example, to transfer data between different EAs working simultaneously on the same terminal, etc...
It is the global variables of the terminal that you need.
No, he meant the GlobalVariable, which is stored in a file.
Yes, I meant the global terminal variables. There has already been this question in the private message, I answered it.
You have searched strangely for
string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)