Drag Line and Set Value
-
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?
-
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
-
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!