Help Needed for Object Modification

Created at 04 Nov 2024, 16:12
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!
CS

csenge.attila

Joined 08.09.2021

Help Needed for Object Modification
04 Nov 2024, 16:12


Hi everyone,

I’m looking to create a simple application for modifying objects. Here’s my theory:

I want to select an element and, through that selection, obtain at least its name so that I can locate it later. Changing the object itself isn’t an issue for me; my main challenge lies in finding the object in the first place.

Could anyone provide guidance on how to achieve this in C#?

For context, I’m transitioning from MQL5 to C#, so any tips or examples would be greatly appreciated!

Thanks in advance!


@csenge.attila
Replies

PanagiotisCharalampous
05 Nov 2024, 08:35

Hi there,

Chart objects have a Name property. You can use it to identify them.

Best regards,

Panagiotis


@PanagiotisCharalampous

csenge.attila
30 Nov 2024, 08:59 ( Updated at: 30 Nov 2024, 15:12 )

RE: Help Needed for Object Modification

PanagiotisCharalampous said: 

Hi there,

Chart objects have a Name property. You can use it to identify them.

Best regards,

Panagiotis

Thank you for your answer, but i want to select objects by clicking on them. 


@csenge.attila

PanagiotisCharalampous
02 Dec 2024, 07:10

RE: RE: Help Needed for Object Modification

csenge.attila said: 

PanagiotisCharalampous said: 

Hi there,

Chart objects have a Name property. You can use it to identify them.

Best regards,

Panagiotis

Thank you for your answer, but i want to select objects by clicking on them. 

You can do this by listening to ObjectsSelectionChanged and then identifying the selected object by it's name


@PanagiotisCharalampous