Question re: Object Dragging
Created at 29 Nov 2023, 18:14
Question re: Object Dragging
29 Nov 2023, 18:14
Hi guys,
I'm looking to get some information re: dragging objects in cTrader. More specifically, i'd like my cBot to recognise that i've dragged a horizontal line from position A to position B.
Can anyone recommend anything? I've tried Chart.DragStart and Chart.DragEnd, but i don't believe this is what i'm looking for. I want to monitor a specific object, in this case a horizontal line.
Any advice is appreciated.
Thanks,
firemyst
03 Dec 2023, 11:28 ( Updated at: 04 Dec 2023, 08:32 )
_
First of all, you'd have to register an event that the chart has been updated:
Chart.ObjectsUpdated += botHorizontalLineUpdated;
Define the method and do what you need:
@firemyst