Errors, bugs, questions - page 2194

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
Serious approach))
Well then, on the one you want to screen, run a small script on it once, which gives id in a global variable (preferably a temporary global variable).
And your script screens by id.
Clever move!
Thank you!Even if you calculate the exact width of the screen in pixels, the screen will partially cover the price column.
And on different screen resolutions it is different, with me (1280x1024) from 50 to 60 depending on the number of digits of the currency. On the other screen will be different.
That's how to figure out what the width of the column, to add these pixels to the width of the screen? (open in the screenshot what the column has closed)
Hi from fxsaber:
Greetings from fxsaber:
The case beats the master!!!
Cool!
Hello from fxsaber:
The code is certainly very interesting, but it turns out it doesn't solve the problem...
The problem is that it's not clear how to get a universal function (that works with any zoom and different scale widths) that can be used to determine the number of pixels up to and including a specific bar.
Come on. All the clues are there.
Bar width only accepts the values 1,2,4,8,16,32
Oddly, the CHART_POINTS_PER_BAR identifier does not work.
But the width of the bar in pixels can easily be calculated:
The left bar is always drawn from the centre, the right bar as desired. Therefore, the origin of coordinates is at zero (left).Come on. All the picks are here.
Bar width only accepts values of 1,2,4,8,16,32
Oddly, the CHART_POINTS_PER_BAR identifier does not work.
But the width of the bar in pixels can easily be calculated:
The left bar is always drawn from the centre, the right bar as desired. Therefore, the origin of coordinates is at zero (left).This is a theory, so far the best (more accurate) version is this:
but it also fails in a couple of ways.
This is a theory, so far the best (more accurate) option is this:
but it also fails in pairs.
:))
I need to make a screenshot from date A to date B inclusive. And the function should work correctly at any zoom.
Based on the screenshot I made a separate thread where I described the problem and posted the code I have - please help!
https://www.mql5.com/ru/forum/237291