Drag and Drop function

 

Hi all ...

It's easy enough to create a horizontal line, but I would like to add the ability to drag and drop the line into a new position on the chart and return it's position.

I'm wish to use the returned value as a stop loss value.

Any ideas?

Regards ... G-fer.

 
G-fer:

Hi all ...

It's easy enough to create a horizontal line, but I would like to add the ability to drag and drop the line into a new position on the chart and return it's position.

I'm wish to use the returned value as a stop loss value.

Any ideas?

Regards ... G-fer.

Double click the line . . . click and drag it. Then get it's position using ObjectGet() with OBJPROP_PRICE1
 
RaptorUK:
Double click the line . . . click and drag it. Then get it's position using ObjectGet() with OBJPROP_PRICE1


OK ... thanks for the help, RaptorUK

G-fer

Reason: