Questions from Beginners MQL4 MT4 MetaTrader 4 - page 249
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
The point is that operators can be translated into assembler without using functions, by simple processor commands - these are the operators.
What is more complex, what requires calling complex procedures is a function.
about the gist, a function is a CALL in assembler and it's a hardware implementation that saves the sec address on the stack, then the function parameters are programmatically passed on the stack, local function variables are also allocated on the stack....
i.e. a function call is a certain sequence of actions, tied to the language and hardware conventions of the PC
And operators... to be honest, I learned more from Wiki now than I did before the discussion
well, if to get to the point, function is CALL in assembler and it is hardware implementation, which saves secant address on stack, then function parameters are programmatically transferred to stack, local function variables are also allocated on stack....
i.e. a function call is a certain sequence of actions, tied to the language and hardware conventions of the PC
and operators..., to be honest, I learned more from the wiki now than before the discussion
CALL is a call (operator), not the function itself.
i.e. a function is a large number of operators)
CALL is a call (operator), not the function itself.
i.e. a function is a large number of operators)
and if there is only one operator, then it is not a function?
and if there is one operator, then it is not a function?
The question was about "if" and "alert".
why is the first an operator and the second a function?
The word "alert" itself is also an operator - but it's a word that calls a function)
and the word "if" does not call a function.
function is many words (operators)
From the answer of Maxim and Taras I can conclude that the terminological apparatus in the language is not strict and there are assumptions, calling some operators as functions. Based on the answer that an operator is one word and a function has many words, it also becomes unclear that the same "if" operator can have many words/actions in regular and curly brackets.
Gentlemen, thank you for your answers, the discussion started. Unfortunately I can't understand most of it, because you use deep terms which I haven't encountered in the textbook.
From the answer of Maxim and Taras I can conclude that the terminology in the language is not strict and there are assumptions, calling some operators as functions. Based on the answer that an operator is one word and a function has many words, it also becomes unclear that the same "if" operator can have many words/actions in regular and curly brackets.
a function is a subprogram.
an operator is a program word.
A function is made so that you don't have to write many identical operators each time, and call it many times.
Calling a function to execute a single operator makes no sense, because it can be done at once.
ps. Alert is a function (subprogram) written by the developers so that everyone can use it.
a function is a subprogram.
an operator is a program word.
A function is made so that you don't have to write many identical operators each time, and call it many times.
Calling a function to execute a single operator makes no sense, because it can be done at once.
ps. Alert is a function (subroutine) written by the developers for everyone to use.
Exactly, Alert has a description that's hidden as a feature of the function. Reread the section, noticed that.
Thanks for the clarification, I think there is no more dissonance in my head on this issue
The idea is to change the ticket from which they should go upwards, after a certain profit has been set.
Go through i and substitute cnt
write down the correct way.