Files
mql5-skills/skills/mql5/references/docs/18-chart-operations/0792-chart-operations-chartwindowondropped.md
T
2026-06-23 21:47:51 +08:00

27 lines
828 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ChartWindowOnDropped
Returns the number (index) of the chart subwindow the Expert Advisor or script has been dropped to. 0 means the main chart window.
```
int  ChartWindowOnDropped();
```
Return Value
Value of [int](/en/docs/basis/types/integer/integertypes) type.
Example:
```
   int myWindow=ChartWindowOnDropped();
   int windowsTotal=ChartGetInteger(0,CHART_WINDOWS_TOTAL);
   Print("Script is running on the window #"+myWindow+
         ". Total windows on the chart "+ChartSymbol()+":",windowsTotal);
```
See also
[ChartPriceOnDropped](/en/docs/chart_operations/chartpriceondropped), [ChartTimeOnDropped](/en/docs/chart_operations/charttimeondropped), [ChartXOnDropped](/en/docs/chart_operations/chartxondropped), [ChartYOnDropped](/en/docs/chart_operations/chartyondropped)