Hello There ! How to use ChartObjectRemovedEventArgs

Created at 07 Apr 2021, 06:46
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!
IM

imrealfighter

Joined 09.11.2020

Hello There ! How to use ChartObjectRemovedEventArgs
07 Apr 2021, 06:46


Hello There Everyone ! 

I found on API reference that The Creator has built ChartObjectRemovedEventArgs class for us. 
but unfortunately, it doesn't have an example. 

so Could someone explain or give us some example on how to use it. how to call a method that we created when the object is deleted. 

thank you.


@imrealfighter
Replies

imrealfighter
07 Apr 2021, 07:31

RE:

imrealfighter said:

Hello There Everyone ! 

I found on API reference that The Creator has built ChartObjectRemovedEventArgs class for us. 
but unfortunately, it doesn't have an example. 

so Could someone explain or give us some example on how to use it. how to call a method that we created when the object is deleted. 

thank you.

(Problem Solved) !!


Hi There Again Everyone 

I just found out that we could use Chart.ObjectRemoved and add the Method that we want to execute when an object is deleted. !! 


Thank you.


@imrealfighter

amusleh
07 Apr 2021, 09:21

In case you still have problem with chart events or if you are reading this thread and you have similar issue here is a sample indicator:

 


@amusleh