fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Drag Line and Set Value

    Questions & Answers
    2
    3
    513
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bravowhisky last edited by

      I am trying to create an EA that allow me to drag a horizontal line on the chart to set a target price, I have gone through the blocks and does not seem to be able to find one that allow me to do that.

      The EA will start by drawing a horizontal line default current bid price+100. I am then able to drag the line to other value, and this will change the value of a variable.

      Can this be done?

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Why? In MetaTrader 4 you can now modify stop-loss and take-profit only by dragging 😮

        Otherwise the horizontal line itself holds a value - the price where it is placed. Yes, you can draw objects and then get information from them: http://prntscr.com/6zv94s

        1 Reply Last reply Reply Quote 0
        • B
          bravowhisky last edited by

          Just found out that I need to select the line by double-clicking it or set the "Selected" in the Draw Line properties before i can drag the line.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          L
          A

          9
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors