fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. volkerhmb
    3. Best
    V
    • Profile
    • Following 0
    • Followers 1
    • Topics 6
    • Posts 8
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by volkerhmb

    • RE: Width of the Trading Window in Pixel

      I found it by myself:

      Create 2 variables:
      int height 0
      int width 0

      And 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.

      posted in Questions & Answers
      V
      volkerhmb
    • 1 / 1