Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1162
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
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
_Symbol
I 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.