I am placing the same indicator on the same chart and drawing objects on each of the two indicators. I next want to identify which object(s) belows to each indicator. I can get the window number from each object by using the ObjectFind(name) function. This returns the window index. Great. But I can't get the index of the calling indicator.
I have used the following function; WindowFind(WindowExpertName())
WindowExpertName gets the name of the current function, but it has been placed two. So it always gets the first one, even when I the second one does the calling.
the indicator I included just calls the name and makes an alert message of the result of WindowFind(WindowExpertName()). Place this function on a chart twice and you will see that it give the same result.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I am placing the same indicator on the same chart and drawing objects on each of the two indicators. I next want to identify which object(s) belows to each indicator. I can get the window number from each object by using the ObjectFind(name) function. This returns the window index. Great. But I can't get the index of the calling indicator.
I have used the following function; WindowFind(WindowExpertName())
WindowExpertName gets the name of the current function, but it has been placed two. So it always gets the first one, even when I the second one does the calling.