How to make an object created by ObjectCreate() selectable on chart

Hello

When I create an object using ObjectCreate() function, I can’t select it on the chart with the mouse click. No objects also appear in the Object List on the chart. In the MQL4 EA, I created a graphical interface in which trend lines were used to set levels. I could drag them freely with the mouse. How can I do it in MQL5?

Set OBJPROP_SELECTABLE to true and OBJPROP_HIDDEN to false

Thanks, that’s what it was about!

:slight_smile: