ChartIndicatorsTotal

返回应用到指定图表窗口的指标数量。

int  ChartIndicatorsTotal(
   long  chart_id,      // 图表 id
   int   sub_window     // 子窗口数量
   );

参数

chart_id

[in]  图表ID。0 表示当前图表。

sub_window

[in]  图表子窗口的数量。0代表主图表的子窗口。

返回值

指定图表窗口的指标数量。若要获得错误信息,请使用 GetLastError() 函数。

注意

函数允许搜寻附加在图表的所有指标。图表窗口的总数可以使用ChartGetInteger()函数从CHART_WINDOWS_TOTAL属性获得。

另见

ChartIndicatorAdd()ChartIndicatorDelete()iCustom()IndicatorCreate()IndicatorSetString()