How to check: Trendline by Angel is selected or is not selected on chart?
-
Dear,
how can I check the object 'Trendline by Angel' is selected or is not selected on chart or on init?
This block was build 'on init':

-
Such property exists - OBJPROP_SELECTED - but I think I never added it to this list - http://prntscr.com/i4nj0c
Anyway, if you know the name of the object, you can do this:
ObjectGetInteger(0, Buy_Trendline, OBJPROP_SELECTED)
screenshot: http://prntscr.com/i4njwdI think this will work, if the actual name of the object is really in this Buy_Trendline variable.