ChartIndicatorsTotal
ChartIndicatorsTotal
返回应用于指定图表窗口的所有指示器的数量。
int ChartIndicatorsTotal(
long chart_id, // chart id
int sub_window // number of the subwindow
);参数
- chart_id
[in] 图表ID。0表示当前图表。
- sub_window
[in] 图表子窗口的编号。0表示主图表子窗口。
返回值
指定图表窗口中指示器的数量。要获取错误详情,请使用GetLastError()函数。
注意
该函数允许搜索所有附加到图表的指示器。图表的所有窗口数量可以通过使用ChartGetInteger()函数的CHART_WINDOWS_TOTAL属性获得。
另请参阅
ChartIndicatorDelete(), ChartIndicatorsTotal(), IndicatorSetString()
最后更新于