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