How to draw objects inside indicator's window?

 

Hello people,

I've looked around in forums and documentation, and I cannot figure how to know my indicator's window identifier.

I  want to draw there some objects (buttons + text) and I am kind of stuck.

I'm still looking around, but I cannot find any function to retrieve my indicator's id, or chart identifier for it.

Help? 

Mihai. 

Documentation on MQL5: Chart Operations / ChartID
  • www.mql5.com
Chart Operations / ChartID - Documentation on MQL5
 

Have you tried to use function ChartWindowFind?

It helps you to find a subwindow number where your indicator placed.

 
alexvd:

Have you tried to use function ChartWindowFind?

It helps you to find a subwindow number where your indicator placed.

Thank you very much Alex. 

I was not even aware of the function. I couldn't find it actually. I'll try it right now.