int horizontal= 1; double vertical = Close[1+horizontal] - Close[1];
Scale is irrelevant and meaning less. Change the size of the window will change the vertical moment in pixels. Change the size of the bars, changes the pixels per bar.
You can find out the vertical and horizontal with
double bot = WindowPriceMin(), // Scroll top = WindowPriceMax(); // bug int iVisible = WindowFirstVisibleBar(), // Chart Shift min 0 iVisEnd = MathMaxI(iVisible-WindowBarsPerChart(), 0);
and you can find out the pixel area of the chart starting with WindowHandle() and winAPI.
But those are still meaningless.

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
Hi,
If you push F8 and go to the Common tab, you can check the box to Scale fix One to One. This means that your chart will no longer automatically scale to the best fit of your monitor, but simply show the movement in an objective way. Now, if you want to relate the number of pips (vertical distance) to the horizontal distance that price has traveled (1 bar per time period of your currently chosen chart), how do you do that? I mean, expressing the horizontal movement in function of the vertical movement? If at 1-on-1 charts the pips move up 2 inches, and the bar-per-bar change is 0.5 inches, then one would say that the ratio is 1 to 4, but how do you do that in an real MT4 terminal?