when switching windows, the CHARTEVENT_CHART_CHANGE event occurs, as the window size changes to the size of the previous "not all windows", i.e. as if the window was switched to this mode:
it is reasonable to monitor the window activity (ChartGetInteger(0, CHART_BRING_TO_TOP)) and turn off the bitmap generation (fill the canvas) to save CPU resources if the window is inactive
In the test indicator, the counter is saved in the kanvas resource.
it is useful to monitor window activity (ChartGetInteger(0, CHART_BRING_TO_TOP)) and turn bitmap generation off (fill canvas) to save CPU resources if the window is inactive
It is far from useful, in fact this property indicates that the window is in focus (or more precisely selected). For example, if the windows are tiled and the window is out of focus, then in your case the rendering of that window will stop.
Far from useful, in fact this property indicates that the window is in focus (or rather selected). For example, if the windows are tiled and the window is not in focus, then in your case the rendering of that window will stop.
Oh, right.
And as far as I understand - there is no way to find out if some window is expanded to the whole window?
Примеры работы с графиком - Константы графиков - Константы, перечисления и структуры - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
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, corrected.
Can't check because:
Compilation error.
It's crashing.
Forum on trading, automated trading systems and trading strategy testing
CHARTEVENT_CHART_CHANGE in MQL5
Ilyas, 2021.12.08 11:02
The vast majority of properties of a chart (the chart on which the Expert Advisor works) are requested bypassing the Expert Advisor message queue
Below is a list of properties, which in any case are requested via queue:
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
Nikolai Semko, 2021.12.26 11:17
What have I found out:
In the test indicator, the counter is saved in the kanvas resource.
It is far from useful, in fact this property indicates that the window is in focus (or more precisely selected). For example, if the windows are tiled and the window is out of focus, then in your case the rendering of that window will stop.
Far from useful, in fact this property indicates that the window is in focus (or rather selected). For example, if the windows are tiled and the window is not in focus, then in your case the rendering of that window will stop.
Ah, there is.
There is one. Look in the properties. It's not convenient for me from my mobile phone.
So Artem, are you saying that there is a way to find out if the window is visible?
CHART_IS_MAXIMIZED
Chart window unfolded.
bool r/o
CHART_IS_MINIMIZED
Chart_is_minimized chart window is minimized
bool r/o
is there a way to find out if a window is visible?
Here.