The function returns the name of the corresponding object in the specified chart, in the specified subwindow, of the specified type.
[in] Chart identifier. 0 means the current chart.
[in] Ordinal number of the object according to the specified filter by the number and type of the subwindow.
[in] Number of the chart subwindow. 0 means the main chart window, -1 means all the subwindows of the chart, including the main window.
[in] Type of the object. The value can be one of the values of the ENUM_OBJECT enumeration. -1 means all types.
Name of the object is returned in case of success.
When an object is renamed, two events are formed simultaneously. These events can be handled in an Expert Advisor or indicator by the OnChartEvent() function: