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
Will the global variables in the terminal work?
Hmmm... I must be missing something... We're talking about an indicator.
I've been playing around with the timeframes - it always comes out 11. What I need is 11, 12, 13...Dumping it into a file is fine, but it doesn't look good to me. If there's nothing else, I'll have to dump it to a file...
Look again at the link in my post. It doesn't talk about global program variables, but about global terminal variables (for some reason programmers like to overload not only functions, but terms as well).
It does not say about global variables of the program, but about global variables of the terminal (for some reason programmers like to overload not only the functions, but also the terms).
Global variables of the client terminal appeared in the triple (to be more exact, in the double; triple became when the custom indicators appeared). At that time there was no concept of "function" in MQL II. That is, in the abstraction of "MQL-program" the client terminal's global variables looked very harmonious. By the time they got to MQL4, it was too late to change the term.
How to save the last value of a variable when switching between timeframes? Well, a deinitialization-initialization process takes place, everything is dumped... while I want it to be saved.
It's not like I'm complaining.
Will there be any comments on my post above? By the way the account is not only in the wrong group or rather it really seems to have opened on the wrong server.
Will there be any comments on my post above? By the way the account is not only in the wrong group or rather it really seems to have opened on the wrong server.
5. MQL5: Исправлено поведение функции ArrayIsDynamic. При инициализации динамического массива списком инициализации функция ArrayIsDynamic определяла массив как статический.
How will the ArrayIsDynamic function define an array when a dynamic array is initialized with an initialization list?
Static.
An array that looks dynamic and has an initialization list is considered static with an automatically defined size.