Questions from Beginners MQL5 MT5 MetaTrader 5 - page 966

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
Better still, clearly state what you want to achieve. I will probably show you a complete example.
What does this mean?
Read the Help: Optimisation modes.
Can you tell me please. How is an Expert Advisor re-initialized (for example, when executing ChartSetSymbolPeriod() )?
Is it correct to understand that reinitialization actually concerns only local variables in functions.
And what are the rules for global variables?
According to my observation, global variables inherit their values after OnDeinit - OnInit pass.
It should be so?
Can you tell me please. How is an Expert Advisor re-initialized (for example, when executing ChartSetSymbolPeriod() )?
Is it correct to understand that reinitialization actually concerns only local variables in functions.
And what are the rules for global variables?
According to my observation, global variables inherit their values after OnDeinit - OnInit pass.
It should be so?
Thank you.
The trouble with this mql is that it's intuitively unpredictable:
- not about the global-local distinction
- nor in the matter of differences between indicators and experts.
(the last copy of the correspondence with SD was also very useful in the above discussion at the link, thanks)
Can someone tell me how to set windows in the terminal programmatically? (Width, height and positioning).
Disconnect the window from the terminal and then try (I have not personally tried to set these properties yet):
MQL5: Added new properties for binding/detaching charts to/from the main window of the terminal and controlling their position.
Added new properties inENUM_CHART_PROPERTY_INTEGERenumeration:
AddedtoENUM_TERMINAL_INFO_INTEGER enumeration:
Detach the window from the terminal and then try (I haven't personally set these properties yet):
Thanks.
I have tried it. It works so-so (in particular, the window is minimized, when you minimize the terminal, it disappears, but when you unfold the screen, the previously minimized one opens to its size, every time you need to minimize it again, so it doesn't loom).
But that's not it. I don't need to detach the graphs, I just need to tessellate them, for example, or whatever else I see fit. There doesn't seem to be such a thing in MT5...
(the general idea is that in multicurrency Expert Advisor I need to view trades by predefined symbols;
there is a button that opens all charts on which orders and positions are open;
but windows open uncontrollable size and I have to manually arrange them on screen;
and I, lazy, would like my intellectually unattainable program to do it :)
Thank you.
I've tried it. It works so-so (in particular, the window is minimised, disappears when you minimise the terminal, but when you unfold the screen the previously minimised one opens to its size, every time you have to minimise it again so it doesn't loom).
But that's not it. I don't need to detach the graphs, I just need to tessellate them or something else as I see fit. There seems to be no such thing in MT5.
(the general idea is that in a multi-currency Expert Advisor one needs to view trades by predefined symbols;
there is a button opening all the charts with open orders and positions;
but the windows open uncontrollably large and I have to manually arrange them on the screen;
and I, being lazy, would like my intellectually unattainable program to do that :)
How about using WinAPI? Especially, MQL5 has introduced support for
MQL5: Support for WinAPI functions has been added to the standard library. Now, to use the functions of the operating system in MQL5 programs, you do not need to manually import libraries and describe function signatures. The header file from the MQL5\Include\WinAPI directory is sufficient.
WinAPI functions are grouped in separate files according to their purposes:
Binding works only with 64-bit architecture.
How about using WinAPI?
I suppose. But that's where my expertise ends.
It would be nice if there was a certainty for whom mql5 - for clever or for beautiful. I'm far from smart.
To use the API, I need a description and examples. Without it the gold mountain of libraries will remain unused to me.
- I'm not able and I won't look through thousands of lines of uncommented code hoping to catch something useful.