Place a chart object with click

Created at 08 Sep 2024, 02:33
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CT

ctid4921325

Joined 18.11.2023

Place a chart object with click
08 Sep 2024, 02:33


Hi there, is there a way I can place a horizontal line by clicking on the chart. Right now I have  buttons that I use to place horizontal lines for various purposes, but the line I place is placed at about ½ the visible price range.  I'd rather, having clicked the button, be able to click the chart and have my line appear there. Is this possible?


@ctid4921325
Replies

PanagiotisCharalampous
09 Sep 2024, 06:32

Hi there,

You can use the MouseDown event to achieve this.

Best regards,

Panagiotis


@PanagiotisCharalampous