Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1080

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
The best recommendation here is to read the help more often.
It specifies the properties that can be retrieved/set for the graph.
In particular - scrolling the graph with the left mouse button.
This is the place in the documentation that I have read.
When CHART_EVENT_MOUSE_MOVE = 1, the graph receives mouse movement messages, but when CHART_EVENT_MOUSE_MOVE = 0, it does not. This is understandable.
But it is not relevant to my question... No matter what value is set for CHART_EVENT_MOUSE_MOVE, I always have a possibility to "move" the chart with AUTOSCROLL turned off
"shift" the graph in the window to the past (in terms of time) simply by pressing the left mouse button and without releasing the button move the mouse to the right.
This shifts the graph in the window ALWAYS.
However, if I press Ctrl+F (to call Crosshair) - then when I press the left mouse button, hold it down and move the graph, I will see the beam
the tooltip will show data on the mouse movement and the price of the level where the mouse pointer is located.
And most importantly - the graph itself at that moment will not move in the window.
That's how to achieve this effect without enabling Crosshair, that's what I'm asking...
P.S. I can take a video of the screen and show you how it looks.
I have read this place in the documentation.
When CHART_EVENT_MOUSE_MOVE = 1, the chart receives messages about mouse moving, but if CHART_EVENT_MOUSE_MOVE = 0, it does not. This is understandable.
But it is not relevant to my question... No matter what value is set for CHART_EVENT_MOUSE_MOVE, I always have a possibility to "move" the chart with AUTOSCROLL turned off
"shift" the graph in the window to the past (in terms of time) simply by pressing the left mouse button and without releasing the button move the mouse to the right.
This shifts the graph in the window ALWAYS.
However, if I press Ctrl+F (to call Crosshair) - then when I press the left mouse button, hold it down and move the graph, I will see the beam
the tooltip will show data on mouse movement and the price of the level where the mouse pointer is located.
And most importantly - the graph itself at that moment will not move in the window.
That's how to achieve this effect without switching Crosshair on, that's what I'm asking...
P.S. I can take a video of the screen and show you what it looks like.
Can the fields of a structure be accessed using indexing, i.e. as a one-dimensional array? Is it possible to create an array of structure fields?
So the idea is this. There is a structure
Then, when passing any structure to a function, we have to address each element by name separately.
qr.qw qr.q51e, etc. Of course, you won't be able to put it into a loop and process it with a single thread. I want to create an array of fields that will store these items as follows
As a result, we can address these items through indexing and, of course, the second structure can be put into a loop and handle qw qe through the loop.
Is it possible to do so, I've seen such entries on the Internet some time ago, but maybe I've misunderstood something because I've lost the site? Maybe typedef enum union macros can help?
Didn't I answer that?
I don't move anything on the chart. If I setCHART_EVENT_MOUSE_MOVE = 0 it doesn't help - the chart can still be moved.
I don't knowhow to disable ChartNavigate processing for the chart. I didn't find it in documentation either.
At the same time "crosshair" somehow copes with this case. That's why I'm asking - how?
You answer me - just set the correct value forCHART_EVENT_MOUSE_MOVE. I tried it - it does not help.
With any value ofCHART_EVENT_MOUSE_MOVE, you can still move the graph with the mouse back and forth in time by simply holding down the left mouse button on the graph and moving the mouse.
At the same time, depending on the direction of moving the mouse horizontally, the chart will shift in the window If I move the mouse to the right, the chart will shift to the left (to the past history),
and if I move the mouse to the left, the chart will shift to the future until the current bar appears. After that, an attempt to shift it to the left with the mouse will not work. But this is understandable.
If Imove the chart in the window to some date in the past using ChartNavigate, what should I do to ensure that under no circumstances (no manipulations with clicks and mouse movements on the chart), the part of the chart which I see will not be shifted? What do I have to do?
I don't move anything on the chart. If I set CHART_EVENT_MOUSE_MOVE = 0 it doesn't help - the chart can still be moved.
I don't know how to disable ChartNavigate processing for the chart. I haven't found it in documentation either.
This is what I did NOT get:
vebster005:
Добрый день, исправьте пожалуйста индикатор, нужно вывести серверное время через кнопку, при условии что кнопка в исходном положении должна показывать
Вот что у меня НЕ получилось:
what exactly did not work ? i.e. in your own words what you wanted to do...
a button is made, when you press it, it runs off the screen (if it's not wide)
why are you not happy with the result ?
What exactly have you failed to do? i.e. in your own words what you wanted to do...
a button is made, when you press it, it runs off the screen (if it's not wide)
What is wrong with the result?
the result is that when you clicked on the button the time was hidden and then reappeared because it is updated because of the fact that in the calculator
What exactly have you failed to do? i.e. in your own words what you wanted to do...
a button is made, when you press it, it runs off the screen (if it's not wide)
why are you not happy with the result ?
Could you make it work for seconds and everything else, like in the terminal, and you can disable the button
because when I disable the button (remove it from the screen) the time reappears
Could you get the result that seconds and everything else works, like in the terminal, and you can disable the button
because when I disable the button (remove it from the screen) the time reappears
There are a lot of people here who can achieve almost any results.
It is important that you yourself try to achieve them, rather than begging others to do it for you. They are always willing to help, but to help, not to do it for you.