Features of the mql5 language, subtleties and tricks - page 224

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
What does that mean? Can you expand on that?
Andrew, this is the wrong thread. You need to find out in another thread.
Andrew, this is the wrong thread. You should find out such things in another thread.
Anybody have any thoughts?
Maybe try this?
Anybody have any thoughts?
Andrei, please look at the article (Section 2. Modes in MQL5), it may help )).
What does that mean? Can you expand on that?
It may seem to some that this is not the right branch, but it's simple:
if ChartID gives reasonable - it means that there is a place for it in GUI and it works in it you can draw, so either VISUAL_TESTER or just work in terminal.
If ChartGetInteger(ChartID(),CHART_WINDOW_HANDLE) returns invalid handle, then we are inside the tester. (Or maybe MQ VPS - I haven't touched it, I don't know).
This may seem like the wrong thread to some, but it's simple:
if ChartID gives reasonable - it means there is a place for it in GUI and it works in it you can draw, so either VISUAL_TESTER or just work in terminal.
If ChartGetInteger(ChartID(),CHART_WINDOW_HANDLE) returns invalid handle, then we are inside the tester. (Or maybe MQ VPS - I haven't touched it, I don't know).
The tester also has a chart, albeit a virtual one, so this is a dead end.
The tester also has a chart, albeit a virtual one, so it's a dead end path
I answered you in that thread (the questions are the same).
Anybody have any thoughts?
I answered you in that thread (same question).
Well, you have all the rights. Delete where it's off-topic... What's the problem?
What does that mean? Can you expand on that?
I had time to check: yes, the trick failed, ChartID()=12345 for visual and non-visual...(such a constant ChartID of the tester).
But ChartGetInteger(ChartID(),CHART_WIDTH_IN_PIXELS) gives an honest -1 if there is no screen. You can use it to determine the physics - whether there is a place to output something or not. Because there are a lot of flags, and we don't know what is there on VPS at all