Width of the Trading Window in Pixel
-
Hey!
Is it possible to get the Width-Value of the Trading Window in Pixel? If yes, how?
Thanks for the help!
-
@volkerhmb That sounds interesting. I'm also interested in this.
-
I found it by myself:
Create 2 variables:
int height 0
int width 0And then a Custom MQL Block:
height=ChartGetInteger(0,CHART_HEIGHT_IN_PIXELS,0)-1;
width=ChartGetInteger(0,CHART_WIDTH_IN_PIXELS,0)-1;
Print("Height: "+height+" Width: "+width);In MT4 and Windows 10 it needs a -1 to get the correct value. Others you have to test yourself.
-
@volkerhmb Interesting, Good find.
-
@volkerhmb Great! Thank you for sharing.