but you should know that there are 4 ways to call or specify the current character
Symbol_SymbolSymbol()
и 0
the first 2 are useless (no one wants to store a character in a predefined variable and change it), and the help is interesting, I've flipped the whole forum 10 times in my time, all options are found in the MQ code and representatives)
There is no difference. When compiling, everything comes together in a single call. That's why it's better to do everything through functions.
If it is entered, then there is a difference. Reading an initialized variable is always faster than reading a function. A function performs extra actions to return a value. A variable already contains that value.
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.
Thank you.
but you should know that there are 4 ways to call or specify the current character
the first 2 are useless (no one wants to store a character in a predefined variable and change it), and the help is interesting, I've flipped the whole forum 10 times in my time, all options are found in the MQ code and representatives)
but you should know that there are 4 ways to call or specify the current character
There are nuances in 2 cases, and the help is interesting, I turned the whole forum over 10 times in my time.
I always use predefined variables, like
_SymbolI always use predefined variables, like
do you think that's right?
do you think that's right?
Reading a variable, faster than a function.
Reading a variable, faster than a function.
specifically on symbols is not the right answer.
there are others like this
(unlikely to store a character in a predefined variable and change the character)
The _Symbol variable already stores the name of the current chart symbol, no need to assign a symbol name to it ))
Reading a variable, faster than a function.
There is no difference. When compiling, everything comes together in a single call. That's why it's better to do everything through functions.
The _Symbol variable already stores the symbol name of the current chart, no need to assign a symbol name to it ))
and if multicurrency or chart change
and if multicurrency
Then the function.
You forgot to mention that another function can also be used
Different tasks, different code.
There is no difference. When compiling, everything comes together in a single call. That's why it's better to do everything through functions.
If it is entered, then there is a difference.
Reading an initialized variable is always faster than reading a function.
A function performs extra actions to return a value.
A variable already contains that value.