Draggable horizontal line

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #251880 quote
    Bob Harris
    Participant
    Average

    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 quote
    JS
    Participant
    Senior

    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)…

    Bob Harris and Iván González thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Draggable horizontal line


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Bob Harris @bob_harris Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/27/2025
Status: Active
Attachments: No files
Logo Logo
Loading...