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
I have to say thanks. Now it's perfect. Top work.
Can you please answer 1 last question? What is faster, shifting left/right or shifting up/down? Thanks again.
Can you please answer 1 last question? What is faster, shifting left/right or shifting up/down? Thanks again.
Shifting up/down is slightly faster than shifting left/right. The entire shift takes about 0.3 milliseconds (1/3000th of a second) on an average computer of a standard FullHD screen window.
Shift up and down is slightly faster than left and right. The entire shift takes about 0.3 milliseconds (1/3000 of a second) on an average computer of a standard FullHD window.
Shifting down and up is slightly faster than left and right. The entire shift takes about 0.3 milliseconds (1/3000th of a second) on an average computer of a standard FullHD screen window.
Shift up and down is slightly faster than left and right. The entire shift takes about 0.3 milliseconds (1/3000 of a second) on an average computer of a standard FullHD window.
Thank you.
I got division by 0 a few times here, but after restarting the terminal it doesn't reproduce )
I got division by 0 a few times here, but after restarting the terminal it doesn't reproduce )
strange, I have never had this happen.
well then replace it like this for now:
No, it's better this way:
Unfortunately I can't update the version in QB. Something is broken once again.It would be interesting to see a universal solution with 4k and 8k monitors.
For example, we draw a rectangle, on it two buttons and two input fields. Buttons respectively objects in pixels.
If in pixels, then everything will be reduced by 2 times on 4k resolution, except for input fields.
But if you automatically translate the whole canvas x2, then at any screen resolution everything will look like on a normal monitor.
Another problem may be that some users go into the Windows settings and enlarge the font (which enlarges the standard input field).
Hence there is an even more universal solution to change the pixelisation of the canvas sheet with a multiplier depending on the font size.
The main condition is to draw as on a normal full HD monitor with the usual pixel dimensions. A solution is sought:
1. changing the sheet scale strictly x2 (at 4k), x4 (at 8k)
2. scaling the sheet with a dynamic multiplier tied to the font size.
What for. For dashboards, trading panels and other things that are drawn by objects in pixels.
It would be interesting to see a universal solution with 4k and 8k monitors.
For example, we draw a rectangle, on it two buttons and two input fields. Buttons respectively objects in pixels.
If they are in pixels, then everything will be reduced by 2 times on 4k resolution, except input fields.
But if you automatically translate the whole canvas x2, then at any screen resolution everything will look like on a normal monitor.
It may also be a problem that some users go into the Windows settings and increase the font (which increases the standard input field).
Hence the even more universal solution of changing the pixelisation of the kanvas sheet with a multiplier dependent on the font size.
The main condition is to draw as on a normal full HD monitor with the usual pixel dimensions. A solution is being sought:
1. changing the sheet scale strictly x2 (at 4k), x4 (at 8k)
2. scaling the sheet with a dynamic multiplier linked to the font size
What for. For dashboards, trading panels and other things that are drawn by objects in pixels.
The key to the solution is TERMINAL_SCREEN_DPI.
Yes, I found it in a search later. Thanks. There is an example here - https://www.mql5.com/en/docs/constants/environment_state/terminalstatus
latest version 1.12
Hi, very interesting, is it possible to convert a canvas into an object? I mean, for example, a canvas rectangle converted into a standard object rectangle to manage it.
Hi, very interesting, is it possible to convert a canvas into an object? I mean, for example, a canvas rectangle converted into a standard object rectangle to manage it.
If literally into a rectangular object, then no.
The canvas is also an object.
You can only "transform" a canvas object into a rectangle object programmatically so that its contents move and scale.
Visually, it can look exactly like a rectangular object with small squares in the corners to control it. But only a few programmers in this community will be able to implement this, including me.
If we are talking about the transformation of the internal contents of the rectangle. If we are talking about a simple filled or empty rectangle, any programmer can do it.