Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1498
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
Guys. Help me bolt an alert to the indicator.
to the indicators in which:
int start()
int init()
int deinit()
screwing something on isn't respecting yourself or others...
take the trouble to redesign to modern interfaces
If you change a global variable in a function, it will change. But this is a dangerous way of programming, because in the code, as it grows, there will be unobvious assignments in different functions of the program.
There's a main function in the program, that's where you do the global variable assignment. And in other functions, do it this way:
Or like this:
I agree that in voluminous code, it's easy to miss the point of an unwanted variable change (X). From this point of view, calling the main function each time you need to find out what's wrong with X is correct. But here is the question. If the main function calculates and outputs several different values (X, Y, Z) and is quite large, while X is used repeatedly in the course of the program, won't this approach excessively consume computing power? I.e. in order to get X, we repeatedly run a whole block where we also recalculate Y and Z in addition to X , which, say, was needed only once. Therefore, if the algorithm contains sequential change and overwrite of X from one function to another, it may be more complicated for a programmer (requires more attention and checks for errors), but then it is easier for the machine.
to the indicators in which:
int start()
int init()
int deinit()
screwing something on isn't respecting yourself or others...
Take the trouble to redesign to modern interfaces
So show me how it must look like on modern interfaces. The man apparently has never coded (otherwise he would have figured out the Alert without us). He just found the code somewhere, brought it here and wants an alert.
But here is the question. If the main function calculates and outputs several different values (X, Y, Z) and is quite large, and X is used many times along the way
Show us how it should look like on modern interfaces. It seems that the man has never programmed (otherwise he would have figured out the alert without us). He just found the code somewhere, brought it here and wants an alert.
Where do you get such "indicators" and "advisors" from? but if you melt down, the source won't run out...
there's no such thing on the site for a long time.
If the maker of these indicators has not succeeded, the market has moved to the new MQL5(4). They will help and explain things there, and it will be useful to everyone.
or go to freelance
but if molasses
From the word molasses, is it?
Guys, help me attach an alert to the indicator.
Guys. help to fasten the alert to the indicator.
screwed - I do not remember the code from the code base and the author - to whom I need to say thanks! - if he recognizes his code - I say thank you to him!
and here is your indicator - I did it - only on MT5 with Alert.
How was it sucked in? Like this?