![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
When solving the problem of forward and reverse transformation
pixel_Y -> quote, quote -> pixel_Y
the following question appears:
How to determine the values of maximum and minimum quotes visible on the vertical axis (marked in the figure ??? above and below), if we know High 1.8600, Low 1.8400 and the vertical size of the chart in pixels 500 ? The scale of the chart is automatic.
|------------------------------------------------| <- ???
|................................................|
|................................................|
|...........High 1.8600....................|
|................................................|
|................................................|
|................................................|
|................................................|
|................................................|
|................................................|
|............ Low 1.8400...................|
|................................................|
|................................................|
|------------------------------------------------| <- ???
To Slawa
Quotes from your previous answers:
By the way, 5% is not the price, but the number of pixels between the highest and lowest price.
The distances from Low to the bottom of the chart and from High to the top of the chart often do not coincide, especially on small periods.
How is that possible when the same number of pixels ( 5% ) is added from the top to High and from the bottom to Low ?
Disable OHLC in the graph properties and try again
Example: EURUSD M1
High 1.2739 Max visible value 1.2750 delta 0.0011
Low 1.2683 Min visible value 1.2680 delta 0.0003
These discrepancies are related to the vertical scale divisions. The number of visible scale divisions on the verical axis is always an integer.
OHLC is permanently disabled, I checked again.
These discrepancies are related to the vertical scale division value, always a multiple of 5 ( 5, 10, 15, 20 points ).
The number of visible scale divisions on the verical axis is always an integer.
I wish all interesting and successful projects, fewer bugs and more grateful users!
Programmer Day is an unofficial holiday of programmers celebrated on the 256th day of the year. The number 256 (28) is chosen because it is the number of numbers which can be expressed by one byte. The holiday falls on September 12 in leap years and on September 13 in non-leap years.
PS To Slawa ???
Immediately after compilation, we get 490 9104 9304.
After the first tick comes 490 409 9304.
FirstVisibleBar( ) correct ?