跳至内容

ChartWindowOnDropped

ChartWindowOnDropped

返回专家顾问或脚本被 dropped 到的图表子窗口的编号(索引)。0 表示主图表窗口。

int  ChartWindowOnDropped();

返回值

整数类型的值。

示例:

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);

参见

ChartPriceOnDropped(), ChartTimeOnDropped(), ChartXOnDropped(), ChartYOnDropped()

最后更新于