技术文档MQL5参考标准程序库通用数据集CArrayList<T>TryGetValueTryGetValueTryGetValue获取指定索引的列表元素。bool TryGetValue( const int index, //索引 T& value //要编写的变量 );参数 index[in] 您想要获得值的列表元素的索引。&value[out] 要编写元素值的变量。返回值 成功返回true,否则返回false。TrimExcessTrySetValue