ChartWindowFind
The function returns the number of a subwindow where an indicator is drawn. There are 2 variants of the function.
1. The function searches in the indicated chart for the subwindow with the specified "short name" of the indicator (the short name is displayed in the left top part of the subwindow), and it returns the subwindow number in case of success.
int ChartWindowFind( |
2. The function must be called from a custom indicator. It returns the number of the subwindow where the indicator is working.
int ChartWindowFind(); |
Parameters
chart_id
[in] Chart ID. 0 denotes the current chart.
indicator_shortname
[in] Short name of the indicator.
Return Value
Subwindow number in case of success. In case of failure the function returns -1.
Note
If the second variant of the function (without parameters) is called from a script or Expert Advisor, the function returns -1.
Exapmle:
#property script_show_inputs |
See also
© 2000-2010, MetaQuotes Software Corp.