Draggable horizontal line

Forums ProRealTime English forum ProBuilder support Draggable horizontal line

  • This topic has 1 reply, 2 voices, and was last updated 1 month ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #251880

    Hi.

     

    Is it possible to draw a line that is then draggable, so that i have a line that i can drag to where i want to place an order, a second line that i  can drag to where i want the stop loss loss to be and i can then code a display that calculates the lot size for a given risk percentage or risk amount

    Thanks

    #251884
    JS

    Hi,

    In PRT, drawn objects (such as DRAWHLINE, DRAWSEGMENT, …) are not interactive when created from code…

    What you can do instead is create two parameters (Entry and Stop) in your code…

    The code will draw two lines at those price levels and—if needed—calculate position size based on a chosen risk percentage…

    You then adjust the prices via the parameters window (not by dragging)…

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login