Differentiation of chart events

 
1. When a TrendLine is deleted by selecting and pressing the [DEL] key, MT5 puts a CHARTEVENT_OBJECT_DELETE into the queue.

2. When a TrendLine line is deleted by program using  "ObjectDelete()", MT5 puts a CHARTEVENT_OBJECT_DELETE into the queue.

While processing the queue in OnChartEvent(CHARTEVENT_OBJECT_DELETE) , do I have a chance to distinguish whether the line was deleted by 1. or 2. ?

Thanks
Willbur
 
I got it. Let me know if you need the solution.
Reason: